Forum Discussion
Altera_Forum
Honored Contributor
15 years agoXor will help detection of phase difference but can't measure actual difference.
If your signals are two sine waves (sine/cos) and known frequency then try this simple idea: delay one signal one sample at a time until both are equal in phase as indicated by xor and measure your delay relative to frequency to see if it is 1/4 cycle or 3/4 cycle