Skip to main content
antoine
Associate III
July 11, 2016
Question

Phase Detector/comparator

  • July 11, 2016
  • 0 replies
  • 820 views
Posted on July 11, 2016 at 16:08

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?
    This topic has been closed for replies.