I'm trying to configure porta.3 and porta.4 for input on a 877 chip and can not for the life of me get it to work properly. I have the I/O pulled to +5V and it still keeps registering that both ports are 0 for there state. Is there something I missed in the configuration?
Code:ADCON1 = %00001111 ADCON0 = 0 CCP1CON = 0 ' Turn off Capture/Compare/PWM module 1 TRISA = %00011011 ' All outputs except for A0,A1,A3,A4
Bookmarks