Hello,
I'm not very familiar with the hardware serial port. So far I have used define.
But when I tried this:
Code:
HSerBaud var byte
IF HSerBaud=0 THEN
 DEFINE HSER_BAUD 300
ENDIF
IF HSerBaud=1 THEN
   DEFINE HSER_BAUD 2400
ENDIF
IF HSerBaud=$BD THEN
   DEFINE HSER_BAUD 9600
ENDIF
I got an error, Redefininig symbor that can not be redefined...
I do not know what registers should be set to change the baud rate.
If you can help, so I would not read the whole datasheet. I'm using PIC18LF14K50.
Thanks