Everything works great. The calculator has really helped me.
Here's the code if someone needs it.
Code:IF HSerBaud=0 THEN RCSTA = 0 SPBRG = 207 ' 300 Baud @ 4MHz, 0.0% RCSTA = $90 ' Enable serial port & continuous receive TXSTA = $20 ' Enable transmit, BRGH = 0 endif IF HSerBaud=1 THEN RCSTA = 0 SPBRG = 25 ' 2400 Baud @ 4MHz, 0.17% RCSTA = $90 ' Enable serial port & continuous receive TXSTA = $20 ' Enable transmit, BRGH = 0 endif IF HSerBaud=$BD THEN RCSTA = 0 SPBRG = 25 ' 9600 Baud @ 4MHz, 0.16% RCSTA = $90 ' Enable serial port & continuous receive TXSTA = $24 ' Enable transmit, BRGH = 1 endif





Bookmarks