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


Groups > sci.electronics.design > #478801 > unrolled thread

How does a PLL work?

Started byPiotr Wyderski <peter.pan@neverland.mil>
First post2017-09-25 10:07 +0200
Last post2017-09-26 12:54 -0700
Articles 20 on this page of 70 — 16 participants

Back to article view | Back to sci.electronics.design


Contents

  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

Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →


#478863

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2017-09-25 21:18 +0300
Message-ID<oqbhad$6ld$1@dont-email.me>
In reply to#478854
On 25.9.17 19:36, bitrex wrote:
> On 09/25/2017 12:30 PM, Phil Hobbs wrote:
>> On 09/25/2017 12:12 PM, John Larkin wrote:
>>> On Mon, 25 Sep 2017 09:35:35 -0400, Phil Hobbs
>>> <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>>
>>>> On 09/25/2017 04:07 AM, Piotr Wyderski wrote:
>>>>> 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.
>>>>
>>>> You're describing a _first_order_ PLL.  Those lock up in 1 cycle,
>>>> on the plus side, but on the minus side they have a lot of
>>>> comparison frequency ripple and exhibit a phase error proportional
>>>> to the difference between the reference frequency and the
>>>> oscillator's free-running frequency.
>>>>
>>>> But practically nobody uses those.
>>>
>>> We, representing the practically-nobody faction, use simple
>>> XOR+lowpass loops to lock VCXOs to external frequency references. 20
>>>   MHz ripple, filtered through a 100 Hz lowpass filter, doesn't seem
>>> to do much harm.
>>
>> The locking phase will depend on the frequency offset, though, which may
>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>> second-order digital loop would fix that, I expect.
> 
> With a first-order PLL there's some kind of 
> Heisenberg-uncertainty-type-thing going on; if the frequency is locked 
> then the phase must be unlocked or how could the frequency be locked? If 
> the phase is locked then how could the frequency be locked?


Think again: Frequency offset is the rate of change of phase difference.
If phase is locked, frequency must be also.

-- 

-TV

[toc] | [prev] | [next] | [standalone]


#478869

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 15:14 -0400
Message-ID<qAcyB.37579$TD2.20263@fx18.iad>
In reply to#478863
On 09/25/2017 02:18 PM, Tauno Voipio wrote:

>>> The locking phase will depend on the frequency offset, though, which may
>>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>>> second-order digital loop would fix that, I expect.
>>
>> With a first-order PLL there's some kind of 
>> Heisenberg-uncertainty-type-thing going on; if the frequency is locked 
>> then the phase must be unlocked or how could the frequency be locked? 
>> If the phase is locked then how could the frequency be locked?
> 
> 
> Think again: Frequency offset is the rate of change of phase difference.
> If phase is locked, frequency must be also.

Ya but in the simple XOR phase detector -> loop filter -> CV output 
setup the loop doesn't have the actual instantaneous phase offsets of 
both the sources (as compared to some perfect third reference I guess) 
as data to compare to generate the error voltage; it's first generating 
sum/difference _frequencies_ in what amounts to a binary multiplier, 
filtering to get the difference, and then the VCO itself acts like an 
integrator to obtain relative phase error from the difference frequency.

AFAIK all that's required for the system to "believe" it's in lock wrt 
both frequency and phase is for that integral to be constant, but the 
constant is finally arbitrary.

That is to say in that scheme for a phase error voltage to be generated 
at all there must be an instantaneous frequency difference. If there is 
no instantaneous frequency difference at all and the CV output is 
outputting a constant for eternity then who knows what the relative 
phase of the references are? If all you had was the CV output to "look" 
at as your data set and the rest of the circuit was a black box how 
would you know? Ok, they're locked...to...something.

Perfectly willing to accept I'm wrong in this "analysis", but if so I'd 
like to know where! ;-)

[toc] | [prev] | [next] | [standalone]


