You need to set the ports as digital ... addCode:PORTA.0 = 1 Pause 1000 PORTA.3 = 1
ADCON1 = $0F
I would also suggest using the latches instead of setting the ports directly (but not the cause of your troubles). CMCON POR defaults to 7 so you do not need to set it unless you want to be sure.
Bookmarks