Hi
I want to multiplex 2 ADC's (AN0 and AN1) I have 2 8 to 1 multiplexers
(CD4051) infront of the ADC's
S0,S1,S2 are on RC0-RC2
Enable of Mux 1 on RC4
Enable of mux 2 on RC3
I have declared an array of 16 Words
AD var word[16]
How can I with a for next loop:
Set the first 3 bits of portC and then read the ADC and write to the
respectively AD.x Word varialble ? with mux 1 enabled
After passing 8 cycles I need to change from Enable mux1 to Mux2
and read the other 8 remaining AD.x variables ?
any suggestions ?
Bookmarks