#478873

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2017-09-25 12:39 -0700
Message-ID<fmmisch6j3gn2fk95i8q3m09bi66psanel@4ax.com>
In reply to#478869
On Mon, 25 Sep 2017 15:14:30 -0400, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 09/25/2017 02:18 PM, Tauno Voipio wrote:
>
>>>> The locking phase will depend on the frequency offset, though, which may
>>>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>>>> second-order digital loop would fix that, I expect.
>>>
>>> With a first-order PLL there's some kind of 
>>> Heisenberg-uncertainty-type-thing going on; if the frequency is locked 
>>> then the phase must be unlocked or how could the frequency be locked? 
>>> If the phase is locked then how could the frequency be locked?
>> 
>> 
>> Think again: Frequency offset is the rate of change of phase difference.
>> If phase is locked, frequency must be also.
>
>Ya but in the simple XOR phase detector -> loop filter -> CV output 
>setup the loop doesn't have the actual instantaneous phase offsets of 
>both the sources (as compared to some perfect third reference I guess) 
>as data to compare to generate the error voltage; it's first generating 
>sum/difference _frequencies_ in what amounts to a binary multiplier, 
>filtering to get the difference, and then the VCO itself acts like an 
>integrator to obtain relative phase error from the difference frequency.
>
>AFAIK all that's required for the system to "believe" it's in lock wrt 
>both frequency and phase is for that integral to be constant, but the 
>constant is finally arbitrary.
>
>That is to say in that scheme for a phase error voltage to be generated 
>at all there must be an instantaneous frequency difference. If there is 
>no instantaneous frequency difference at all and the CV output is 
>outputting a constant for eternity then who knows what the relative 
>phase of the references are? If all you had was the CV output to "look" 
>at as your data set and the rest of the circuit was a black box how 
>would you know? Ok, they're locked...to...something.
>
>Perfectly willing to accept I'm wrong in this "analysis", but if so I'd 
>like to know where! ;-)
>

"Lock" indicators are notoriously flaky.  For those customers who want
such an output I usually define it as a defined number of successive
charge pump slivers less than a designated width.

Built any working PLL's recently ?>:-}
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |

             I'm looking for work... see my website.

Thinking outside the box...producing elegant & economic solutions.

[toc] | [prev] | [next] | [standalone]


#478879

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 16:07 -0400
Message-ID<JldyB.87893$t03.87105@fx23.iad>
In reply to#478873
On 09/25/2017 03:39 PM, Jim Thompson wrote:
> On Mon, 25 Sep 2017 15:14:30 -0400, bitrex
> <bitrex@de.lete.earthlink.net> wrote:
> 
>> On 09/25/2017 02:18 PM, Tauno Voipio wrote:
>>
>>>>> The locking phase will depend on the frequency offset, though, which may
>>>>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>>>>> second-order digital loop would fix that, I expect.
>>>>
>>>> With a first-order PLL there's some kind of
>>>> Heisenberg-uncertainty-type-thing going on; if the frequency is locked
>>>> then the phase must be unlocked or how could the frequency be locked?
>>>> If the phase is locked then how could the frequency be locked?
>>>
>>>
>>> Think again: Frequency offset is the rate of change of phase difference.
>>> If phase is locked, frequency must be also.
>>
>> Ya but in the simple XOR phase detector -> loop filter -> CV output
>> setup the loop doesn't have the actual instantaneous phase offsets of
>> both the sources (as compared to some perfect third reference I guess)
>> as data to compare to generate the error voltage; it's first generating
>> sum/difference _frequencies_ in what amounts to a binary multiplier,
>> filtering to get the difference, and then the VCO itself acts like an
>> integrator to obtain relative phase error from the difference frequency.
>>
>> AFAIK all that's required for the system to "believe" it's in lock wrt
>> both frequency and phase is for that integral to be constant, but the
>> constant is finally arbitrary.
>>
>> That is to say in that scheme for a phase error voltage to be generated
>> at all there must be an instantaneous frequency difference. If there is
>> no instantaneous frequency difference at all and the CV output is
>> outputting a constant for eternity then who knows what the relative
>> phase of the references are? If all you had was the CV output to "look"
>> at as your data set and the rest of the circuit was a black box how
>> would you know? Ok, they're locked...to...something.
>>
>> Perfectly willing to accept I'm wrong in this "analysis", but if so I'd
>> like to know where! ;-)
>>
> 
> "Lock" indicators are notoriously flaky.  For those customers who want
> such an output I usually define it as a defined number of successive
> charge pump slivers less than a designated width.
> 
> Built any working PLL's recently ?>:-}
> 		
>                                          ...Jim Thompson
> 
In the OP's second paragraph he lays out the problem with his digital 
PLL of this topology, where he notes that without an infinite memory the 
VCO has a tendency to want to drift back towards its free-running 
frequency.

My point was that AFAIK that's not unexpected; at least I don't see it 
explicitly saying anywhere in the couple books I have which have 
sections on PLL design that you get perfect frequency locking "for 
free", too. If you want a low-jitter frequency lock as well then as a 
designer that's on you. The books aren't "lying" exactly it's probably 
just a "things they ain't say" kind of situation.

I designed a frequency-locked-loop multiplier to generate some clocks 
using a 555, a TL431, and a bit of glue logic (163 counter, NAND gate 
crystal oscillator/xor multiplier) a while back and it seems to work 
well enough for being under $1 worth of parts; a frequency locked loop 
is a simpler task

