I want to use a GPIO to control a MUX in DSP.
My GPIO connects to a hardware switch, when switch to SRC1 , it pulls high , when switch to SRC2, it pulls low.
Then , I use this curcuit to control MUX in SigmaStudio 4.7.
The idea is : comapre GPIO input with DC 0 , if greater than DC0, output DC 0 to control MUX. if equal or less than DC0, output DC1 to control MUX.
It's seems work on my hardware.
But I want to make sure: Is this a stable solution?