Re: Learning how to use USART
The blinking LED on the transmitting PIC is working, and
the LCD on the receiving PIC is working, but I'm not seeing any numbers being displayed.
given all things working display wise ,imho mike is leading you astray
tx unit:-
send = send + 1
hserout [send]
will send binary 0 to 9 , probably not the best idea but it is workable
ps weird baud rate
rx unit:-
hserin [dec data_in]
pause 5
will never work
1. its waiting for ascii numbers , the first non number will terminate routine
2. pause 5 why it serves no purpose and can cause framing errors
add this define
DEFINE HSER_CLROERR 1 ' Clear overrun error upon execution of every HSERIN command
rx unit:-
lcdout $fe, $94, dec data_in
if ok but it needs
hserin [data_in] to match data types
ps weird baud rate
Last edited by richard; - 10th May 2018 at 05:09.
Warning I'm not a teacher
Bookmarks