The serial out I plan to use at transmitter:
serout PORTB.2, n2400, [ "A" , encode2 ]
The serial in I plan to use at receiver:
serin2 PORTB.0, n2400, [WAIT("A"),BIN8 encode1] 'take in data at pin 0 and place in encoded1
I discover that this does not work so I reverted back to my old code which sometimes works and sometimes doesn't. It's either a serin problem, serout problem or a transmitter/receiver problem. I will also try to change the breadboard to see if it helps.
Bookmarks