I spent all afternoon and then some yesterday trying to get these talking.
Had them working in 5 minutes after posting. LOL
I gave up and did the equivalent of stopping and asking for directions; I looked at my code from last summer real close and noticed this comment:
Code:
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
' RX must be input or else USART disrupted x
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I can't remember where I got this (didn't notice in the manual if it was there), but that was the problem.
Robert
EDIT: Now I remember, it was from the datasheet:
For all modes of EUSART operation, the TRIS control
bits corresponding to the RXx/DTx and TXx/CKx pins
should be set to ‘1’. The EUSART control will
automatically reconfigure the pin from input to output, as
needed.
Bookmarks