You also have to disable the analog inputs of port A, set by default on PIC reset, by clearing the ANSELA register.
If you drive the output as in the sender program, then the port is set as digital output. Still I would disable the analog function. But as input it will operate as Analog input, not digital.
Also get rid of the PAUSE 3000. They offer nothing really useful.
Ioannis
Bookmarks