Code:
ADCON1 = %00001111 'turn off adcs set to digital i/o
The above line takes over after the configs so no matter what PBADEN is the pins should be digital.
You have
Code:
@ CONFIG PBADEN = ON ' turn off port b analog inputs
but you want to set it to OFF if you want it digital on POR
From the P18F4520.INC
Like Darrel, it has been awhile since I have used SERIN. You may want to try a simple routine sending just one variable to trouble shoot this.
The limiting resistor like the manual shows is all you need. Pull the diode.
If I think of something else I will let you know.
Bookmarks