Hi,

Im using ADC with a PIC16F877A.

1. Why do I see people using TRISA = %111111111 when port A is only 6 bits ?

2. When using analog input and ADCIN, is channel 0 to 7 referring to AN0 to AN7 ?


Thank you. I tried searching but couldnt find anything useful because the keywords are not specific enough.