Hi people. Great forum you have here.
I need a circuit able to measure the phase shift between 2 input voltage signals. The circuit must provide me an output voltage sign which is proportional to the phase angle between the two inputs. I´ve already search the forum and I couldn´t find any circuit like this.
Hi people. Great forum you have here.
I need a circuit able to measure the phase shift between 2 input voltage signals. The circuit must provide me an output voltage sign which is proportional to the phase angle between the two inputs. I´ve already search the forum and I couldn´t find any circuit like this.
sad to say, but in my opinion it makes no difference if the phase shift of a sine, square, triangle or even octagon signal has to be measured, as well as signal amplitude.
I'd vote for frequency to be measured to decide about the type of MCU to employ.
To solve for phase shift (angle) accurate time measurement is necessary between incoming pulses.
sad to say, but in my opinion it makes no difference if the phase shift of a sine, square, triangle or even octagon signal has to be measured, as well as signal amplitude.
I'd vote for frequency to be measured to decide about the type of MCU to employ.
To solve for phase shift (angle) accurate time measurement is necessary between incoming pulses.
Yeah Boncuk but he wants an analog out. It is highly dependent on frequency for a micro controller because the quantization noise on the ADC may screw up the desired output. If this was done properly on opamps you would eliminate all the ADC processing and DAC errors, and get a true analog signal, it would follow the incoming signals better without the delay that would be introduced in a micro controller. Lets wait for the poster to state his parameters are little better before we give him suggestions =) This is definitly one situation where I wouldn't just throw a micro controller at it => Too many unknowns.
There are many ways of building phase detectors.
What is the phase range that you need to measure?
What is the frequency range?
What is the signal amplitude?
What is the waveform?
sad to say, but in my opinion it makes no difference if the phase shift of a sine, square, triangle or even octagon signal has to be measured, as well as signal amplitude.
I'd vote for frequency to be measured to decide about the type of MCU to employ.
To solve for phase shift (angle) accurate time measurement is necessary between incoming pulses.
Yeah Boncuk but he wants an analog out. It is highly dependent on frequency for a micro controller because the quantization noise on the ADC may screw up the desired output. If this was done properly on opamps you would eliminate all the ADC processing and DAC errors, and get a true analog signal, it would follow the incoming signals better without the delay that would be introduced in a micro controller. Lets wait for the poster to state his parameters are little better before we give him suggestions =) This is definitly one situation where I wouldn't just throw a micro controller at it => Too many unknowns.
My analog skills aren't particularly good, I'm not even sure where to start with that. roff or eric might be able to help better. Have you tried googling for phase comparator circuits?
Run both the signals through comparators (LM393 is a dual comparator). Connect the comparator outputs to the inputs of a CMOS exclusive OR. The output will be duty-cycle modulated proportional to the phase difference. Lowpass filter the output to get an analog value.
My analog skills aren't particularly good, I'm not even sure where to start with that. roff or eric might be able to help better. Have you tried googling for phase comparator circuits?
Run both the signals through comparators (LM393 is a dual comparator). Connect the comparator outputs to the inputs of a CMOS exclusive OR. The output will be duty-cycle modulated proportional to the phase difference. Lowpass filter the output to get an analog value.
Hi Roff. That's a good idea. I just tryed but a i've found a problem. The response time of LM393 is not good enough at 200kHz. There is a delay of 0,4µs between zero-crossing and the pulse provided by the comparator. This means an error of at least 30 degrees .
Hi Roff. That's a good idea. I just tryed but a i've found a problem. The response time of LM393 is not good enough at 200kHz. There is a delay of 0,4µs between zero-corssing and the pulse provided for the comparator. This means an error of at least 30 degrees .
If you use a single supply, you'll have to AC-couple the inputs to the comparators. Be careful to keep your inputs within the common mode range of the comparator. You may need to clip or otherwise limit the 10V p-p signal.
You might want to consider the phase detector sections of the 74HC4046. One of the three phase comparators provided (phase comparator #2) has an output voltage centered at Vcc/2 for zero phase difference, with the output going below that for lag, and above that for leading phase. Thus, you will have a phase difference measurement provided as an analog voltage from which you can also know the sign of the difference as well as the difference. It provides a voltage follower to buffer the output of the RC integrator (low pass filter). Of course, you will have to condition the inputs to fall between GND and VCC (6V maximum). It will accept capacitor coupled sinewave inputs within those voltages. Pulse inputs need not be 50% duty cycle.
Phase comparator #1 is the XOR type that Roff described.
If you use a single supply, you'll have to AC-couple the inputs to the comparators. Be careful to keep your inputs within the common mode range of the comparator. You may need to clip or otherwise limit the 10V p-p signal.
You might want to consider the phase detector sections of the 74HC4046. One of the three phase comparators provided (phase comparator #2) has an output voltage centered at Vcc/2 for zero phase difference, with the output going below that for lag, and above that for leading phase. Thus, you will have a phase difference measurement provided as an analog voltage from which you can also know the sign of the difference as well as the difference. It provides a voltage follower to buffer the output of the RC integrator (low pass filter). Of course, you will have to condition the inputs to fall between GND and VCC (6V maximum). It will accept capacitor coupled sinewave inputs within those voltages. Pulse inputs need not be 50% duty cycle.
Phase comparator #1 is the XOR type that Roff described.
Hi ccurtis. I´ve considered using this PLL once before but i coundn´t find an application note that suits my needs. Could you sugest one? Thankyou for your help.