Need help implementing multiplexer using external switch


I have a custom ADAU1701 board which is working fine.

I have an SPDT switch to change the value on Input_GPIO5 between 0V (GND) and 3.3V (VCC).

I have cathode of an LED connected to Output_GPIO4. The LED anode is connected to VCC through a 1k resistor.

I want to achieve the below but am unable to do so.

Toggle switch LO: LED OFF, Sig1A and 1B appear on OUT1 and OUT2

Toggle switch HI: LED ON, Sig2A and 2B appear on OUT1 and OUT2

Kindly help me on how to go about doing this.


Parents Reply Children