Reply To: PI controller using PIC16F876A

Home Forums Microcontrollers PIC Microcontroller PI controller using PIC16F876A Reply To: PI controller using PIC16F876A

#9555
biswaIITH
Participant

ADCON0 &= 0xC5; //Clearing the Channel Selection Bits
ADCON0 |= channel< <3; //Setting the required Bits

why are these two instructions required???I mean to say what is the need of clearing and setting the channel selection bits again n again..We can select once ryt!!!correct me if i am wrong

>