I was referring to you trying to run 19200. That was what your code above referenced.
If you want to run 115K baud -
From Mr. E's Multi-Calc:
RCSTA1 = $90 ' Enable serial port & continuous receive
TXSTA1 = $24 ' Enable transmit, BRGH = 1
SPBRG1 = 42 ' 115200 Baud @ 20MHz, 0.94%
SPBRGH1 = 0
BAUDCON1.3 = 1 ' Enable 16 bit baudrate generator
Some of these might change if you are using a 16F part.
You may have to remove the "1" after the register names if you are not using PBP 3
Bookmarks