[toc] | [prev] | [next] | [standalone]


#478890

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-09-25 17:28 -0400
Message-ID<pdSdnbvrusuL6FTEnZ2dnUU7-XHNnZ2d@supernews.com>
In reply to#478869
On 09/25/2017 03:14 PM, bitrex wrote:
> On 09/25/2017 02:18 PM, Tauno Voipio wrote:
> 
>>>> The locking phase will depend on the frequency offset, though, which
>>>> may
>>>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>>>> second-order digital loop would fix that, I expect.
>>>
>>> With a first-order PLL there's some kind of
>>> Heisenberg-uncertainty-type-thing going on; if the frequency is
>>> locked then the phase must be unlocked or how could the frequency be
>>> locked? If the phase is locked then how could the frequency be locked?
>>
>>
>> Think again: Frequency offset is the rate of change of phase difference.
>> If phase is locked, frequency must be also.
> 
> Ya but in the simple XOR phase detector -> loop filter -> CV output
> setup the loop doesn't have the actual instantaneous phase offsets of
> both the sources (as compared to some perfect third reference I guess)
> as data to compare to generate the error voltage; it's first generating
> sum/difference _frequencies_ in what amounts to a binary multiplier,
> filtering to get the difference, and then the VCO itself acts like an
> integrator to obtain relative phase error from the difference frequency.

I've seen all those words before, but never in that order. ;)

You're going in circles.  It's only the relative phase that matters.
The way to analyze it is to average the relative phase over one cycle of
the reference, find the stability conditions, and then introduce the
ripple as a perturbation.  You can use as many perturbation orders as
you like.

> 
> AFAIK all that's required for the system to "believe" it's in lock wrt
> both frequency and phase is for that integral to be constant, but the
> constant is finally arbitrary.

But it has to sit still, which is how lock is defined.  The relative
phase needn't be 0 or 90 degrees for it to be in lock, as I said earlier.

> 
> That is to say in that scheme for a phase error voltage to be generated
> at all there must be an instantaneous frequency difference. 

Not at all.  The output waveform of the phase detector has ripple (quite
a bit of it if it isn't filtered).  The ripple makes the instantaneous
VCO frequency vary during a cycle, but all that does is distort the
waveform depending on the locking phase.  In other words, in a first
order the relative phases of the harmonics of the VCO are different for
different reference frequencies within the locking range of the loop,
that's all.

That doesn't make the phase or the frequency indeterminate.

> If there is
> no instantaneous frequency difference at all and the CV output is
> outputting a constant for eternity then who knows what the relative
> phase of the references are? 

Well, you know it's constant, which is what "locked" means.

> If all you had was the CV output to "look"
> at as your data set and the rest of the circuit was a black box how
> would you know? Ok, they're locked...to...something.

There are only two signals in view, so that tells you all you need to
know: they're locked together, which is the point of the exercise.
> 
> Perfectly willing to accept I'm wrong in this "analysis", but if so I'd
> like to know where! ;-)

Cheers

Phil Hobbs
> 


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#478897

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-09-26 00:34 +0200
Message-ID<oqc0a7$svv$1@node2.news.atman.pl>
In reply to#478890
Phil Hobbs wrote:

> Not at all.  The output waveform of the phase detector has ripple (quite
> a bit of it if it isn't filtered).  The ripple makes the instantaneous
> VCO frequency vary during a cycle, but all that does is distort the
> waveform depending on the locking phase.

Exactly. The VCO phase accelerates in the first part of the cycle
and decelerates in the second (for the 2*f ripples present at the
output of the simplest multiplier-based PD). This distorts the VCO
cosine and turns it into something resembling sawtooth waveform,
but the phase/frequency lock is firmly held: the average phase
distortion over a cycle is 0. There are no uncertainities.

> Well, you know it's constant, which is what "locked" means.

I'd like it to be constant and 0. And it is what happens, at
least for a sufficiently practical value of 0... ;-)

In the case of this first-order filter the phase offset is
less than about 3 degrees (inferred from quick visual
inspection, not atan2) for 55Hz (twice more than the norm
allows), which I find amazing relatively to the simplicity
of the software solution. No complex filtering, just
a single block of exponential smoothing with its mediocre 6dB slope.
This phase error can be arbitrarily reduced by amplification
of the error voltage, but at the cost of serious increase
of distortion, so in practice it is just a curiosity.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#478908

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 19:52 -0400
Message-ID<lFgyB.421288$xN2.316329@fx44.iad>
In reply to#478890
On 09/25/2017 05:28 PM, Phil Hobbs wrote:

