AnsweredAssumed Answered

Phase Detector/comparator

Question asked by Antoine.PM on Jul 11, 2016
Hi,
I want to write a phase comparator on my nucleo-f334.

As far as I know, it works like this: two signals are sent in the phase detector. When one of them cross the zero line, a timer/counter is started, and it stops when the second signal cross the zero line. The phase detector outputs the difference between the two phases from the value of the counter.
I think it is supposed to raise a flag or provoke an event when the first cross the line to start the count, and another one to stop it. But lacking of knowledge in this domain I don't know how to do it, and the results I find on the internet are almost exclusively about simulating a PLL, because phase detector is a part of it.

Any idea about this?

Outcomes