Some trick:
If there are analog signals on inputs, they can drive the current through the inputs to an high level, if they are digital inputs !
So,
you can declare all the inputs as analog and switch them to digital in the case of reading a digital input and switch them back to analog after (ADCON1).
You can switch all the AN3... to digital and see what happens ;-)
You can read the analog value without problems!
You can arrange the analog inputs on the first AN-channels !!!!!!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks