Change _MCLRE_ON to _MCLRE_OFF, if you want to use GPIO.3 as input.
Go back to TRISIO, and remove TRISL/TRISH.
INTCON controls Interrupts, not the internal oscillator.
So remove that line.
And add ...
ANSEL = 0 ; enable digital inputs
hth,
Change _MCLRE_ON to _MCLRE_OFF, if you want to use GPIO.3 as input.
Go back to TRISIO, and remove TRISL/TRISH.
INTCON controls Interrupts, not the internal oscillator.
So remove that line.
And add ...
ANSEL = 0 ; enable digital inputs
hth,
DT
Bookmarks