Bilal_Ahm
Junior Member level 2
- Joined
- Apr 10, 2014
- Messages
- 24
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 188
The most accurate way is to use an accurate clock that runs much faster and count the time interval. If counting is not possible, a DAC could be connected to counter to read as Analog.
The Type I is just an XOR Gate mixer so with steady frequency and Vcc, the average phase voltage can be measured for 90 deg +/-90deg shift which can be a problem with the limiter and ripple with jitter.
The Type II is a Phase frequency mixer is good for +/-180 deg
Similar problems with ripple and jitter.
The way I did it, is similar Sunnyskyguy mentions:
A 74HC4060 counter toggled with a much higher frequency. It was started with the zero crossing of the reference signal, and stopped with the zero crossing of the delayed signal.
The4060 outputs fed a binary weighted resistor network to form a rudimentary DAC, and fed to an opamp.
Using an XOR gate will give an average (filtered) output voltage that is a function of the phase difference between the two inputs.
You need to square up the sinewave signals using two comparators that detect the signals' zero-crossings.
Feed the two outputs into a CMOS XOR gate with an RC filter on its output.
The filtered output will vary from 0V for zero phase shift to the XOR's supply voltage for near180° phase shift.
This circuit does not determine whether the phase is leading or lagging.
i did not get it fully. XOR gate mixer with steady frequency. but the output will be the Rail to rail of XOR gate. isn't is? in the case when i only use XOR gate as a mixer?
and i want to measure the phase difference from 0 to any, a analoge dc should represent the signal as a voltage value.
Regards
Bilal ahmad
??? that link is about ADC/DAC principles not phase measurement.
Brian.
Bilal;
check the following explanation. It is a little lengthy but worth reading all:
https://www.ibiblio.org/kuphaldt/electricCircuits/Digital/DIGI_13.html
You have to
1- clear the counter
2- detect the zero crossings of your reference which will start the counter
3-let it run clocked from an accurate reference
4-stop it at the zero crossing of the delayed waveform
5-read the adc value.
6-repeat.
Some external gating to the 4060 may be necessary.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?