Thanks Ben!
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)
Search found 6 matches
- Thu Apr 18, 2019 6:01 pm
- Forum: Bug reports
- Topic: Incorrectly calculating UART Baud Rate
- Replies: 4
- Views: 5893
- Thu Apr 18, 2019 4:35 pm
- Forum: Bug reports
- Topic: Incorrectly calculating UART Baud Rate
- Replies: 4
- Views: 5893
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...
- Thu Apr 18, 2019 4:24 pm
- Forum: User Components
- Topic: C Code (asm)
- Replies: 1
- Views: 4229
C Code (asm)
Hi there, In previous versions of Flowcode, I used to be able to insert assembly code (asm) into my program via the 'C Code' component. I used to do this as a workaround to the odd bug in Flowcode, or to ensure registers are set up correctly. I would drop in the 'C Code' component, then enter my cod...
- Thu Apr 18, 2019 4:09 pm
- Forum: Bug reports
- Topic: Incorrectly calculating UART Baud Rate
- Replies: 4
- Views: 5893
Incorrectly calculating UART Baud Rate
MCU: PIC18F67K22-I/PT FREQ: 64 MHz It appears that Flowcode V7 is incorrectly calculating the UART (EUSART) Baud Rate when I compile code with a baud rate lower than 4 kHz. I believe that the issue might stem from a possible Flowcode miscalculation of the 'SPBRGH2' register. Here's the Microchip bau...
- Fri Jan 11, 2013 6:37 pm
- Forum: General Programming
- Topic: I2C PIC-to-PIC
- Replies: 2
- Views: 3927
Re: I2C PIC-to-PIC
I know this is a late response (that's an understatement... I've since used V4 & V5)
Just wanted to say thanks!!
Just wanted to say thanks!!
- Tue Aug 03, 2010 12:31 pm
- Forum: General Programming
- Topic: I2C PIC-to-PIC
- Replies: 2
- Views: 3927
I2C PIC-to-PIC
Good day! I have a prototype with several modules, each containing a PIC micro-controller. The whole system is controlled by a central module, yes, another PIC. All the PIC's are wired to a single I2C bus. I would like to set the PIC in the 'central module' as a Master, and all the surrounding modul...