Hi all,
I'm working on what should be a simple bit of inhouse test equipment. Basically I have 50 or so signals I want to display on a PC screen. The signals will be either floating, or anywhere from ground to 24 volts. I'd be happy with 5% measurement error.
Please see
My design uses a number of 74HC4051's to funnel a selected signal into an ADC input of a microcontroller. What I had hoped would happen is, for each signal
1) The voltage divider would be disabled by turning the FET off.
2) The microcontroller would briefly discharge C7, wait a bit, then see if it has been charged by an external voltage. It would then charge C7, wait a bit, and see if a signal has discharged it. The micro can then decide if the signal can be considered floating.
3) If not floating, turn the FET back on to enable the voltage divider, wait a bit, then read the voltage directly.
The problem is, when I put 24V into an unselected 4051, it will go nuts and quite happily pass a few volts to the output! This completely messes up my floating signal detection scheme. I would have _thought_ that the static protection diodes would have clamped the signal to ~5.6V and that would be the end of it. I'm not sure why I get any output at all, considering all channels of that 4051 should be high impedance.
I know this is a bit of a hack of a design, but I'm only going to make
2 or 3 of them tops. The problem is I already have the PCBs made up and would rather not respin them. I also don't really want to try adding 50 or so 4V7 zener diodes to each PCB if I can help it.
Is there a clever solution to this problem? Does anyone know any drop- in 74HC4051 replacements that will tolerate my abuse without putting garbage on their output line?
Thanks a ton,
Al