Quote Originally Posted by brid0030 View Post
I have to revise what I said above. It is not the pause that causes serial communication to fail but the toggling of PORTA.2. When I comment out the HIGH REC and LOW REC stuff the serial comm works. I'm still in the dark as to what is going on tho. Why should toggling a pin on another port affect serial communication? I've also got problems getting the input on PORTC.1 to work. I've got a pull-up tied to the port and a switch connecting to ground. The pin reads high on my volt-meter but the program runs as though it is always low. Craziness abides.
I don't see ANY ANSEL, ADCON0, ADCON1, CMCON0, CMCON1 register settings anywhere in there...
Take a look at the datasheet and see if your fix is anywhere around there.