> Not at all.  The output waveform of the phase detector has ripple (quite
> a bit of it if it isn't filtered).  The ripple makes the instantaneous
> VCO frequency vary during a cycle, but all that does is distort the
> waveform depending on the locking phase.  In other words, in a first
> order the relative phases of the harmonics of the VCO are different for
> different reference frequencies within the locking range of the loop,
> that's all.
> 
> That doesn't make the phase or the frequency indeterminate.
> 
>> If there is
>> no instantaneous frequency difference at all and the CV output is
>> outputting a constant for eternity then who knows what the relative
>> phase of the references are?
> 
> Well, you know it's constant, which is what "locked" means.

Ok, fair 'nuff, if in one's design one's comfortable with "it's locked 
at something" and a distorted VCO waveform. OP gave the impression that 
he was comfortable with that, and as I understand it when he attempted 
to get it to lock a free-running oscillator with a natural frequency 
significantly different than the reference at a specific relative phase 
via a first-order PLL discovered you might need an infinite delay line 
to do so. AFAIK that's not unexpected, and the math doesn't claim otherwise.

[toc] | [prev] | [next] | [standalone]


#478913

Frompcdhobbs@gmail.com
Date2017-09-25 17:39 -0700
Message-ID<38ffaded-c6bd-4ff9-888b-d66547d171b6@googlegroups.com>
In reply to#478908
>Ok, fair 'nuff, if in one's design one's comfortable with "it's locked 
>at something" and a distorted VCO waveform.

I've never used a first-order loop myself, partly because BITD I got chucked into the deep end of the pool--I was lucky enough to be given the job of designing 2/3 of the frequency-control electronics for the world's first civilian DBS system, despite having only a hobby electronics background to go with an astronomy and physics bachelor's degree. I'd heard about PLLs but had never seen one to know what it was. 

Fortunately my supervisor (one Josef Fikart, may his tribe increase) lent me a copy of Gardner, so I came up to speed acceptably quickly and got the job done before I had to leave for grad school. I'm grateful that they were willing to take a chance on me. 

Cheers

Phil Hobbs

[toc] | [prev] | [next] | [standalone]


#478886

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-09-25 17:16 -0400
Message-ID<uKCdnQX2iviG71TEnZ2dnUU7-IGdnZ2d@supernews.com>
In reply to#478854
On 09/25/2017 12:36 PM, bitrex wrote:
> On 09/25/2017 12:30 PM, Phil Hobbs wrote:
>> On 09/25/2017 12:12 PM, John Larkin wrote:
>>> On Mon, 25 Sep 2017 09:35:35 -0400, Phil Hobbs
>>> <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>>
>>>> On 09/25/2017 04:07 AM, Piotr Wyderski wrote:
>>>>> 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.
>>>>
>>>> You're describing a _first_order_ PLL.  Those lock up in 1 cycle,
>>>> on the plus side, but on the minus side they have a lot of
>>>> comparison frequency ripple and exhibit a phase error proportional
>>>> to the difference between the reference frequency and the
>>>> oscillator's free-running frequency.
>>>>
>>>> But practically nobody uses those.
>>>
>>> We, representing the practically-nobody faction, use simple
>>> XOR+lowpass loops to lock VCXOs to external frequency references. 20
>>>   MHz ripple, filtered through a 100 Hz lowpass filter, doesn't seem
>>> to do much harm.
>>
>> The locking phase will depend on the frequency offset, though, which may
>> give rise to phase wander on thermal time scales due to VCXO drift.  A
>> second-order digital loop would fix that, I expect.
> 
> With a first-order PLL there's some kind of
> Heisenberg-uncertainty-type-thing going on; if the frequency is locked
> then the phase must be unlocked or how could the frequency be locked? If
> the phase is locked then how could the frequency be locked?
> 

Things sure are strange in the digital Cretaceous today!

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#478932

FromJan Panteltje <pNa0nStpealmtje@yahoo.com>
Date2017-09-26 08:02 +0000
Message-ID<oqd1j1$v7p$1@gioia.aioe.org>
In reply to#478886
On a sunny day (Mon, 25 Sep 2017 17:16:11 -0400) it happened Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote in
<uKCdnQX2iviG71TEnZ2dnUU7-IGdnZ2d@supernews.com>:

>Things sure are strange in the digital Cretaceous today!
>
>Cheers
>
>Phil Hobbs

I dunno how many of those PLL or control loops I designed an build over the years.
Many projects had one or more.

The OP was talking about software..
last one I did was a control system for altitude for my drone,
it drives a 32 position DAC that can be tri-stated to control the 'up / down' throttle.
It is just a few lines of asm, and I wrote it first time right.
In PIC 18 asm:

; if abs(requested_altitude_decimeters_h:requested_altitude_decimeters_l  to  current_altitude_decimeters_h:current_altitude_decimeters_l ) then goto main_read_sector
        clrf        REGA3
        clrf        REGA2
        movff        requested_altitude_decimeters_h, REGA1
        movff        requested_altitude_decimeters_l, REGA0
; REGA3:REGA0 = requested_altitude_decimeters_h:requested_altitude_decimeters_l

        clrf        REGB3
        clrf        REGB2
; signal to interrupt routine not to change these bytes one at the time 
        bsf                WAIT_UPDATING_ALTITUDE_FLAG
        movff        current_altitude_decimeters_h, REGB1
        movff        current_altitude_decimeters_l, REGB0
        bcf                WAIT_UPDATING_ALTITUDE_FLAG
; REGB3:REGB0 = current_altitude_decimeters_h:current_altitude_decimeters_l

        call        subtract                        ; 32 bit subtract REGA - REGB -> REGA, return carry set if overflow, test bit 7 REGA3 for sign flag
; REGA3:REGA0 = requested_altitude_decimeters_h:requested_altitude_decimeters_l - current_altitude_decimeters_h:current_altitude_decimeters_l  = correction factor
; this is positive if too low, then go up
; this is negative if too high, then go down

;  remember sign bit in UP_FLAG


main_positive_alitude:
        bsf                UP_FLAG
        btfsc        REGA3, 7
        bcf                UP_FLAG

; if negative altitude things reverse, yes GPS gives negative altitude sometimes
        btfss        NEGATIVE_ALTITUDE_FLAG
        bra                main_positive_altitude
; how to handle GPS negative altitude, well what do you say, we go into hold tristate DAC out pin 19. and hold position sector 
        movlw        D'16'
        movwf        VREFCON2
; DAC out pin 19 tristate, HOLD 
        bcf                VREFCON1, DAC1OE        
        bra        main_loop
main_positive_altitude:


; get ABS difference in REGA3:REGA0
        call        absa                        ; checks sign of REGA and convert negative to positive
; REGA3:REGA0 = abs(requested_altitude_decimeters_h:requested_altitude_decimeters_l - current_altitude_decimeters_h:current_altitude_decimeters_l)

        movff        REGA0, pa_error

; check if altitude error < 1.5 m
        clrf        REGB3
        clrf        REGB2
        clrf        REGB1
        movlw        D'15'        ; 15 dm, 1.5 m
        movwf        REGB0
; REGB3:REGB0 = 15

        call    subtract            ; 32 bit subtract REGA - REGB -> REGA, return carry set if overflow, test bit 7 REGA3 for sign flag
; REGA3:REGA0 = abs(requested_altitude_decimeters_h:requested_altitude_decimeters_l - current_altitude_decimeters_h:current_altitude_decimeters_l) - 15

; REGA is SIGNED!

; test if in proportional range
; this is negative for abs altitude error < 15
        btfss        REGA3, 7
        bra                altitude_error_out_of_proportional_range


; WAS TEST
;        movff        pa_error, ttemp
;        call        tx_crlf
;        movfw        ttemp
;        call        print_w_ascii_dec
;        movlw        ' '
;        call        tx_w
;        movlw        '1'
;        btfss        UP_FLAG
;        movlw        '0'
;        call        tx_w
;        call        tx_crlf
;        movff        ttemp, REGA0


; To create a proportional band
;        if the error is smaller than 15
;                if going up
;                        add the difference to the DAC + 16 (makes range 16 to 31)
;                else
;                        sutract the difference from the DAC + 16 (makes range 16 to 1) 
;   else
;                if going up
;                        set DAC to maximum (<= 31)
;                else
;                        set DAC to minimum (>= 0)


; note now always DAC out pin 19 enabled!!, throttle on remote control can still override due to series resistors.


; test if up or down required
        btfss        UP_FLAG
        bra                proportional_down


; proportional up
; add REGA0 (for sure < 16) to DAC 16
        movlw        D'16'
        addwf        pa_error
        movff        pa_error, VREFCON2
; DAC to pin 19
        bsf                VREFCON1, DAC1OE        
; do not wait till altitude reached, close enough, 1.6 meter either way, correct while moving to next sector / point
        bra                main_test_end_of_data
;        bra                main_loop

proportional_down:
; subract REGA0 (for sure < 16) from DAC 16        
        movff        pa_error, WREG
        sublw        D'16'
        movwf        VREFCON2
; DAC to pin 19
        bsf                VREFCON1, DAC1OE        
; do not wait till altitude reached, close enough, 1.6 meter either way, correct while moving to next sector / point
        bra                main_test_end_of_data
;        bra                main_loop


altitude_error_out_of_proportional_range:
; test if need to go up or down
; flashing red and green indicates trying to get to specified altitude
        btg                GREEN_LED

        btfss        UP_FLAG
        bra                max_down
; max up
; set DAC to DAC_MAX_RANGE
        movlw        DAC_MAX_RANGE
        movwf        VREFCON2
; DAC to pin 19
        bsf                VREFCON1, DAC1OE        
; wait till altitude reached
        bra                main_loop

max_down:
; set DAC to DAC_MIN_RANGE
        movlw        DAC_MIN_RANGE
    movwf        VREFCON2
; DAC to pin 19
        bsf                VREFCON1, DAC1OE        
; wait till altitude reached
        bra                main_loop        

  ***********************************

You can see it flying an altitude controlled pattern here:
 https://www.youtube.com/watch?v=bI_0mjwlvNw

The smaller you make the proportional band the higher the gain in fact.
The 'phase' is the altitude,
How many times per second the code is executed is also important.

It is a bit 'fingerspitzengefuhl'.

 
It is not hard,
I think Tim had a nice writeup here a while back about contol loops.

Now do not tell me it does not work ;-)

