^saint^
Newbie level 6
- Joined
- Jun 26, 2010
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,404
Hi, in my project i have two sin waves (few Hz to about 2kHz) that are 90 deg out of phase (TLL levels). What I need to do is determine if wave A is currently leading or trailing wave B so naturally after using LM393 I wanted to use 4046B and its Phase Comparator II output. Wave A goes to pin 14, and B to pin 3 of 4046. At pin 13 i put resistor divider (1M + 2k/2k) as suggested here but I'm pretty sure it should be the other way around eg. 10k + 1M/1M) so that the 1M can actually pull the output close to VCC or GND.
But no matter what I do the PC2 doesn't stay an VCC/2 when Wave A & B are at VCC/2 (DC), sometimes PC2 sticks to VCC sometimes to GND and occasionally I see VCC/2 (on PC2) when generating Wave A & B. What am I doing wrong?
Resistor divider used for measurments is 10k + 1M/1M.
SIG (ch. 1) and COMP (ch. 2)
From separate measurment, PCP (1), PC2 (2)
One more thing is that PCP is Low when SIG & COMP are VCC/2, according to the datasheet (page 8) it should be High. Any ideas why?
Everything was tested with my Rigol oscilloscope (only 2-ch. :-() and the singnals on pin 3 & 14 are clean (not exactly 50% duty but this doesn't matter for PC2 as far as I know).
Do I need to connect C1, C2, R1,R2, RS, looking at the datasheet (page 4, fig. 2) I don't
think I'm using any of them.
What should one do with unused pins on 4046, leave them floating?
But no matter what I do the PC2 doesn't stay an VCC/2 when Wave A & B are at VCC/2 (DC), sometimes PC2 sticks to VCC sometimes to GND and occasionally I see VCC/2 (on PC2) when generating Wave A & B. What am I doing wrong?
Resistor divider used for measurments is 10k + 1M/1M.
SIG (ch. 1) and COMP (ch. 2)
From separate measurment, PCP (1), PC2 (2)
One more thing is that PCP is Low when SIG & COMP are VCC/2, according to the datasheet (page 8) it should be High. Any ideas why?
Everything was tested with my Rigol oscilloscope (only 2-ch. :-() and the singnals on pin 3 & 14 are clean (not exactly 50% duty but this doesn't matter for PC2 as far as I know).
Do I need to connect C1, C2, R1,R2, RS, looking at the datasheet (page 4, fig. 2) I don't
think I'm using any of them.
What should one do with unused pins on 4046, leave them floating?