Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #478801 > unrolled thread
| Started by | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| First post | 2017-09-25 10:07 +0200 |
| Last post | 2017-09-26 12:54 -0700 |
| Articles | 20 on this page of 70 — 16 participants |
Back to article view | Back to sci.electronics.design
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 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-26 09:44 +0200 |
| Message-ID | <oqd0gb$ovn$1@node2.news.atman.pl> |
| In reply to | #478904 |
pcdhobbs@gmail.com wrote: > Since you're using software, why is it hard to add a few more bits and use a proper digital filter? Precisely because there are not many bits left. This is a very weird chip with seriously too few bytes per MIPS. It can do 8e7 MACs per second, but has only 256 24-bit storage cells, 128 code locations and 32 labels (jump targets). And it needs to do the following: 1. For 8 independent ADC data streams, 100ksps each, shift every sample by a channel-specific offset. 2. Check if the result is within a per-channel safety range, if not, engage an emergency shutdown sequence. 3. Decimate each stream by 64 with a decent amount of antialias filtering, which boils down to a cascade of 3 4th order CIC filters per channel. 4. Phase-lock to one of these channels and generate f_mains*1024 using an NCO propelling a resonant filter sine wave oscillator. 5. Take another data stream at 310ksps, perform quadrature mixing, do the same amount of filtering and decimation on the resulting I/Q channels as in the case of the abovementioned monitoring channels. Only the points 1-3 require at least 224 storage cells if implemented naively, point 5 adds another 44 cels, exceeding the limit of 256. I had to be very creative to fit it in the available memory space. I hadn't had enough free cells to store the coefficients of a biquad, but then realized that the PLL can go at high speed, which freed 4 cells occupied by the final comb section, so now it *might* be doable. Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2017-09-26 13:55 -0400 |
| Message-ID | <ofSdnQosHvoHCVfEnZ2dnUU7-RmdnZ2d@supernews.com> |
| In reply to | #478929 |
On 09/26/2017 03:44 AM, Piotr Wyderski wrote: > pcdhobbs@gmail.com wrote: > >> Since you're using software, why is it hard to add a few more bits and >> use a proper digital filter? > > Precisely because there are not many bits left. This is a very weird > chip with seriously too few bytes per MIPS. It can do 8e7 MACs per > second, but has only 256 24-bit storage cells, 128 code locations > and 32 labels (jump targets). And it needs to do the following: Now you tell us, 50+ posts later. > > 1. For 8 independent ADC data streams, 100ksps each, shift every > sample by a channel-specific offset. > > 2. Check if the result is within a per-channel safety range, if not, > engage an emergency shutdown sequence. > > 3. Decimate each stream by 64 with a decent amount of antialias > filtering, which boils down to a cascade of 3 4th order CIC filters > per channel. > > 4. Phase-lock to one of these channels and generate f_mains*1024 > using an NCO propelling a resonant filter sine wave oscillator. > > 5. Take another data stream at 310ksps, perform quadrature mixing, > do the same amount of filtering and decimation on the resulting I/Q > channels as in the case of the abovementioned monitoring channels. > > Only the points 1-3 require at least 224 storage cells if implemented > naively, point 5 adds another 44 cels, exceeding the limit of 256. > I had to be very creative to fit it in the available memory space. > I hadn't had enough free cells to store the coefficients of a biquad, > but then realized that the PLL can go at high speed, which > freed 4 cells occupied by the final comb section, so now it *might* be > doable. > > Best regards, Piotr With that sort of constraint, I'd probably injection lock it to make f_mains*2 and use a Tinylogic flipflop to get 50% duty cycle. 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]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-26 23:13 +0200 |
| Message-ID | <oqefu5$ivp$1@node1.news.atman.pl> |
| In reply to | #478969 |
Phil Hobbs wrote: > Now you tell us, 50+ posts later. The question was not about how to create a PLL given the constraints, I have already had a working one, to my surprise much better than I expected. The not mentioned previously immunity to noise is just shocking. My problem was the divergence of the real design and the available PLL theory materials. You once told me to go and experiment with PLLs, as there is a lot of fun. There is, indeed. :-) > With that sort of constraint, I'd probably injection lock it to make > f_mains*2 and use a Tinylogic flipflop to get 50% duty cycle. There are 192 macrocells available, no need to add any external part. And it is my main objective: a single chip solution. The problem would have been trivial on a decent DSP or an FPGA, but they require multiple supporting chips (RAM/ROM/ADC/opamps) and hence are not an option. Even Zynq is not close enough, so PSOC5LP is the only game in town, despite the pile of its obvious downsides. As always, thank you all for your input, I've learnt a lot. Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-28 00:28 +0200 |
| Message-ID | <oqh8nh$kdj$1@node2.news.atman.pl> |
| In reply to | #478997 |
Piotr Wyderski wrote: > The question was not about how to create a PLL given the constraints, > I have already had a working one, to my surprise much better than I > expected. I have more results to share. I can accept the phase modulation artifacts, they change the NCO period by less than 7%, so it is not a big issue. I can even lie through teeth and proclaim it to be an EMI-reducing spread spectrum modulator or another continuum transfunctioner. Nonetheless, for completeness I have created a generic second order biquad structure, filled it with various coefficients and simulated in double precision to avoid the most obvious numeric instabilities. I have checked the Gaussian, Butterworth, Chebyshev and elliptic approximations and the -3dB frequencies in the range of 1..50Hz. As it can be expected, the ripple level of these filters is superb, especially in the case of the elliptic filter for 5.9Hz, which happens to have a zero at 100Hz, BUT the loop is much harder to stabilize. The lock occurs only for a relatively narrow range of gains, while the reference exponential smoother works correctly within the range as wide as an order of magnitude. Lower gain just means increased constant phase error, while too much gain means increased distortion level. The filters are also more agile, but they always introduce a tiny phase lag, while the smoother with sufficient gain doesn't. For some reason 10Hz passband gives the best results, lower bandwidth filters converge too slowly or not at all, while the wider ones are robust, but their ripple level is comparable to that of the smoother. So since the increased complexity doesn't buy me much, I'll stick to the embarassingly primitive smoother. Moreover, it is possible to add a frequency-dependent gain compensation based on linear interpolation, which, too, works unexpectedly well. The PLL locks in the range of 45..55Hz with a negligible phase offset. There is something deeply mysterious about this low alpha exponential smoother, its robustness is on the verge of offensiveness, given its crude nature. I think I am onto something, but don't know what that something might be. Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | George Herold <gherold@teachspin.com> |
|---|---|
| Date | 2017-09-27 17:39 -0700 |
| Message-ID | <e7fdcfff-acbe-4d34-a7b5-a657a78f2fe4@googlegroups.com> |
| In reply to | #479148 |
On Wednesday, September 27, 2017 at 6:29:10 PM UTC-4, Piotr Wyderski wrote: > Piotr Wyderski wrote: > > > The question was not about how to create a PLL given the constraints, > > I have already had a working one, to my surprise much better than I > > expected. > > I have more results to share. I can accept the phase modulation > artifacts, they change the NCO period by less than 7%, so it is > not a big issue. I can even lie through teeth and proclaim it to > be an EMI-reducing spread spectrum modulator or another continuum > transfunctioner. Nonetheless, for completeness I have created > a generic second order biquad structure, filled it with various > coefficients and simulated in double precision to avoid the most > obvious numeric instabilities. I have checked the Gaussian, > Butterworth, Chebyshev and elliptic approximations and the -3dB > frequencies in the range of 1..50Hz. > > As it can be expected, the ripple level of these filters is superb, > especially in the case of the elliptic filter for 5.9Hz, which happens > to have a zero at 100Hz, BUT the loop is much harder to stabilize. > The lock occurs only for a relatively narrow range of gains, while > the reference exponential smoother works correctly within the range > as wide as an order of magnitude. Lower gain just means increased > constant phase error, while too much gain means increased distortion > level. The filters are also more agile, but they always introduce > a tiny phase lag, while the smoother with sufficient gain doesn't. > For some reason 10Hz passband gives the best results, lower bandwidth > filters converge too slowly or not at all, while the wider ones are > robust, but their ripple level is comparable to that of the smoother. > So since the increased complexity doesn't buy me much, I'll stick > to the embarassingly primitive smoother. > > Moreover, it is possible to add a frequency-dependent gain compensation > based on linear interpolation, which, too, works unexpectedly well. The > PLL locks in the range of 45..55Hz with a negligible phase offset. > > There is something deeply mysterious about this low alpha exponential > smoother, its robustness is on the verge of offensiveness, given its > crude nature. I think I am onto something, but don't know what that > something might be. > > Best regards, Piotr Piotr, I'm enjoying your posts, (and have never done a HF PLL.) So take this for what it's worth. I've done a few LF loops. If there's a dead band try a bit offset. Re: the noise reduction when you close the loop. I understand this as a limit on the bandwidth. But it is fun to see! "Zoooop" (the sound as the noise goes away.) George H.
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaonStpealmtje@yahoo.com> |
|---|---|
| Date | 2017-09-28 07:42 +0000 |
| Message-ID | <oqi94k$30vg$1@adenine.netfront.net> |
| In reply to | #479148 |
On a sunny day (Thu, 28 Sep 2017 00:28:58 +0200) it happened Piotr Wyderski <peter.pan@neverland.mil> wrote in <oqh8nh$kdj$1@node2.news.atman.pl>: >Piotr Wyderski wrote: > >> The question was not about how to create a PLL given the constraints, >> I have already had a working one, to my surprise much better than I >> expected. > >I have more results to share. I can accept the phase modulation >artifacts, they change the NCO period by less than 7%, so it is >not a big issue. I can even lie through teeth and proclaim it to >be an EMI-reducing spread spectrum modulator or another continuum >transfunctioner. Nonetheless, for completeness I have created >a generic second order biquad structure, filled it with various >coefficients and simulated in double precision to avoid the most > obvious numeric instabilities. I have checked the Gaussian, >Butterworth, Chebyshev and elliptic approximations and the -3dB >frequencies in the range of 1..50Hz. > >As it can be expected, the ripple level of these filters is superb, >especially in the case of the elliptic filter for 5.9Hz, which happens >to have a zero at 100Hz, BUT the loop is much harder to stabilize. >The lock occurs only for a relatively narrow range of gains, while >the reference exponential smoother works correctly within the range >as wide as an order of magnitude. Lower gain just means increased >constant phase error, while too much gain means increased distortion >level. The filters are also more agile, but they always introduce >a tiny phase lag, while the smoother with sufficient gain doesn't. >For some reason 10Hz passband gives the best results, lower bandwidth >filters converge too slowly or not at all, while the wider ones are >robust, but their ripple level is comparable to that of the smoother. >So since the increased complexity doesn't buy me much, I'll stick >to the embarassingly primitive smoother. > >Moreover, it is possible to add a frequency-dependent gain compensation >based on linear interpolation, which, too, works unexpectedly well. The >PLL locks in the range of 45..55Hz with a negligible phase offset. > >There is something deeply mysterious about this low alpha exponential >smoother, its robustness is on the verge of offensiveness, given its >crude nature. I think I am onto something, but don't know what that >something might be. > > Best regards, Piotr I cannot escape the impression that you are missing something essentially simple. Or at least I cannot decode what you write. That may well be my shortcoming. A little anecdote: When first hearing about logic and logic symbols, somebody presented a counter with feedback. I looked at it and after a high brain activity moment followed by short-circuit halt instruction concluded it could never work. Because it missed that essential ingredient. In the presentation the gates were timeless, had no delay [1]. Logic feedback circuits can only work BECAUSE they have a delay. [1] If gates have no delay the input is corrected at the same moment as the output resulting in ?? Your stories remind me of that moment. What 'teachers' present is not necessarily what they understand.
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-28 10:17 +0200 |
| Message-ID | <oqib7b$ben$1@node1.news.atman.pl> |
| In reply to | #479197 |
Jan Panteltje wrote: > I cannot escape the impression that you are missing something essentially simple. Could well be, but the problem -- if I may say so -- is that the PLLs work and I am able to make them lock to the given frequency. Their performance is just inferior despite the higher resource consumption compared to an exponential smoother, which basically is a digital equivalent of a first order RC circuit. And frankly, I can't explain that. > Your stories remind me of that moment. Then give it a shot, I'd gladly learn what and whether I'm missing something. I'm no expert in this field, but just have a "circuit" with unexpectedly good performance. > What 'teachers' present is not necessarily what they understand. The level of teachers' understanding is a topic for another sad discussion. Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaonStpealmtje@yahoo.com> |
|---|---|
| Date | 2017-09-28 12:52 +0000 |
| Message-ID | <oqirb7$gof$1@adenine.netfront.net> |
| In reply to | #479200 |
On a sunny day (Thu, 28 Sep 2017 10:17:41 +0200) it happened Piotr Wyderski
<peter.pan@neverland.mil> wrote in <oqib7b$ben$1@node1.news.atman.pl>:
>Jan Panteltje wrote:
>
>> I cannot escape the impression that you are missing something essentially simple.
>
>Could well be, but the problem -- if I may say so -- is that
>the PLLs work and I am able to make them lock to the given
>frequency. Their performance is just inferior despite the
>higher resource consumption compared to an exponential smoother,
>which basically is a digital equivalent of a first order RC circuit.
>And frankly, I can't explain that.
It is hard to tell without code or circuit.
I am in no way a PLL expert, but those always seem to work.
I think some people already mentioned some good references.
>I'm no expert in this field, but
>just have a "circuit" with unexpectedly good performance.
In the previous paragraph you said
'performance is just inferior'
now you say:
'unexpectedly good performance'
so the problem is with your logic :-)
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-28 16:21 +0200 |
| Message-ID | <oqj0gh$6sh$1@node2.news.atman.pl> |
| In reply to | #479210 |
Jan Panteltje wrote: > In the previous paragraph you said > 'performance is just inferior' > now you say: > 'unexpectedly good performance' > > so the problem is with your logic :-) In the first paragraph "their" refers to the classic lowpass biquad filtering structures, the latter refers to the exponential smoother. "Their performance is just inferior despite the higher resource consumption *compared to* an exponential smoother" Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaonStpealmtje@yahoo.com> |
|---|---|
| Date | 2017-09-28 15:22 +0000 |
| Message-ID | <oqj46o$b26$1@adenine.netfront.net> |
| In reply to | #479214 |
On a sunny day (Thu, 28 Sep 2017 16:21:04 +0200) it happened Piotr Wyderski <peter.pan@neverland.mil> wrote in <oqj0gh$6sh$1@node2.news.atman.pl>: >Jan Panteltje wrote: > >> In the previous paragraph you said >> 'performance is just inferior' >> now you say: >> 'unexpectedly good performance' >> >> so the problem is with your logic :-) > >In the first paragraph "their" refers to the classic >lowpass biquad filtering structures, the latter refers >to the exponential smoother. > >"Their performance is just inferior despite the higher >resource consumption *compared to* an exponential smoother" > > Best regards, Piotr Ok, got it. The fact remains it is hard to tell without knowing what you control etc etc. In the long ago past I worked in a TV studio, there were more locked loops in there then you may think, from color carrier to hsync to vsync, some over large distances via radio or cable, and at the top the quadruplex video recording where you had to position 4 video heads rotating at 250 rev/second to within a few micron, and then electronically compensate with even more loops the timing errors of the signal coming from it. all in real time synced to some studio reference, and of course tape speed too. I am real familiar with all those solutions and it was, and still is, top electronics. Jim already mentioned one such phase detector system. But without specifying all those variables (like mass of the rotating head, time delays, error margins, lock speed, etc etc) it is not possible to just plonk down a 'fits all' solution. If something works better than expected maybe there are those other factors in play, same if worse. Over time things sort of condense out, that is what I mean by 'fingersptizengefuhl', So always be specific what you are controlling, its properties, requirements.
[toc] | [prev] | [next] | [standalone]
| From | Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> |
|---|---|
| Date | 2017-09-28 12:29 -0700 |
| Message-ID | <q4jqscd5hdd03o7i73ktfc0ubifp4nme1l@4ax.com> |
| In reply to | #479222 |
On Thu, 28 Sep 2017 15:22:51 GMT, Jan Panteltje
<pNaonStpealmtje@yahoo.com> wrote:
>On a sunny day (Thu, 28 Sep 2017 16:21:04 +0200) it happened Piotr Wyderski
><peter.pan@neverland.mil> wrote in <oqj0gh$6sh$1@node2.news.atman.pl>:
>
>>Jan Panteltje wrote:
>>
>>> In the previous paragraph you said
>>> 'performance is just inferior'
>>> now you say:
>>> 'unexpectedly good performance'
>>>
>>> so the problem is with your logic :-)
>>
>>In the first paragraph "their" refers to the classic
>>lowpass biquad filtering structures, the latter refers
>>to the exponential smoother.
>>
>>"Their performance is just inferior despite the higher
>>resource consumption *compared to* an exponential smoother"
>>
>> Best regards, Piotr
>
>Ok, got it.
>The fact remains it is hard to tell without knowing what you control etc etc.
>In the long ago past I worked in a TV studio, there were more locked loops in there
>then you may think, from color carrier to hsync to vsync, some over large distances
>via radio or cable, and at the top the quadruplex video recording where you had to position 4 video heads
>rotating at 250 rev/second to within a few micron, and then electronically compensate
>with even more loops the timing errors of the signal coming from it.
>all in real time synced to some studio reference, and of course tape speed too.
>I am real familiar with all those solutions and it was, and still is, top electronics.
>Jim already mentioned one such phase detector system.
>But without specifying all those variables (like mass of the rotating head, time delays,
>error margins, lock speed, etc etc) it is not possible to just plonk down a 'fits all' solution.
>If something works better than expected maybe there are those other factors in play,
>same if worse.
>Over time things sort of condense out, that is what I mean by 'fingersptizengefuhl',
>
>So always be specific what you are controlling, its properties, requirements.
Add a motor, some friction, some inertia, and the fun begins.
A simple tiny motor _may_ be treated as an integrator... beyond that,
all hell breaks loose.
In 1968 (at Philco-Ford, Santa Clara) I was involved in designing
cruise controls for automobiles... in essence, a PLL... great fun...
we towed a 1967 Ford T-bird around to measure all its parameters ;-)
...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]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2017-09-28 13:27 -0700 |
| Message-ID | <bb5bd2a8-748d-4a0a-930a-82ff38b78a54@googlegroups.com> |
| In reply to | #479262 |
On Thursday, September 28, 2017 at 12:29:46 PM UTC-7, Jim Thompson wrote: > Add a motor, some friction, some inertia, and the fun begins. > > A simple tiny motor _may_ be treated as an integrator... beyond that, > all hell breaks loose. > > In 1968 (at Philco-Ford, Santa Clara) I was involved in designing > cruise controls for automobiles... in essence, a PLL... great fun... > we towed a 1967 Ford T-bird around to measure all its parameters ;-) It's amusing to pull open a CD deck, and find the test points (this works best on a 20-year-old unit, new 'uns don't have test points). One of the test points is the spindle motor loop control, you can watch it while gently braking the disk rotation with a finger. There's some buffering, of course, but basically that is a PLL control voltage. Another is the radial seek control voltagel, usually (due to eccentric shaft or pressing of the CD) has 1 Hz ripple. The focus control is more likely to have harmonics of 1 Hz.
[toc] | [prev] | [next] | [standalone]
| From | kevin93 <kevin@whitedigs.com> |
|---|---|
| Date | 2017-09-25 16:43 -0700 |
| Message-ID | <5bb2f279-9303-42c9-ab10-233784aef6bd@googlegroups.com> |
| In reply to | #478895 |
On Monday, September 25, 2017 at 3:14:41 PM UTC-7, Piotr Wyderski wrote: > Phil Hobbs wrote: > > > The vital difference is that the response of the integrator is > > proportional to the amplitude of the input. Small input -> small output > > slope. Big input -> big slope. > > > > Counters have a fixed slope for a fixed update rate. An integrator is > > like a multiply-and-accumulate stage, i.e. a 1-pole IIR lowpass. > > That remark is perfectly valid, but in the context of this kind of PFDs: > > https://i.stack.imgur.com/HPbAo.gif > > there are no big and small inputs, just three possibilities: inject > the unit charge to the capacitor (a function of the charge pump > current and the time quantum implied by the clock), withdraw a > comparable charge or retain the collected charge. And that reduces > to an analog quantized step integrator/preferably digital counter. Am I > wrong? > > Best regards, Piotr There can be small outputs - depending upon the timing of the reference and the VCO the time difference can result in very narrow pulses - they are not quantized unit charges. Either clock input can terminate the pulse. As Phil has said this type of PFD suffers from a dead zone when both clocks are close to synchronism that gives unstable operation. kevin
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-09-26 10:10 +0200 |
| Message-ID | <oqd21k$q86$1@node2.news.atman.pl> |
| In reply to | #478907 |
kevin93 wrote: > There can be small outputs - depending upon the timing of the reference > and the VCO the time difference can result in very narrow pulses - they > are not quantized unit charges. Either clock input can terminate the pulse. Good point! Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-09-25 10:25 -0400 |
| Message-ID | <El8yB.35652$%D2.7076@fx14.iad> |
| In reply to | #478836 |
On 09/25/2017 09:59 AM, Piotr Wyderski wrote: > Phil Hobbs wrote: > >> or use an op amp integrator with a lead-lag characteristic. > > I understand the edge-sensitive PFD with a charge pump. It is > basically a counter incremented/decremented accordingly to the > FSM state, which content can be directly transformed into phase > error. But you've lost me here: and integrate what? And what should > I do with the result? Ideally you could just use an op-amp integrator to integrate the output of the phase detector - phase detectors usually generate sum and difference components and you want the DC component of the error signal to drive the VCO and filter out the sum. But you can't naively insert a bare integrator into your loop because it adds a 90 degree phase lag, and you already have phase lag because the VCO itself is acting as an integrator, i.e. frequency is the integral of phase. So you have use a lead-lag type of integrator/filter that zeros out some of the phase shift in your area of interest
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-09-25 10:29 -0400 |
| Message-ID | <Bp8yB.35653$%D2.9709@fx14.iad> |
| In reply to | #478839 |
On 09/25/2017 10:25 AM, bitrex wrote: > On 09/25/2017 09:59 AM, Piotr Wyderski wrote: >> Phil Hobbs wrote: >> >>> or use an op amp integrator with a lead-lag characteristic. >> >> I understand the edge-sensitive PFD with a charge pump. It is >> basically a counter incremented/decremented accordingly to the >> FSM state, which content can be directly transformed into phase >> error. But you've lost me here: and integrate what? And what should >> I do with the result? > > Ideally you could just use an op-amp integrator to integrate the output > of the phase detector - phase detectors usually generate sum and > difference components and you want the DC component of the error signal > to drive the VCO and filter out the sum. But you can't naively insert a > bare integrator into your loop because it adds a 90 degree phase lag, > and you already have phase lag because the VCO itself is acting as an > integrator, i.e. frequency is the integral of phase. Sorry, swap that, phase is the integral of frequency ;-)
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2017-09-25 12:09 -0400 |
| Message-ID | <dMydnVYP8IuBt1TEnZ2dnUU7-QfNnZ2d@supernews.com> |
| In reply to | #478836 |
On 09/25/2017 09:59 AM, Piotr Wyderski wrote: > Phil Hobbs wrote: > >> or use an op amp integrator with a lead-lag characteristic. > > I understand the edge-sensitive PFD with a charge pump. It is > basically a counter incremented/decremented accordingly to the > FSM state, which content can be directly transformed into phase > error. But you've lost me here: and integrate what? And what should > I do with the result? You put a stage with transfer function H_filt(w) = w_f* (1/jw + 1/w_z) between the phase detector and VCO. You can do that with a digital filter if you like--the key is that it looks like an integrator (summer) at low frequency and like a fixed gain at high frequency. That lets you put your unity gain crossing practically anywhere you like. You have a two-pole rolloff at low frequency, dropping to one pole near the unity-gain crossing. Usually I put in another couple of poles well past there to get some more ripple rejection. Notch filters are good for getting rid of the main ripple component, assuming that the comparison frequency is fixed. The nice thing about them is that they don't contribute much phase shift except close to the notch, so you can get wider loop bandwidth for the same amount of ripple. > >> The math isn't difficult. > > Indeed, but the typically presented model is misleading. I'd > say the first order PLL is in fact a distortion-locked loop > and excessive filtering is the last thing you want. But the > internet books/courses don't say that... The loop bandwidth is generally much smaller than the comparison frequency, so there's room to add some filtering. Otherwise you get horrible PM sidebands from the ripple on the control voltage, and (as you say) the oscillator waveform varies, which you typically do _not_ want. > >> You'd probably like Floyd Gardner's classic "Phaselock Techniques" > > Thank you, will try to get a copy. > > Best regards, Piotr > The 1979 second edition is listed for $5 or so on abebooks.com. There's one in the UK for $13 that might get to you faster: https://www.abebooks.com/servlet/BookDetailsPL?bi=22419540848&searchurl=tn%3Dphaselock%2Btechniques%26sortby%3D17%26an%3Dgardner%26n%3D200000169 Also one in Germany for $8: https://www.abebooks.com/servlet/BookDetailsPL?bi=17495478411&searchurl=tn%3Dphaselock%2Btechniques%26sortby%3D17%26an%3Dgardner%26n%3D200000080 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]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-09-25 09:12 -0700 |
| Message-ID | <47aisc1ndkeku35dlqm58t4v107lmrqh2e@4ax.com> |
| In reply to | #478831 |
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. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2017-09-25 12:30 -0400 |
| Message-ID | <4qqdnRAvlJyJslTEnZ2dnUU7-WnNnZ2d@supernews.com> |
| 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 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. > > 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. Well, the practically-nobodies obviously congregate on the lunatic fringe. ;) First-order loops are rarely used in RF stuff, anyway. 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]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-09-25 12:36 -0400 |
| Message-ID | <fgayB.107942$fF2.47818@fx17.iad> |
| In reply to | #478851 |
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?
[toc] | [prev] | [next] | [standalone]
Page 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web