[toc] | [prev] | [next] | [standalone]


#478903

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-09-26 01:01 +0200
Message-ID<oqc1rk$u90$1@node2.news.atman.pl>
In reply to#478854
bitrex wrote:

> With a first-order PLL there's some kind of
> Heisenberg-uncertainty-type-thing going on; if the frequency is locked
> then the phase must be unlocked or how could the frequency be locked?

You must distinguish between instantaneous phase and average phase.
Here's a picture for you, depicting the last cycles of a heavily
overdriven VCO trying to tune to 55Hz:

https://s26.postimg.org/kbscjd5nt/pll3.png

As you can see, the instantaneous phase went totally crazy, but
the phase/frequency lock still maintained (relatively to the blue curve).

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#478909

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 19:54 -0400
Message-ID<RGgyB.421289$xN2.13521@fx44.iad>
In reply to#478903
On 09/25/2017 07:01 PM, Piotr Wyderski wrote:
> bitrex wrote:
> 
>> With a first-order PLL there's some kind of
>> Heisenberg-uncertainty-type-thing going on; if the frequency is locked
>> then the phase must be unlocked or how could the frequency be locked?
> 
> You must distinguish between instantaneous phase and average phase.
> Here's a picture for you, depicting the last cycles of a heavily
> overdriven VCO trying to tune to 55Hz:
> 
> https://s26.postimg.org/kbscjd5nt/pll3.png
> 
> As you can see, the instantaneous phase went totally crazy, but
> the phase/frequency lock still maintained (relatively to the blue curve).
> 
>      Best regards, Piotr
> 

