I have a weird problem with the Pin Port-F pin4 (0x10) on PIC18F6520
Whatever the level (0 or 5v voltage) at the input
pin Port-F pin4, the state doesn't change in PortF register.
the bit b4 is always read as 0 .
I used several methods to read it, with Btfsc intruction
or with MOVF Portf,W and test bit b4 in wreg.
In TrisF the Pin is well declared as a input
The analog to digital converter is disabled, Full inputs in logic mode.
the comparator is also disabled.
I verified that all registers implicated are in the good state
with a ICD3 in Step by Step mode.
ADCON0,ADCON1,TRISF,PORTF,CMCON,CVRCON.
I also verified that tere is no short circuit on hardware.
If someone have an idea ?