I'm trying to send digital signals from an ST-Link V2 programmer connected to my computer to a blue pill STM32 microcontroller, but I want it to go through a DG412 Quad SPST CMOS Analog Switch.
As far as I can tell I have it all set up and it doesn't seem to correctly program my board. Is what I'm doing even hypothetically possible? Is there any reason I couldn't send a digital signal from source to drain on an analog switch?
Are these switches bi directional? As in, does the data have to be coming from the source pin to the drain pin, or could data be sent back from drain to source? The SWDIO pin is bi directional, although I don't know whether the blue pill sends any data back during programming.
I'm thinking the other reasons it might not work is due to latency, or missing additional components. I'm pulling the IN lines to GND and the Drain to GND with resistors.
SOLVED: It turns out when the 3.3V went through the IC, the voltage dropped to 2.9. When the voltage was that low the other factors of the IC became an issue. The clock was interrupted by the capacitance of the MOSFET. Also the fact that I used 5V on the V+, V- rails meant the source-drain on-resistance was much higher. By putting 12V into the rails and having 3.3V bypass the IC I was able to make it work.