Search found 2 matches

Return

by Neon27
Thu Apr 18, 2019 4:35 pm
Jump to forum
Jump to topic

Re: Incorrectly calculating UART Baud Rate

Thank you kindly for the assistance! I appreciate the suggestion, buy my code is working 100% (I've attached a pic of my project) My MCU is: - driving an LCD display - communicating with several I2c devices - Driving 3 RGB LED's (WS2811) - Converting an analog signal As I mentioned, all baud rates a...
by Neon27
Thu Apr 18, 2019 6:01 pm
Jump to forum
Jump to topic

Re: Incorrectly calculating UART Baud Rate

Thanks Ben! :mrgreen:
I uploaded the code and it works like a charm!

Here's what I ended up using:

TXSTA2bits.BRGH = 0;
BAUDCON2bits.BRG16 = 1;
SPBRG2 = 129;
SPBRGH2 = 6;

With my 4xPLL OSC running at 64MHz, I'm getting a Baud rate of 2403 kHz (0.12% error)