Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #478801

How does a PLL work?

From Piotr Wyderski <peter.pan@neverland.mil>
Newsgroups sci.electronics.design
Subject How does a PLL work?
Date 2017-09-25 10:07 +0200
Organization ATMAN - ATM S.A.
Message-ID <oqadf8$g1b$1@node1.news.atman.pl> (permalink)

Show all headers | View raw


But I mean, really. The usually presented theory is crystal-clear:
There is a phase detector which produces voltage proportional to
phase difference of the input signals, which is then filtered and
feed back to a VCO and the loop is closed.

I am trying to implement a software PLL and my simulations show
the above is not true. For zero phase difference the phase error
voltage is also zero, so it would require a VCO/filter with
infinite memory, otherwise the VCO would return to its free-running
frequency. It can be done in digital, but in the case of any
analog VCO the control voltage *sets* the frequency, not *adjusts*
it by a given amount. Therefore such a PLL requires a non-zero
phase error to stay in lock, it is just "error-shaping" that
keeps both frequencies in sync. This is done by sub-cycle
inflation/deflation of the VCO waveform, i.e. by distorting
the VCO signal. The high-freq part then integrates out to 0
and the low-freq part is what keeps the loop in lock.

This is how a free-running 50Hz PLL with a multiplying detector
locks to 55Hz input (one second simulation):

https://s26.postimg.org/7jcgkmyg9/pll1.png

and several output cycles magnified:

https://s26.postimg.org/m6df2ax2h/pll2.png

Blue/orange is the quardrature VCO, green is the input,
red is the correcting voltage. The loop is in a perfect
lock, the red waveform is sufficiently below 0 in order
to make it happen, but the red oscillations is exactly
what makes it work and *should not* be excessively
filtered. This conclusion is again backed up by simulation:
for a given cutoff frequency increasing the filter order
makes the loop harder to stabilize and for a 3rd order
RC filter with 1.5Hz cutoff I am unable to adjust the
gain to make it lock. If the order increases, it must
be compensated by the increase of the cutoff frequency.

If I am right then why all the books I know simply lie? :-)

	Best regards, Piotr

Back to sci.electronics.design | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 10:07 +0200
  Re: How does a PLL work? bill.sloman@ieee.org - 2017-09-25 01:25 -0700
  Re: How does a PLL work? Rob <nomail@example.com> - 2017-09-25 08:27 +0000
    Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 12:38 +0200
      Re: How does a PLL work? Rob <nomail@example.com> - 2017-09-25 11:31 +0000
        Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 13:53 +0200
  Re: How does a PLL work? Steve Wilson <no@spam.com> - 2017-09-25 08:46 +0000
    Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 12:50 +0200
      Re: How does a PLL work? Steve Wilson <no@spam.com> - 2017-09-25 12:28 +0000
      Re: How does a PLL work? Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-09-25 15:43 +0000
  Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 09:35 -0400
    Re: How does a PLL work? Steve Wilson <no@spam.com> - 2017-09-25 13:56 +0000
      Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 11:45 -0400
    Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 15:59 +0200
      Re: How does a PLL work? Steve Wilson <no@spam.com> - 2017-09-25 14:15 +0000
        Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-25 16:38 +0200
          Re: How does a PLL work? Steve Wilson <no@spam.com> - 2017-09-25 14:53 +0000
          Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 12:24 -0400
            Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 00:14 +0200
              Re: How does a PLL work? pcdhobbs@gmail.com - 2017-09-25 16:16 -0700
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 09:44 +0200
                Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-26 13:55 -0400
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 23:13 +0200
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-28 00:28 +0200
                Re: How does a PLL work? George Herold <gherold@teachspin.com> - 2017-09-27 17:39 -0700
                Re: How does a PLL work? Jan Panteltje <pNaonStpealmtje@yahoo.com> - 2017-09-28 07:42 +0000
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-28 10:17 +0200
                Re: How does a PLL work? Jan Panteltje <pNaonStpealmtje@yahoo.com> - 2017-09-28 12:52 +0000
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-28 16:21 +0200
                Re: How does a PLL work? Jan Panteltje <pNaonStpealmtje@yahoo.com> - 2017-09-28 15:22 +0000
                Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-28 12:29 -0700
                Re: How does a PLL work? whit3rd <whit3rd@gmail.com> - 2017-09-28 13:27 -0700
              Re: How does a PLL work? kevin93 <kevin@whitedigs.com> - 2017-09-25 16:43 -0700
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 10:10 +0200
      Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 10:25 -0400
        Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 10:29 -0400
      Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 12:09 -0400
    Re: How does a PLL work? John Larkin <jjlarkin@highlandtechnology.com> - 2017-09-25 09:12 -0700
      Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 12:30 -0400
        Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 12:36 -0400
          Re: How does a PLL work? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-09-25 21:18 +0300
            Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 15:14 -0400
              Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-25 12:39 -0700
                Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 16:07 -0400
              Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 17:28 -0400
                Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 00:34 +0200
                Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 19:52 -0400
                Re: How does a PLL work? pcdhobbs@gmail.com - 2017-09-25 17:39 -0700
          Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 17:16 -0400
            Re: How does a PLL work? Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-09-26 08:02 +0000
          Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 01:01 +0200
            Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 19:54 -0400
              Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 11:52 +0200
      Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 12:30 -0400
        Re: How does a PLL work? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-25 12:32 -0400
          Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 13:48 -0400
            Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 13:55 -0400
              Re: How does a PLL work? John Larkin <jjlarkin@highland_snip_technology.com> - 2017-09-25 11:39 -0700
        Re: How does a PLL work? John Larkin <jjlarkin@highland_snip_technology.com> - 2017-09-25 11:37 -0700
  Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 10:06 -0400
    Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-26 00:04 +0200
      Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-26 12:30 -0400
        Re: How does a PLL work? Piotr Wyderski <peter.pan@neverland.mil> - 2017-09-27 00:01 +0200
  Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-25 12:00 -0700
    Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-25 15:39 -0400
      Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-25 12:45 -0700
  Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-26 11:19 -0700
    Re: How does a PLL work? bitrex <bitrex@de.lete.earthlink.net> - 2017-09-26 15:09 -0400
      Re: How does a PLL work? Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-09-26 12:48 -0700
      Re: How does a PLL work? George Herold <gherold@teachspin.com> - 2017-09-26 12:54 -0700

csiph-web