- #1
jmjsilvester
- 4
- 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
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