Can you tell me what signals are represented by what colors in the 
diagram? I think I know but would be good to be sure...

[toc] | [prev] | [next] | [standalone]


#478936

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-09-26 11:52 +0200
Message-ID<oqd80i$9tr$1@node1.news.atman.pl>
In reply to#478909
bitrex wrote:

> Can you tell me what signals are represented by what colors in the 
> diagram? I think I know but would be good to be sure...

Green: input, blue: VCO sine, orange: VCO cosine, red: the VCO control.
The phase detector multiplies the input with -cosine in order to lock it
to the sine waveform.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#478852

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 12:30 -0400
Message-ID<XaayB.89201$EZ2.25689@fx22.iad>
In reply to#478849
On 09/25/2017 12:12 PM, John Larkin wrote:
> On Mon, 25 Sep 2017 09:35:35 -0400, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> wrote:
> 
>> On 09/25/2017 04:07 AM, Piotr Wyderski wrote:
>>> 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.
>>
>> You're describing a _first_order_ PLL.  Those lock up in 1 cycle, on the
>> plus side, but on the minus side they have a lot of comparison frequency
>> ripple and exhibit a phase error proportional to the difference between
>> the reference frequency and the oscillator's free-running frequency.
>>
>> But practically nobody uses those.
> 
> We, representing the practically-nobody faction, use simple
> XOR+lowpass loops to lock VCXOs to external frequency references. 20
> MHz ripple, filtered through a 100 Hz lowpass filter, doesn't seem to
> do much harm.
> 
> The XOR is inside an FPGA. When the external reference is not
> available, we can PWM or Delta-sigma the FPGA output to tune the
> oscillator frequency from a cal factor.

