Gradually changing the phase of a signal

  • Thread starter Thread starter jmjsilvester
  • Start date Start date
  • Tags Tags
    Phase Signal
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
jmjsilvester
Messages
4
Reaction score
0
Hello all.

I have produced a square wave with a given frequency (period of about 0.5 seconds). I am trying to match the phase of the square wave with a periodic pulse of the same frequency. I can detect when I have acheved the phase difference between them of zero but I need a way to initially match up the phases.

I was wondering if there is any way that I can let the phase of the square wave slowly drift until I detect that they are in phase. An on/off signal to start and stop the drift would be ideal so that I could stop it drifting when required and let it drift again if they get out of sync.

Thanks in advanced
 
Engineering news on Phys.org
jmjsilvester said:
Hello all.

I have produced a square wave with a given frequency (period of about 0.5 seconds). I am trying to match the phase of the square wave with a periodic pulse of the same frequency. I can detect when I have acheved the phase difference between them of zero but I need a way to initially match up the phases.

I was wondering if there is any way that I can let the phase of the square wave slowly drift until I detect that they are in phase. An on/off signal to start and stop the drift would be ideal so that I could stop it drifting when required and let it drift again if they get out of sync.

Thanks in advanced

How are you making the square wave now? Can you post the circuit?
 
jmjsilvester said:
Hello all.

I have produced a square wave with a given frequency (period of about 0.5 seconds). I am trying to match the phase of the square wave with a periodic pulse of the same frequency. I can detect when I have acheved the phase difference between them of zero but I need a way to initially match up the phases.

I was wondering if there is any way that I can let the phase of the square wave slowly drift until I detect that they are in phase. An on/off signal to start and stop the drift would be ideal so that I could stop it drifting when required and let it drift again if they get out of sync.

Thanks in advanced

What you described sounds like a typical phase lock loop! You use the VCO to generate the square wave, then mix with the reference pulse and it will to generate the control voltage to control the frequency of the VCO. Look up Phase Lock Loop ( PLL) and see whether that helps.
 
Last edited: