I am trying to control a 32 to 1 multiplexer with 5 address lines (A0-A4). I want to create a 5-bit binary counter that outputs the bits to the pins of the arduino.
This is just a small part of a larger test set up which has four 32to1 mux's with their outputs to the switches on a 4 to 1 mux. In other words I am designing a 128 to 1 multiplexer using four 32to 1's and one 4 to 1. I am trying to control all of them with the Arduino UNO. The EN (enables) are hooked up to the A0 - A5 pins on my Arduino Uno. If the EN is set low none of the switches will work. The idea is to enable one 32 to 1 at a time, and switch to all 32 switches. Then enable the second etc etc....
But for now a 5-bit binary counter will be sufficient.
Any suggestions are welcome as I am new to the Arduino programming environment.