So I have a CD74HC7046AE IC and I also have 2 separate square waves where 1 wave is 90 degrees ahead of the other in phase. Both waves have a 50% duty cycle and a 1 Hz Frequency. They BOTH also are 5 Vpp with a +2.5V offset. If Wave A leads wave B (90*) the motor is spinning CLOCKWISE, but if B leads A (90*) the motor is spinning COUNTER-CLOCKWISE.
How can I use this phase detector to easily differentiate between directions? For example: if A leads B then the output is 5V, but if B leads A the output is 0V.
I was looking at the datasheet and down on page 5 a condition is shown, but this is not very descriptive in my opinion...
From what i gather from this the output would be the following:
If A leads B, a square wave would be outputted between the High Impedance off state (~2.5V??) up to 5V.
If B leads A then a square wave would be outputted ranging from 0V up to the high impedence off state (again 2.5V??).
I figure if this is the case I can then throw the signal through a low pass filter to average them out (The time lag is ok).
Is this what the outputs are? If not then what are they? How does a phase comparitor actually allow someone to differentiate between phase if it doesnt output distinctly different voltages for each condition?
NOTE: Wave A=CompIN, while Wave B=SigIN and the output is PC2out.
Tags: