PORTC.7 is the RX input
' PORTC.6 is the TX output
Add to the Variable section of your code to let the compiler know the pins you are using
RX VAR PORTC.7
TX VAR PORTC.6
Or
Serout2 POTRC.6,396,["3: ",DEC A0,13,10]
And the same for SERIN2.
Either way, you need to tell the compiler.
Why are you adding
DEFINE SER2_BITS 4 ' Set Serin2 and Serout2 data bits to 4
DEFINE SER2_BITS 5 ' Set Serin2 and Serout2 data bits to 5
DEFINE SER2_BITS 6 ' Set Serin2 and Serout2 data bits to 6
DEFINE SER2_BITS 7 ' Set Serin2 and Serout2 data bits to 7
DEFINE SER2_BITS 8 ' Set Serin2 and Serout2 data bits to 8 (default)





Bookmarks