I have a little problem with a 4052 MUX.
This is the scenario: I have 2 pressure sensors (piezo elements). One is connected to pin 1Y0 of the MUX and the other to pin 1Y1. If I hit the piezo connected to 1Y0 (thus generating a signal) I get a voltage also on pin 1Y1. The same is true the other way around (generate signal on 1Y1 and get signal on 1Y0 as well). This weird crosstalk doesn't show up with the 74HC4053 MUX (same setting).
hi,
You are operating the 4052 outside its specified range, see image.
You will find that some CMOS devices will work just outside of their specification, others dont.
EDIT:
the amplitude and sense of the analog signal has to be within the range Vdd and 0V
The thing is, I'm not interested in the negative value of the signal, just the positive. As I'm looking at the 4052 datasheet (from NXP btw.) I see that the input is limited to [Vee,Vcc] by 2 diodes so I don't think swinging around 0V should be a problem. Plus, I actually use a bridge rectifier after the piezo so the signal will always be positive. I didn't mention this before because I don't think it's important.
The thing is, I'm not interested in the negative value of the signal, just the positive. As I'm looking at the 4052 datasheet (from NXP btw.) I see that the input is limited to [Vee,Vcc] by 2 diodes so I don't think swinging around 0V should be a problem. Plus, I actually use a bridge rectifier after the piezo so the signal will always be positive. I didn't mention this before because I don't think it's important.
hi ppd,
If you are confident that the 4052 that you are testing is OK, you must be using it in some way which does not meet the devices specification.
Having checked the the 74HC device datasheet, which as you say will operate down to 2V. The devices I have the bench are all HEF or CD, so I cannot repeat your test.
How are you measuring the 'leak thru' signal at the output.??
Have you tried adding a resistive load to the output of both gates, say 10k.??
I bought 10 pieces of 4052. I tried 2 or 3 of them and all behave similar. I'll try some more when I get home but I really doubt it that all of them are malfunctioning.
I measured the 'leak thru' in 2 ways: with a simple voltmeter and thru the microcontroller's ADC.
With the voltmeter I can only make a rough measurement (i.e detect some voltage but not exactly how much).
With the ADC I can see when the 'leak thru' appears and with what amplitude. I attached 2 graphics of what it looks like (one showing a hard hit of the piezo and the other a softer hit).
The red signal belongs to the piezo that has been hit and the green signal to the other piezo.
I haven't tried adding a resistive load. I'll try that.
The thing is, I'm not interested in the negative value of the signal, just the positive. As I'm looking at the 4052 datasheet (from NXP btw.) I see that the input is limited to [Vee,Vcc] by 2 diodes so I don't think swinging around 0V should be a problem. Plus, I actually use a bridge rectifier after the piezo so the signal will always be positive. I didn't mention this before because I don't think it's important.
Your schematic doesn't show the bridge rectifier - how are we meant to guess you were using one. You do also realise that the bridge rectifier will drop around 0.7v of signal dont you ?
You may also want to consider what happens to where the input voltage/current goes when you get a negative peak - yes the diodes are there to limit the voltage but it has to go somewhere and gets dumped into the power rails. If you don't have a big enough load/decoupling to absorb these then you can get some very unexpected results.
If you connect a 1N4148 or similar in parallel across the piezo (for testing purposes), you'll get the +ve amplitude with only around 0.4-0.6v of the negative which should be slightly more palateable to the 4052 input.
To be honest with you without looking at what is happening at the inputs/outputs/power rails with a proper scope its going to be a tricky one.
Make sure you have a 100nF between the 4052 power pins for decoupling, try something like a 10k resistor between each input and ground (and possibly output and ground) and see if that helps at all.
Ok. I've been doing some testing. It seems that if the amplitude of the input signal is lower than Vcc then the MUX functions properly. So I'll have to use a pair of limiting diodes myself...