Simple first-order PLLs work just fine if the VCO and reference already 
have the same frequency. If you want frequency-locking _and_ 
phase-locking too that'll cost extra!

[toc] | [prev] | [next] | [standalone]


#478853

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-09-25 12:32 -0400
Message-ID<4qqdnRMvlJwSslTEnZ2dnUU7-WmdnZ2d@supernews.com>
In reply to#478852
On 09/25/2017 12:30 PM, bitrex wrote:
> On 09/25/2017 12:12 PM, John Larkin wrote:
>> On Mon, 25 Sep 2017 09:35:35 -0400, Phil Hobbs
>> <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>
>>> On 09/25/2017 04:07 AM, Piotr Wyderski wrote:
>>>> 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.
>>>
>>> You're describing a _first_order_ PLL.  Those lock up in 1 cycle, on the
>>> plus side, but on the minus side they have a lot of comparison frequency
>>> ripple and exhibit a phase error proportional to the difference between
>>> the reference frequency and the oscillator's free-running frequency.
>>>
>>> But practically nobody uses those.
>>
>> We, representing the practically-nobody faction, use simple
>> XOR+lowpass loops to lock VCXOs to external frequency references. 20
>> MHz ripple, filtered through a 100 Hz lowpass filter, doesn't seem to
>> do much harm.
>>
>> The XOR is inside an FPGA. When the external reference is not
>> available, we can PWM or Delta-sigma the FPGA output to tune the
>> oscillator frequency from a cal factor.
> 
> Simple first-order PLLs work just fine if the VCO and reference already
> have the same frequency. If you want frequency-locking _and_
> phase-locking too that'll cost extra!

Why?  Phase locking doesn't have to be at 0 or 90 degrees to be phase
locking--the relative phases just have to stay still.

Cheers

Phil Hobbs



-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#478859

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 13:48 -0400
Message-ID<VjbyB.68350$1E2.55880@fx29.iad>
In reply to#478853
On 09/25/2017 12:32 PM, Phil Hobbs wrote:

>>> The XOR is inside an FPGA. When the external reference is not
>>> available, we can PWM or Delta-sigma the FPGA output to tune the
>>> oscillator frequency from a cal factor.
>>
>> Simple first-order PLLs work just fine if the VCO and reference already
>> have the same frequency. If you want frequency-locking _and_
>> phase-locking too that'll cost extra!
> 
> Why?  Phase locking doesn't have to be at 0 or 90 degrees to be phase
> locking--the relative phases just have to stay still.
> 
> Cheers
> 
> Phil Hobbs

Well, I just don't see anywhere in the equations for such a PLL where 
the VCO control voltage input being constant materially implies that the 
reference and VCO instantaneous frequencies must be equal, just that the 
integral of their relative error be constant. And if the control voltage 
should not be a constant then I don't see how the phase can be truly 
locked, either...

[toc] | [prev] | [next] | [standalone]


#478860

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 13:55 -0400
Message-ID<8qbyB.73090$%M2.48154@fx43.iad>
In reply to#478859
On 09/25/2017 01:48 PM, bitrex wrote:
> On 09/25/2017 12:32 PM, Phil Hobbs wrote:
> 
>>>> The XOR is inside an FPGA. When the external reference is not
>>>> available, we can PWM or Delta-sigma the FPGA output to tune the
>>>> oscillator frequency from a cal factor.
>>>
>>> Simple first-order PLLs work just fine if the VCO and reference already
>>> have the same frequency. If you want frequency-locking _and_
>>> phase-locking too that'll cost extra!
>>
>> Why?  Phase locking doesn't have to be at 0 or 90 degrees to be phase
>> locking--the relative phases just have to stay still.
>>
>> Cheers
>>
>> Phil Hobbs
> 
> Well, I just don't see anywhere in the equations for such a PLL where 
> the VCO control voltage input being constant materially implies that the 
> reference and VCO instantaneous frequencies must be equal, just that the 
> integral of their relative error be constant. And if the control voltage 
> should not be a constant then I don't see how the phase can be truly 
> locked, either...
> 

I guess what I'm trying to say is it's assumed in the analysis that the 
VCO gain is not a function of time, but that's not really true.

[toc] | [prev] | [next] | [standalone]


