Hmm good catch! I forgot AN5 which was purposedly the one I'm trying to read...!
Here is ANSEL now:
'Set analog input AN0, AN1, AN2, AN3, AN4 and AN5
ANSEL = %00111111
However that hasn't changed anything, for AN5 or the other sensors (AN4 to AN0).
Going through the 16F884 datasheet again to check these registers.
I remember doing this lately on a 16F877A whithout much troubles!
Bookmarks