Strange baudrate !
Using a EUSART calculator for your baudrate it gives these values for the port settings
I don't have PBP3 - so no idea if the formatting is the same or needs changingCode:DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0 DEFINE HSER_CLROERR 1 ' Clear overflow automatically DEFINE HSER_SPBRG 39 ' 31250 Baud @ SPBRGH = 0 BAUDCON.3 = 1 ' Enable 16 bit baudrate generator RCSTA = $90 ' Enable serial port & continuous receive TXSTA = $20 ' Enable transmit, BRGH = 0 SPBRG = 39 ' 31250 Baud @ 0.0% SPBRGH = 0 BAUDCON.3 = 1 ' Enable 16 bit baudrate generator




Bookmarks