#478865

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-09-25 11:39 -0700
Message-ID<79jisc5b9m0lphqmq772knaaa0mhjsa2k7@4ax.com>
In reply to#478860
On Mon, 25 Sep 2017 13:55:15 -0400, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 09/25/2017 01:48 PM, bitrex wrote:
>> On 09/25/2017 12:32 PM, Phil Hobbs wrote:
>> 
>>>>> The XOR is inside an FPGA. When the external reference is not
>>>>> available, we can PWM or Delta-sigma the FPGA output to tune the
>>>>> oscillator frequency from a cal factor.
>>>>
>>>> Simple first-order PLLs work just fine if the VCO and reference already
>>>> have the same frequency. If you want frequency-locking _and_
>>>> phase-locking too that'll cost extra!
>>>
>>> Why?  Phase locking doesn't have to be at 0 or 90 degrees to be phase
>>> locking--the relative phases just have to stay still.
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>> 
>> Well, I just don't see anywhere in the equations for such a PLL where 
>> the VCO control voltage input being constant materially implies that the 
>> reference and VCO instantaneous frequencies must be equal, just that the 
>> integral of their relative error be constant. And if the control voltage 
>> should not be a constant then I don't see how the phase can be truly 
>> locked, either...
>> 
>
>I guess what I'm trying to say is it's assumed in the analysis that the 
>VCO gain is not a function of time, but that's not really true.

One can have distinct acquire and track gains or time constants.
Wideband when out of lock, narrowband in operation.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#478864

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-09-25 11:37 -0700
Message-ID<npiisct2rer0if98phdgm5it0mivdapdi5@4ax.com>
In reply to#478852
On Mon, 25 Sep 2017 12:30:46 -0400, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 09/25/2017 12:12 PM, John Larkin wrote:
>> On Mon, 25 Sep 2017 09:35:35 -0400, Phil Hobbs
>> <pcdhSpamMeSenseless@electrooptical.net> wrote:
>> 
>>> On 09/25/2017 04:07 AM, Piotr Wyderski wrote:
>>>> 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.
>>>
>>> You're describing a _first_order_ PLL.  Those lock up in 1 cycle, on the
>>> plus side, but on the minus side they have a lot of comparison frequency
>>> ripple and exhibit a phase error proportional to the difference between
>>> the reference frequency and the oscillator's free-running frequency.
>>>
>>> But practically nobody uses those.
>> 
>> We, representing the practically-nobody faction, use simple
>> XOR+lowpass loops to lock VCXOs to external frequency references. 20
>> MHz ripple, filtered through a 100 Hz lowpass filter, doesn't seem to
>> do much harm.
>> 
>> The XOR is inside an FPGA. When the external reference is not
>> available, we can PWM or Delta-sigma the FPGA output to tune the
>> oscillator frequency from a cal factor.
>
>Simple first-order PLLs work just fine if the VCO and reference already 
>have the same frequency. If you want frequency-locking _and_ 
>phase-locking too that'll cost extra!

I just want the frequency to be right. There will be ground loops and
stuff from the reference, so we want a slow, no-drama loop.

I also assume that if the customer doesn't give me a 10 MHz reference
that's right to 1 PPM absolute, there's no point to locking to it.

Most VCXOs and OCXOs lowpass filter their VC input, in the KHz range,
but that's outside out basic integral range, so our XOR loop is pretty
much still 1st order.

I have done PLLs where the phase mattered, to picoseconds. Those used
an ECL Dflop as a bang-bang early-late phase detector, which is
mathematically nasty.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#478837

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-09-25 10:06 -0400
Message-ID<F38yB.105207$pI2.58099@fx10.iad>
In reply to#478801
On 09/25/2017 04:07 AM, Piotr Wyderski wrote:

> 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


The books don't lie, it's just that in practice a PLL is one of those 
feedback/control systems where you can't twiddle coefficients in Spice 
or software and expect it to work well. It's a negative-feedback system 
with a ton of loop gain and like any other such system you can't just go 
on slapping poles into the loop and expect it to not be unstable; 
usually the VCO has a frequency-dependent gain, the phase detector has a 
frequency-dependent gain, and the loop filter has a frequency-dependent 
gain and they all interact.

So you have know your requirements and write down the loop equation 
including all those functional blocks in the s/z domain and apply all 
those fun techniques from control theory, and look at Bode/root locus 
plots in a CAS or something to ensure you have the performance you want 
while also maintaining sufficient phase margin throughout the desired 
regime of operation.

That is to say just blindly "tweaking" the loop filter order without 
being able to quantitatively say how that tweaking interacts with the 
rest of the loop isn't likely to lead anywhere nice. There aren't really 
any "cookbook" topologies that can be applied to wildly different 
requirements; if your requirements are significantly different than a 
ready-made circuit in a book it's back to the drawing board.

[toc] | [prev] | [next] | [standalone]


Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →

Back to top | Article view | sci.electronics.design


csiph-web