Im trying to program my 8:1 mux with the Arduino. However, Im not really sure how to do the coding to select one switch at one time. Im using 6 input pins and 1 output pin which connected to the instrumentation amplifier. The circuit design can be seen in the attachment. Can anyone help me?
Drive A-B-C pins with one of these combinations:
000
001
010
011
100
101
110
111 - no input from this pin, I would connect it to Gnd.
and the Inhibit pin Low to let the selected input show up at the output.
tyra:
what is this line means? is the 'x' belong to pinA and 0 belong to bitRead?
Paul has already explained the meaning but for further reference check out the description here and digitalWrite here. The reference says HIGH/LOW but basically LOW = 0 and HIGH = number anything other than zero.