Home |
Search |
Today's Posts |
#41
![]() |
|||
|
|||
![]()
In article , "W3JDR"
writes: Wrong on all counts Len! Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH. In lock, at any frequency increment, the relative phase of the signal and reference is constant, stable, BUT THERE IS ALWAYS A PHASE OFFSET. This is necessary in order to derive the control voltage which keeps the VCO in lock. In the digital PFD, there are essentially two outputs that drive the charge storage circuit; "pump up" and "pump down". If there is a phase error, the corresponding output produces pulses that are exactly proportional to the time-error between the two PD inputs. If the time error corresponds to a leading phase relationship between VCO and reference, then the "pump down" output produces pulses equal in width to the lead time, discharging the charge storage element. If there is a lagging relationship, then the "pump up" output produces produces pulses equal in width to the lag time, charging the charge storage element. If there is no error , then neither pump output produces any pulses, and the charge storage element just 'holds' the last charge it had on it. Going to make it one of those long days? :-) OK, so where is the VCO control voltage coming from and how does it "know" how to reach the right voltage for the right frequency? It doesn't...because the PFD output (MC4044 type) does not have to. There will ALWAYS be a small error in any control loop... otherwise a control loop couldn't function to do controlling (basic control loop theory which so many seem to forget). A "charge pump" is basically a voltage-to-current converter to develop a basically-DC control voltage for the VCO of the PLL after the loop filtering. One doesn't need to use the charge pump in the MC4044 or the 11C44 chip. The digital output of the PFD can go direct to the loop filter. Even with the charge pump in-use, the whole thing (pump and loop filter or integrator/ filter) simply integrates a time variation (width of repetitious pulses out of PFD) into a stable DC value. In a practical PFD implementation, it is impossible to maintain the zero pulse-width point because the PFD is a digital feedback circuit, and you would need parts with zero propagation delay to make such a circuit. Absolutely not. There must be SOME gate delay. If there were zero, then every single D or J-K flip-flop would not work! Since they do work, there is always SOME internal gate delay. That internal IC capacitance causing the delay is the cause for all that heat-dissipation effort on hundred-thousand-plus transistor junction ICs used in single-chip microcomputers. In a 9- or 10-gate IC there isn't a lot of heat rise...but the parasitic gate structure capacitance is always there and all gates have finitie propagation delays. Some number of years ago I went into the old databooks (so far back they were free for anyone and still had the equivalent circuits in them...like thirty plus years ago) and started doing timing diagrams to see EXACTLY how they worked. Most interesting bit of "reverse engineering" and also quite interesting. The '44-type PFD digital part is essentially a very complex D FF like structure and it triggers only one direction of transition edges (like the Ds and J-Ks). The '44 is more complex in trying to see how it works due to the various conditions of relative input phases. If there are more than two signal edges for every reference edge, the outputs hold at one state indicating a "way-off" towards the high frequency range end of the signal. If there are more than two reference edges for every signal edge, the outputs flip to the other state...the "way-off" signal frequency is too low. However, when there is one input edge for each other input edge, the outputs produce a variable-width pulse, repetition rate equal to the reference frequency, which corresponds to the relative phase of the two inputs. The outputs are always "flipping" when the inputs are at the same frequency even though the inputs need NOT be in exact phase positioning. Not a problem. That variable width turns out to be extremely good for control since a simple integrator can convert the variable time into a variable voltage whose DC value is proportional to the relative inputs phase displacement. An op-amp integrator circuit functions as a sort of time-to-current- to-output-voltage converter (technically, the input R is creating a pseudo-constant-current source for the mid-point of R and C of the integrator op-amp input). That can also be used as a "Type 1" loop filter. With some modifications of a basic integrator, it can become any of the other types. Or, one can, with a sensitive control voltage characteristic of the VCO, use a passive loop filter with the filter input directly on the PFD output (choose either one to go with polarity of the VCO control needed). For that alternate condition, the PFD Vcc *MUST* be stable and decoupled less it mess around with more badness in the control voltage. The "charge pump" circuit of the MC4044/11C44 is really optional to use. It isn't absolutely necessary although it can cut down on the number of parts used. Based on hands-on observation of several of these PLLs, especially those of PFDs made from individual logic gates, the PFD outputs ARE pulses at the reference frequency repetition rate. Their width is proportional to the integrated-averaged DC control voltage of the VCO when in lock. If what you say is true, then there would be ZERO control voltage out of any of the mentioned interface circuits. Obviously, there must be some finite amount of control voltage for the VCO to adjust to a particular PLL frequency increment. That control voltage is the integrated-averaged DC out of the loop filter, not some mythical "charged whatsis" from that charge pump. In looking at the relative phases of the signal and reference AC inputs, the loop is LOCKED even though the phases are offset. The phases remain "in step" and unchanging on the 'scope but they are offset in phase from one another. [that's normal with this kind of PFD and PLL] I've been looking at these things for about three decades and see the same things. With the MC145151 combo PLL chip I'm playing with now, the PFD gates aren't fully available for peeking, but it locks in as advertised as I said above. However, the width of the pulses in modern designs can get down into the nanosecond range at lock. Nobody, not even the PLL really cares. How much voltage are you going to generate on the VCO control line from nanosecond pulse widths at a 1 KHz reference input repetition rate? Very little. For this reason, the PFD can produce much lower sideband content than the XOR, which outputs large pulses at lock. The larger the output pulse, the more difficult the loop filter design. The only thing "difficult" about a PLL is others paying attention to the REQUIRED values of control voltage gain and the reference frequency AND the simple math needed to calculate those values. "Difficult" is when the control voltage isn't linear over frequency (which upsets the heck out of the control gain at one end of the VCO range). "Difficult" is not paying attention to the subcircuit isolation and shielding and decoupling that produces the control voltage where it is ripe for picking up garbage that results in all kinds of badness in VCO stability. No. In the '44-type PFD, the output pulses will be zero ONLY if the divided VCO is way off frequency, at one end of the controllable range or the other. IN LOCK the PFD output will ALWAYS HAVE A FINITE PULSE WIDTH at the reference frequency repetition rate. Without that pulse width averaged out there would be NO control voltage to hold the divided VCO within range. Wrong again! With large frequency errors, the PFD produces constant pumping. If it didn't, it couldn't acquire with phase errors larger than 180deg. No. If you examine the states of all gates in a '44 PFD with corresponding input waveform states, you will see that the "way-off" (phase errors larger than 180 degrees) conditions of the PFD outputs REMAIN in their fully-on or fully-off states. That's the gem of this gate arrangement and the key to coming into lock on power-up. One reason I submitted my article to Jim Fisk at Ham Radio magazine (it was not in the original sequence at the start of that series) was as a result of trying to explain the gate-states of the '44 PFD to another. The waveform timing diagrams in that September 1982 article accurately show the state changes (without the precise amount of internal gate delay, not really needed in explanation). Just to make certain, I'd duplicated the gate logic in an Apple ][ program to make sure...and to see the variations in original conditions that might cause a bad start-up. I didn't use the conventional bubble-and-arrow state change diagrams since so few contemporaries could "read" them and I didn't much care for that kind of presentation either. Waveforms were an old familiar thing and I stuck with that. You are also wrong in asserting that the lock-in range of the PFD is +/- 180 degrees. In fact, it is infinite (in theory). "Infinite" only in the grossest sense of being - in effect - locked up on either of the "way-off" conditions. From what I gather, it was designed to do that very thing. An excellent thing to insure start-up. However, integrated-averaged to DC, the outputs of the PFD make an excellent phase meter with a DC that can be converted to binary in an A-to-D. The Rocketdyne Deformable Mirror project used that characteristic to measure the heterodyned optical signals from the optics at 1 MHz PFD input. It worked just fine out to about +/- 179 degrees or so when calibrated for the whole optical-electronic loop. [optics could approach 180 but never quite get exactly there...but then that's difficult with electronics also, needing time-interval averaging counters and such which we DID use...but the optics folks wanted to tweak their stable table optics more than tweaking instrument dials...:-)] Yes, its linear output compliance range is +/- 180 degrees, but it can acquire lock even when there is an infinite frequency error. This is because once the PFD output exceeds it's compliance range, it outputs a constant "pump up" or "pump down" pulse train, which in turn causes the loop filter voltage to ramp up or down as the case might be until the signal comes back into the compliance range and lock is established. No. At beyond-control-range input frequencies, the PFD outputs go to their stable, unchanging "way-off" states and stay there until both inputs are the same frequency. Ain't no "pump" pulses whatsoever at those "way-off" conditions. The XOR's big advantage is that it is simple, and there is no discontinuity around the phase lock point (as there is in the PFD), but it does not lock up readily in the face of frequency errors. The PFD's advantage is that it readily locks up, even in the face of large frequency errors and it also produces an easily filtered output. In practice, since the last days of WW2, phase-frequency control loops have used lots of extra circuitry to cure that start-up. Philco did that with some S-band microwave radio relay gear used by the USAF in 1955. Army used L-band crystal-controlled microwave radio relay terminals by GE, had no problems. USAF had Philco tech reps there seemingly all the time since their frequency control tended to pop off lock and go sweeping frequency a lot from their extra sawtooth circuitry. [PLL was first disclosed in 1932 by "H. de Bellecize, working in France" according to my giant 1980 50th anniversary special edition of Electronics magazine] There have been a few PFD circuits devised before the '44 type but I'd say the '44 went all the way to excellence with elegance in its simplicity. There have been at least one close to the '44 but arranged differently and with more internal parts...but that one works about the same as the '44. When you get the chance, grab a 'scope and look into the waveforms of a PFD as well as the control voltage. You will find out I'm right. No "theory" on that, just working PLL hardware. I've seen and observed that, used the basic knowledge to build my own PLLs (including a couple just for me) and am confident in the explanation I gave. They WORK by all the nice instruments from Hewlett and Packard (rest their souls). Len Anderson retired (from regular hours) electronic engineer person |
#42
![]() |
|||
|
|||
![]()
"Avery Fineman" wrote in message
... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Summary: The charge pump drives CURRENT into the main loop filter capacitor forming another pole (at the origin, if I recall my control theory correctly) or _integrator_. Detail = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The charge pump is set up as follows. The PFD has two outputs, an UP and DOWN. The UP output produces an output which is "active" or high (lets make everything positive-true logic for this discussion) for a time period which is the time from the edge of the reference to the edge of the VCO. So that when the VCO drifts down, its edge is later and we get pulses. In other words, we get pulses out equal to the time difference of the edges. The DOWN is the converse. Each output drives one half of the charge pump and as long as that output is in its "active" state, the charge pump is providing _current_ into the main loop filter capacitor. (lets assume that UP "pulses" means the VCO it too low and VCO freq is proportinal to control voltage) When you get off freq. the respective PFD output hits the rail and is in a _constant_ UP state. Therefore, that half of the charge pump drives current into the capacitor causing it to charge up at a rate equal to I/C. This is a simple re-write of the capacitor formula I = C * dv/dt. This effect is another integrator in the loop which gets you to zero phase error. As long as there is a phase error, there will be a _CHANGE_ in control (or steering) line voltage until you get to zero phase error and a stable control line. If I again recall my control theory, this makes it a type 2 loop. This does TWO things. 1) It drives the PFD pulses to zero making them as small as the logic will allow thus leaving the least amount of reference frequency energy to be removed and 2) The integrator attenuates the higher freq harmonics of the reference pulses that remain. To be honest at this point, the loop filter will be a lag filter which has a finite high freq atten, but some loss none the less. Other filtering is usually required to further reduce the reference spurs. In communications PLLs the fight is between the filtering required to get the reference spurs down to the desired level and the classical lock time determining "loop filter". This is because the phase of the reference spur low pass filter starts to eat into the loop's phase margin and cause more ringing (poorer damping factor) as you require more reference attenuation. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ....... OK, so where is the VCO control voltage coming from and how does it "know" how to reach the right voltage for the right frequency? From the loop filter capacitor which stays charged when the PFD shuts up at zero phase error. .... ...There will ALWAYS be a small error in any control loop... otherwise a control loop couldn't function to do controlling (basic control loop theory which so many seem to forget). You are thinking of a type one loop and that's ok... Add the integrator and (by theory & practice) you get zero phase error. I majored in control theory & designed 2-way mobile PLL synthesizers. I also believe I designed and built the first amateur, PLL synthesized 2M handheld (Motorola HT220) in 1973. A "charge pump" is basically a voltage-to-current converter to... Actually, Len, the charge pumps I designed were a phase-to-*current* converter. (Actually an edge-time-difference - to - current converter. That is, when combined with the PFD. By itself, it was a pulse to current pulse converter. It was a current source which was turned on during the pulse. (two--one for UP & one for DOWN). Perhaps it should be called a "gated current source". During the UP or DOWN pulse, the respective current source is turned on at its full current. ... zero propagation delay to make such a... If I recall the Fairchild improved 4044 used MATCHED delays in the two paths to minimize the dead zone as well as the opposite effect, overlap. ...The '44 is more complex... If there are more than two signal edges for every reference edge, the outputs hold at one state indicating a "way-off" ... Yea, off frequency. So you DO know how it works by this statement. The phrase "hold at one state" _IS_ the key here in the charge-pump circuit. It will "hold the charge pump transistor on", continue to supply current (charge at a constant rate) to the cap causing the voltage to keep rising and the frequency to keep changing. When the phase error is zero, then the control line stops changing and the VCO is on freq. An op-amp integrator circuit functions as a sort of time-to-current- to-output-voltage converter ... Ahhh! The "charge pump" does the same thing as a regular integrator…increasing the loop type. Based on hands-on observation … the PFD outputs ARE pulses at the reference frequency… Their width is proportional to the integrated-averaged DC control voltage of the VCO when in lock. You may have lost me here, Len. I think, in the type 1 loop you describe, the control voltage is the average-of-the-pulses (the phase error). I think you mean the "average of", not "integrated average of". With the type 1 loop the VCO control line voltage would be the average of the phase error. So you would indeed require an error, but that's why we add the integration function in some loops. Please note that by virtue of the VCO (having a voltage-to-frequency transfer characteristic) and the Phase detector (having a phase to voltage characteristic), there is already one built-in integration in the loop. This is because phase is the integral of frequency...or is it the other way 'round. (i always have to stop and draw a figure to state this freq/phase integral relationship...les-see...– a step freq change integrates to a ramp--phase is the integral of freq, yea, that's it ) As I said earlier, I have watched the loop bounce around the dead zone - bumping up against the ends of the (zero phase) dead zone and producing mini correction charges to correct the frequency. I would often force some small current (sometimes with a reverse biased germanium diode) to stop the rumble by forcing a small phase error. Each integration in the loop gets you another level of "in lock" accuracy. (i forget the official term), but… First is a frequency locked loop where, as you say here, there must be a small Frequency error to obtain the VCO voltage. Such as using a VCO with a discriminator instead of a PD. (frequency type 0) Second is frequency lock loop with fixed phase error. (frequency type 1 – phase type 0) Third is the one with zero phase error. (frequency type 2)...etc Each increase in type (or addition of a loop integrator) gets to a true _zero error_ for a higher order of input change. Starting with (although trivial a frequency locked loop with finite frequency error), freq, then phase, then ramping phase, then second order phase change (squared) ...but i digress... ...the "way-off" (phase errors larger than 180 degrees) conditions of the PFD outputs REMAIN in their fully-on ... This is what Len meant, I believe, by "constant pumping". Not your usual, water-well pump metaphor, Len. You get near the subject of "Capture Range" and "Lock Range" next. The XOR type PD has a lock range , or "pull-in Range" determined, in part, by the loop filter. More correctly by the loop bandwidth. If some of the XOR output square wave can't get through the loop filter (by being a low enough frequency) and drive the VCO toward the desired frequency, then it can't lock from far off freq. So it has a finite capture or pull-in frequency range. The PFD has an infinite pull-in (within the rails) per the above operation. ...However, integrated-averaged to DC, the outputs of the PFD make an excellent phase meter … (again I dislike the term "integrated average" here, but think "average" is what is intended) Very true (Without the charge pump). Just averaging the pulse width (phase difference). It is a phase-to-voltage converter. Then voltage makes the VCO get to freq. ...Ain't no "pump" pulses whatsoever at those "way-off" conditions. Very true if you mean "pulses" with an off-time in between. Just a steady always on "pump" current at full current. This translates to "maximum ramp speed" of the VCO control line. Joe The XOR's big advantage is that it is simple, and there is no discontinuity around the phase lock point (as there is in the PFD), but it does not lock up readily in the face of frequency errors. You should say; "in the face of _large_ frequency errors".... the "Capture Range" problem I mentioned above. Joe: The PFD's advantage is that it readily locks up, even in the face of large frequency errors and it also produces an easily filtered output. Yep. Sorta' the ideal. Almost zero reference pulse energy and pull-in range limited by the PFD rails and VCO range only. When you get the chance, grab a 'scope and look into the waveforms of a PFD as well as the control voltage. You will find out I'm right. No "theory" on that, just working PLL hardware. As long as you have no charge pump or integrator, you are 100% correct. Len. All the Motorola Pulsar car phones used the same charge pump for 0 phase error. This is still used now, but fractional N methods allow small steps in freq (~5 kc) with high reference frequencies (~2 Mc) at the expense of more logic. If I confused who said what, I apologize. -- Steve N, K,9;d, c. i My email has no u's. |
#43
![]() |
|||
|
|||
![]()
"Avery Fineman" wrote in message
... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Summary: The charge pump drives CURRENT into the main loop filter capacitor forming another pole (at the origin, if I recall my control theory correctly) or _integrator_. Detail = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The charge pump is set up as follows. The PFD has two outputs, an UP and DOWN. The UP output produces an output which is "active" or high (lets make everything positive-true logic for this discussion) for a time period which is the time from the edge of the reference to the edge of the VCO. So that when the VCO drifts down, its edge is later and we get pulses. In other words, we get pulses out equal to the time difference of the edges. The DOWN is the converse. Each output drives one half of the charge pump and as long as that output is in its "active" state, the charge pump is providing _current_ into the main loop filter capacitor. (lets assume that UP "pulses" means the VCO it too low and VCO freq is proportinal to control voltage) When you get off freq. the respective PFD output hits the rail and is in a _constant_ UP state. Therefore, that half of the charge pump drives current into the capacitor causing it to charge up at a rate equal to I/C. This is a simple re-write of the capacitor formula I = C * dv/dt. This effect is another integrator in the loop which gets you to zero phase error. As long as there is a phase error, there will be a _CHANGE_ in control (or steering) line voltage until you get to zero phase error and a stable control line. If I again recall my control theory, this makes it a type 2 loop. This does TWO things. 1) It drives the PFD pulses to zero making them as small as the logic will allow thus leaving the least amount of reference frequency energy to be removed and 2) The integrator attenuates the higher freq harmonics of the reference pulses that remain. To be honest at this point, the loop filter will be a lag filter which has a finite high freq atten, but some loss none the less. Other filtering is usually required to further reduce the reference spurs. In communications PLLs the fight is between the filtering required to get the reference spurs down to the desired level and the classical lock time determining "loop filter". This is because the phase of the reference spur low pass filter starts to eat into the loop's phase margin and cause more ringing (poorer damping factor) as you require more reference attenuation. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ....... OK, so where is the VCO control voltage coming from and how does it "know" how to reach the right voltage for the right frequency? From the loop filter capacitor which stays charged when the PFD shuts up at zero phase error. .... ...There will ALWAYS be a small error in any control loop... otherwise a control loop couldn't function to do controlling (basic control loop theory which so many seem to forget). You are thinking of a type one loop and that's ok... Add the integrator and (by theory & practice) you get zero phase error. I majored in control theory & designed 2-way mobile PLL synthesizers. I also believe I designed and built the first amateur, PLL synthesized 2M handheld (Motorola HT220) in 1973. A "charge pump" is basically a voltage-to-current converter to... Actually, Len, the charge pumps I designed were a phase-to-*current* converter. (Actually an edge-time-difference - to - current converter. That is, when combined with the PFD. By itself, it was a pulse to current pulse converter. It was a current source which was turned on during the pulse. (two--one for UP & one for DOWN). Perhaps it should be called a "gated current source". During the UP or DOWN pulse, the respective current source is turned on at its full current. ... zero propagation delay to make such a... If I recall the Fairchild improved 4044 used MATCHED delays in the two paths to minimize the dead zone as well as the opposite effect, overlap. ...The '44 is more complex... If there are more than two signal edges for every reference edge, the outputs hold at one state indicating a "way-off" ... Yea, off frequency. So you DO know how it works by this statement. The phrase "hold at one state" _IS_ the key here in the charge-pump circuit. It will "hold the charge pump transistor on", continue to supply current (charge at a constant rate) to the cap causing the voltage to keep rising and the frequency to keep changing. When the phase error is zero, then the control line stops changing and the VCO is on freq. An op-amp integrator circuit functions as a sort of time-to-current- to-output-voltage converter ... Ahhh! The "charge pump" does the same thing as a regular integrator…increasing the loop type. Based on hands-on observation … the PFD outputs ARE pulses at the reference frequency… Their width is proportional to the integrated-averaged DC control voltage of the VCO when in lock. You may have lost me here, Len. I think, in the type 1 loop you describe, the control voltage is the average-of-the-pulses (the phase error). I think you mean the "average of", not "integrated average of". With the type 1 loop the VCO control line voltage would be the average of the phase error. So you would indeed require an error, but that's why we add the integration function in some loops. Please note that by virtue of the VCO (having a voltage-to-frequency transfer characteristic) and the Phase detector (having a phase to voltage characteristic), there is already one built-in integration in the loop. This is because phase is the integral of frequency...or is it the other way 'round. (i always have to stop and draw a figure to state this freq/phase integral relationship...les-see...– a step freq change integrates to a ramp--phase is the integral of freq, yea, that's it ) As I said earlier, I have watched the loop bounce around the dead zone - bumping up against the ends of the (zero phase) dead zone and producing mini correction charges to correct the frequency. I would often force some small current (sometimes with a reverse biased germanium diode) to stop the rumble by forcing a small phase error. Each integration in the loop gets you another level of "in lock" accuracy. (i forget the official term), but… First is a frequency locked loop where, as you say here, there must be a small Frequency error to obtain the VCO voltage. Such as using a VCO with a discriminator instead of a PD. (frequency type 0) Second is frequency lock loop with fixed phase error. (frequency type 1 – phase type 0) Third is the one with zero phase error. (frequency type 2)...etc Each increase in type (or addition of a loop integrator) gets to a true _zero error_ for a higher order of input change. Starting with (although trivial a frequency locked loop with finite frequency error), freq, then phase, then ramping phase, then second order phase change (squared) ...but i digress... ...the "way-off" (phase errors larger than 180 degrees) conditions of the PFD outputs REMAIN in their fully-on ... This is what Len meant, I believe, by "constant pumping". Not your usual, water-well pump metaphor, Len. You get near the subject of "Capture Range" and "Lock Range" next. The XOR type PD has a lock range , or "pull-in Range" determined, in part, by the loop filter. More correctly by the loop bandwidth. If some of the XOR output square wave can't get through the loop filter (by being a low enough frequency) and drive the VCO toward the desired frequency, then it can't lock from far off freq. So it has a finite capture or pull-in frequency range. The PFD has an infinite pull-in (within the rails) per the above operation. ...However, integrated-averaged to DC, the outputs of the PFD make an excellent phase meter … (again I dislike the term "integrated average" here, but think "average" is what is intended) Very true (Without the charge pump). Just averaging the pulse width (phase difference). It is a phase-to-voltage converter. Then voltage makes the VCO get to freq. ...Ain't no "pump" pulses whatsoever at those "way-off" conditions. Very true if you mean "pulses" with an off-time in between. Just a steady always on "pump" current at full current. This translates to "maximum ramp speed" of the VCO control line. Joe The XOR's big advantage is that it is simple, and there is no discontinuity around the phase lock point (as there is in the PFD), but it does not lock up readily in the face of frequency errors. You should say; "in the face of _large_ frequency errors".... the "Capture Range" problem I mentioned above. Joe: The PFD's advantage is that it readily locks up, even in the face of large frequency errors and it also produces an easily filtered output. Yep. Sorta' the ideal. Almost zero reference pulse energy and pull-in range limited by the PFD rails and VCO range only. When you get the chance, grab a 'scope and look into the waveforms of a PFD as well as the control voltage. You will find out I'm right. No "theory" on that, just working PLL hardware. As long as you have no charge pump or integrator, you are 100% correct. Len. All the Motorola Pulsar car phones used the same charge pump for 0 phase error. This is still used now, but fractional N methods allow small steps in freq (~5 kc) with high reference frequencies (~2 Mc) at the expense of more logic. If I confused who said what, I apologize. -- Steve N, K,9;d, c. i My email has no u's. |
#44
![]() |
|||
|
|||
![]()
Steve,
Good job. I concur 100%. I quickly gave up on arguing this as it became clear to me that the number of words expended was increasing exponentially with the length of the thread. Arguing with some people is like surfing the web...you send a few bytes up and megabytes come back at you. I don't have the time or energy to play that game. Right is right, and wrong is often long-winded. Thanks for the support. Joe W3JDR "Steve Nosko" wrote in message ... "Avery Fineman" wrote in message ... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Summary: The charge pump drives CURRENT into the main loop filter capacitor forming another pole (at the origin, if I recall my control theory correctly) or _integrator_. Detail = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The charge pump is set up as follows. The PFD has two outputs, an UP and DOWN. The UP output produces an output which is "active" or high (lets make everything positive-true logic for this discussion) for a time period which is the time from the edge of the reference to the edge of the VCO. So that when the VCO drifts down, its edge is later and we get pulses. In other words, we get pulses out equal to the time difference of the edges. The DOWN is the converse. Each output drives one half of the charge pump and as long as that output is in its "active" state, the charge pump is providing _current_ into the main loop filter capacitor. (lets assume that UP "pulses" means the VCO it too low and VCO freq is proportinal to control voltage) When you get off freq. the respective PFD output hits the rail and is in a _constant_ UP state. Therefore, that half of the charge pump drives current into the capacitor causing it to charge up at a rate equal to I/C. This is a simple re-write of the capacitor formula I = C * dv/dt. This effect is another integrator in the loop which gets you to zero phase error. As long as there is a phase error, there will be a _CHANGE_ in control (or steering) line voltage until you get to zero phase error and a stable control line. If I again recall my control theory, this makes it a type 2 loop. This does TWO things. 1) It drives the PFD pulses to zero making them as small as the logic will allow thus leaving the least amount of reference frequency energy to be removed and 2) The integrator attenuates the higher freq harmonics of the reference pulses that remain. To be honest at this point, the loop filter will be a lag filter which has a finite high freq atten, but some loss none the less. Other filtering is usually required to further reduce the reference spurs. In communications PLLs the fight is between the filtering required to get the reference spurs down to the desired level and the classical lock time determining "loop filter". This is because the phase of the reference spur low pass filter starts to eat into the loop's phase margin and cause more ringing (poorer damping factor) as you require more reference attenuation. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ...... OK, so where is the VCO control voltage coming from and how does it "know" how to reach the right voltage for the right frequency? From the loop filter capacitor which stays charged when the PFD shuts up at zero phase error. ... ...There will ALWAYS be a small error in any control loop... otherwise a control loop couldn't function to do controlling (basic control loop theory which so many seem to forget). You are thinking of a type one loop and that's ok... Add the integrator and (by theory & practice) you get zero phase error. I majored in control theory & designed 2-way mobile PLL synthesizers. I also believe I designed and built the first amateur, PLL synthesized 2M handheld (Motorola HT220) in 1973. A "charge pump" is basically a voltage-to-current converter to... Actually, Len, the charge pumps I designed were a phase-to-*current* converter. (Actually an edge-time-difference - to - current converter. That is, when combined with the PFD. By itself, it was a pulse to current pulse converter. It was a current source which was turned on during the pulse. (two--one for UP & one for DOWN). Perhaps it should be called a "gated current source". During the UP or DOWN pulse, the respective current source is turned on at its full current. ... zero propagation delay to make such a... If I recall the Fairchild improved 4044 used MATCHED delays in the two paths to minimize the dead zone as well as the opposite effect, overlap. ...The '44 is more complex... If there are more than two signal edges for every reference edge, the outputs hold at one state indicating a "way-off" ... Yea, off frequency. So you DO know how it works by this statement. The phrase "hold at one state" _IS_ the key here in the charge-pump circuit. It will "hold the charge pump transistor on", continue to supply current (charge at a constant rate) to the cap causing the voltage to keep rising and the frequency to keep changing. When the phase error is zero, then the control line stops changing and the VCO is on freq. An op-amp integrator circuit functions as a sort of time-to-current- to-output-voltage converter ... Ahhh! The "charge pump" does the same thing as a regular integrator.increasing the loop type. Based on hands-on observation . the PFD outputs ARE pulses at the reference frequency. Their width is proportional to the integrated-averaged DC control voltage of the VCO when in lock. You may have lost me here, Len. I think, in the type 1 loop you describe, the control voltage is the average-of-the-pulses (the phase error). I think you mean the "average of", not "integrated average of". With the type 1 loop the VCO control line voltage would be the average of the phase error. So you would indeed require an error, but that's why we add the integration function in some loops. Please note that by virtue of the VCO (having a voltage-to-frequency transfer characteristic) and the Phase detector (having a phase to voltage characteristic), there is already one built-in integration in the loop. This is because phase is the integral of frequency...or is it the other way 'round. (i always have to stop and draw a figure to state this freq/phase integral relationship...les-see...- a step freq change integrates to a ramp--phase is the integral of freq, yea, that's it ) As I said earlier, I have watched the loop bounce around the dead zone - bumping up against the ends of the (zero phase) dead zone and producing mini correction charges to correct the frequency. I would often force some small current (sometimes with a reverse biased germanium diode) to stop the rumble by forcing a small phase error. Each integration in the loop gets you another level of "in lock" accuracy. (i forget the official term), but. First is a frequency locked loop where, as you say here, there must be a small Frequency error to obtain the VCO voltage. Such as using a VCO with a discriminator instead of a PD. (frequency type 0) Second is frequency lock loop with fixed phase error. (frequency type 1 - phase type 0) Third is the one with zero phase error. (frequency type 2)...etc Each increase in type (or addition of a loop integrator) gets to a true _zero error_ for a higher order of input change. Starting with (although trivial a frequency locked loop with finite frequency error), freq, then phase, then ramping phase, then second order phase change (squared) ...but i digress... ...the "way-off" (phase errors larger than 180 degrees) conditions of the PFD outputs REMAIN in their fully-on ... This is what Len meant, I believe, by "constant pumping". Not your usual, water-well pump metaphor, Len. You get near the subject of "Capture Range" and "Lock Range" next. The XOR type PD has a lock range , or "pull-in Range" determined, in part, by the loop filter. More correctly by the loop bandwidth. If some of the XOR output square wave can't get through the loop filter (by being a low enough frequency) and drive the VCO toward the desired frequency, then it can't lock from far off freq. So it has a finite capture or pull-in frequency range. The PFD has an infinite pull-in (within the rails) per the above operation. ...However, integrated-averaged to DC, the outputs of the PFD make an excellent phase meter . (again I dislike the term "integrated average" here, but think "average" is what is intended) Very true (Without the charge pump). Just averaging the pulse width (phase difference). It is a phase-to-voltage converter. Then voltage makes the VCO get to freq. ...Ain't no "pump" pulses whatsoever at those "way-off" conditions. Very true if you mean "pulses" with an off-time in between. Just a steady always on "pump" current at full current. This translates to "maximum ramp speed" of the VCO control line. Joe The XOR's big advantage is that it is simple, and there is no discontinuity around the phase lock point (as there is in the PFD), but it does not lock up readily in the face of frequency errors. You should say; "in the face of _large_ frequency errors".... the "Capture Range" problem I mentioned above. Joe: The PFD's advantage is that it readily locks up, even in the face of large frequency errors and it also produces an easily filtered output. Yep. Sorta' the ideal. Almost zero reference pulse energy and pull-in range limited by the PFD rails and VCO range only. When you get the chance, grab a 'scope and look into the waveforms of a PFD as well as the control voltage. You will find out I'm right. No "theory" on that, just working PLL hardware. As long as you have no charge pump or integrator, you are 100% correct. Len. All the Motorola Pulsar car phones used the same charge pump for 0 phase error. This is still used now, but fractional N methods allow small steps in freq (~5 kc) with high reference frequencies (~2 Mc) at the expense of more logic. If I confused who said what, I apologize. -- Steve N, K,9;d, c. i My email has no u's. |
#45
![]() |
|||
|
|||
![]()
Steve,
Good job. I concur 100%. I quickly gave up on arguing this as it became clear to me that the number of words expended was increasing exponentially with the length of the thread. Arguing with some people is like surfing the web...you send a few bytes up and megabytes come back at you. I don't have the time or energy to play that game. Right is right, and wrong is often long-winded. Thanks for the support. Joe W3JDR "Steve Nosko" wrote in message ... "Avery Fineman" wrote in message ... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Summary: The charge pump drives CURRENT into the main loop filter capacitor forming another pole (at the origin, if I recall my control theory correctly) or _integrator_. Detail = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The charge pump is set up as follows. The PFD has two outputs, an UP and DOWN. The UP output produces an output which is "active" or high (lets make everything positive-true logic for this discussion) for a time period which is the time from the edge of the reference to the edge of the VCO. So that when the VCO drifts down, its edge is later and we get pulses. In other words, we get pulses out equal to the time difference of the edges. The DOWN is the converse. Each output drives one half of the charge pump and as long as that output is in its "active" state, the charge pump is providing _current_ into the main loop filter capacitor. (lets assume that UP "pulses" means the VCO it too low and VCO freq is proportinal to control voltage) When you get off freq. the respective PFD output hits the rail and is in a _constant_ UP state. Therefore, that half of the charge pump drives current into the capacitor causing it to charge up at a rate equal to I/C. This is a simple re-write of the capacitor formula I = C * dv/dt. This effect is another integrator in the loop which gets you to zero phase error. As long as there is a phase error, there will be a _CHANGE_ in control (or steering) line voltage until you get to zero phase error and a stable control line. If I again recall my control theory, this makes it a type 2 loop. This does TWO things. 1) It drives the PFD pulses to zero making them as small as the logic will allow thus leaving the least amount of reference frequency energy to be removed and 2) The integrator attenuates the higher freq harmonics of the reference pulses that remain. To be honest at this point, the loop filter will be a lag filter which has a finite high freq atten, but some loss none the less. Other filtering is usually required to further reduce the reference spurs. In communications PLLs the fight is between the filtering required to get the reference spurs down to the desired level and the classical lock time determining "loop filter". This is because the phase of the reference spur low pass filter starts to eat into the loop's phase margin and cause more ringing (poorer damping factor) as you require more reference attenuation. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ...... OK, so where is the VCO control voltage coming from and how does it "know" how to reach the right voltage for the right frequency? From the loop filter capacitor which stays charged when the PFD shuts up at zero phase error. ... ...There will ALWAYS be a small error in any control loop... otherwise a control loop couldn't function to do controlling (basic control loop theory which so many seem to forget). You are thinking of a type one loop and that's ok... Add the integrator and (by theory & practice) you get zero phase error. I majored in control theory & designed 2-way mobile PLL synthesizers. I also believe I designed and built the first amateur, PLL synthesized 2M handheld (Motorola HT220) in 1973. A "charge pump" is basically a voltage-to-current converter to... Actually, Len, the charge pumps I designed were a phase-to-*current* converter. (Actually an edge-time-difference - to - current converter. That is, when combined with the PFD. By itself, it was a pulse to current pulse converter. It was a current source which was turned on during the pulse. (two--one for UP & one for DOWN). Perhaps it should be called a "gated current source". During the UP or DOWN pulse, the respective current source is turned on at its full current. ... zero propagation delay to make such a... If I recall the Fairchild improved 4044 used MATCHED delays in the two paths to minimize the dead zone as well as the opposite effect, overlap. ...The '44 is more complex... If there are more than two signal edges for every reference edge, the outputs hold at one state indicating a "way-off" ... Yea, off frequency. So you DO know how it works by this statement. The phrase "hold at one state" _IS_ the key here in the charge-pump circuit. It will "hold the charge pump transistor on", continue to supply current (charge at a constant rate) to the cap causing the voltage to keep rising and the frequency to keep changing. When the phase error is zero, then the control line stops changing and the VCO is on freq. An op-amp integrator circuit functions as a sort of time-to-current- to-output-voltage converter ... Ahhh! The "charge pump" does the same thing as a regular integrator.increasing the loop type. Based on hands-on observation . the PFD outputs ARE pulses at the reference frequency. Their width is proportional to the integrated-averaged DC control voltage of the VCO when in lock. You may have lost me here, Len. I think, in the type 1 loop you describe, the control voltage is the average-of-the-pulses (the phase error). I think you mean the "average of", not "integrated average of". With the type 1 loop the VCO control line voltage would be the average of the phase error. So you would indeed require an error, but that's why we add the integration function in some loops. Please note that by virtue of the VCO (having a voltage-to-frequency transfer characteristic) and the Phase detector (having a phase to voltage characteristic), there is already one built-in integration in the loop. This is because phase is the integral of frequency...or is it the other way 'round. (i always have to stop and draw a figure to state this freq/phase integral relationship...les-see...- a step freq change integrates to a ramp--phase is the integral of freq, yea, that's it ) As I said earlier, I have watched the loop bounce around the dead zone - bumping up against the ends of the (zero phase) dead zone and producing mini correction charges to correct the frequency. I would often force some small current (sometimes with a reverse biased germanium diode) to stop the rumble by forcing a small phase error. Each integration in the loop gets you another level of "in lock" accuracy. (i forget the official term), but. First is a frequency locked loop where, as you say here, there must be a small Frequency error to obtain the VCO voltage. Such as using a VCO with a discriminator instead of a PD. (frequency type 0) Second is frequency lock loop with fixed phase error. (frequency type 1 - phase type 0) Third is the one with zero phase error. (frequency type 2)...etc Each increase in type (or addition of a loop integrator) gets to a true _zero error_ for a higher order of input change. Starting with (although trivial a frequency locked loop with finite frequency error), freq, then phase, then ramping phase, then second order phase change (squared) ...but i digress... ...the "way-off" (phase errors larger than 180 degrees) conditions of the PFD outputs REMAIN in their fully-on ... This is what Len meant, I believe, by "constant pumping". Not your usual, water-well pump metaphor, Len. You get near the subject of "Capture Range" and "Lock Range" next. The XOR type PD has a lock range , or "pull-in Range" determined, in part, by the loop filter. More correctly by the loop bandwidth. If some of the XOR output square wave can't get through the loop filter (by being a low enough frequency) and drive the VCO toward the desired frequency, then it can't lock from far off freq. So it has a finite capture or pull-in frequency range. The PFD has an infinite pull-in (within the rails) per the above operation. ...However, integrated-averaged to DC, the outputs of the PFD make an excellent phase meter . (again I dislike the term "integrated average" here, but think "average" is what is intended) Very true (Without the charge pump). Just averaging the pulse width (phase difference). It is a phase-to-voltage converter. Then voltage makes the VCO get to freq. ...Ain't no "pump" pulses whatsoever at those "way-off" conditions. Very true if you mean "pulses" with an off-time in between. Just a steady always on "pump" current at full current. This translates to "maximum ramp speed" of the VCO control line. Joe The XOR's big advantage is that it is simple, and there is no discontinuity around the phase lock point (as there is in the PFD), but it does not lock up readily in the face of frequency errors. You should say; "in the face of _large_ frequency errors".... the "Capture Range" problem I mentioned above. Joe: The PFD's advantage is that it readily locks up, even in the face of large frequency errors and it also produces an easily filtered output. Yep. Sorta' the ideal. Almost zero reference pulse energy and pull-in range limited by the PFD rails and VCO range only. When you get the chance, grab a 'scope and look into the waveforms of a PFD as well as the control voltage. You will find out I'm right. No "theory" on that, just working PLL hardware. As long as you have no charge pump or integrator, you are 100% correct. Len. All the Motorola Pulsar car phones used the same charge pump for 0 phase error. This is still used now, but fractional N methods allow small steps in freq (~5 kc) with high reference frequencies (~2 Mc) at the expense of more logic. If I confused who said what, I apologize. -- Steve N, K,9;d, c. i My email has no u's. |
#46
![]() |
|||
|
|||
![]()
In article , "Steve Nosko"
writes: "Avery Fineman" wrote in message ... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Heh heh, another one of those "long days..." :-) I'm not going into control loops per se or argue formalized "types" here. The original thread question was from someone worried that the "dead zone" would cause instability if built with standard logic gates. From there on it evolved into the usual type of non-argument wherein one individual states an "inarguable" case about only one control loop type...and no other argument is allowed. :-) [I should know better after doing computer-modem communications for two decades but any response that says "wrong on all counts" is a sure invite to a flame-fest... :-) ] Once upon a time three decades or so ago, I sat (as the subject whose project was under scrutiny) in a design review where the chief engineer of the division sat in with senior staff. I was assured that my version of a wideband limiting amplifier "would not work." That, despite, at the moment, it was undergoing active temp test with monitored signals applied, etc. Wanting to keep my job, I kept silent and agreed with "wiser heads" (two of whom were sensed as believing me but kept silent, perhaps for the same reason). Memos were written afterwards making note of the comments, etc., but the design continued on as devised and became a viable part of a system. Project team got nice congratulations afterwards, a few patent awards, etc., plus photos of individual smiling hand-shaking with the chief. Was not the time to rub it in that my "unworkable" design did, indeed, work. :-) Those who have tangible, working hardware are often put upon by newsgroupies who say "it won't work that way!" Okay, no problem for me. If they say it doesn't work, well, that's it. I'll just go off for a while and let the regulars have at it...while my stuff is working as stated. :-) [if anyone thinks control loops are an "easy" thing describable in a few words...well, I don't think they've been really involved with such hardware...but that's only my opinion] Gotta love these newsgroups! :-) Len Anderson retired (from regular hours) electronic engineer person |
#47
![]() |
|||
|
|||
![]()
In article , "Steve Nosko"
writes: "Avery Fineman" wrote in message ... In article , "W3JDR" writes: To Len: Not quite it. In order to derive a control voltage for the controlled oscillator, the PFD output MUST BE A FINITE WIDTH.... ...BUT THERE IS ALWAYS A PHASE OFFSET. Len, This is actually _not_ the case as Joe (W3JDR), says. Heh heh, another one of those "long days..." :-) I'm not going into control loops per se or argue formalized "types" here. The original thread question was from someone worried that the "dead zone" would cause instability if built with standard logic gates. From there on it evolved into the usual type of non-argument wherein one individual states an "inarguable" case about only one control loop type...and no other argument is allowed. :-) [I should know better after doing computer-modem communications for two decades but any response that says "wrong on all counts" is a sure invite to a flame-fest... :-) ] Once upon a time three decades or so ago, I sat (as the subject whose project was under scrutiny) in a design review where the chief engineer of the division sat in with senior staff. I was assured that my version of a wideband limiting amplifier "would not work." That, despite, at the moment, it was undergoing active temp test with monitored signals applied, etc. Wanting to keep my job, I kept silent and agreed with "wiser heads" (two of whom were sensed as believing me but kept silent, perhaps for the same reason). Memos were written afterwards making note of the comments, etc., but the design continued on as devised and became a viable part of a system. Project team got nice congratulations afterwards, a few patent awards, etc., plus photos of individual smiling hand-shaking with the chief. Was not the time to rub it in that my "unworkable" design did, indeed, work. :-) Those who have tangible, working hardware are often put upon by newsgroupies who say "it won't work that way!" Okay, no problem for me. If they say it doesn't work, well, that's it. I'll just go off for a while and let the regulars have at it...while my stuff is working as stated. :-) [if anyone thinks control loops are an "easy" thing describable in a few words...well, I don't think they've been really involved with such hardware...but that's only my opinion] Gotta love these newsgroups! :-) Len Anderson retired (from regular hours) electronic engineer person |
#48
![]() |
|||
|
|||
![]() "Avery Fineman" wrote in message ... In article , "Steve Nosko" writes: Len, This is actually _not_ the case as Joe (W3JDR), says. Heh heh, another one of those "long days..." :-) Sorry. Wasn't trying to even get some smoldering embers, Len. My purpose was simply to report that the charge pump concept changes the loop operation from what you had been describing to what Joe had been describing. I, indeed, did jump into this somewhere in the middle as, thinking back now, I don't recall having read the OP... Typical, eh? I'm not going into control loops per se or argue formalized "types" here. Yes, as I was typing my 'type stuff' , I was also thinking..."Gee, this is a typical go-off-and get-into-areas/detail-not-required-by-the-original (as I thought it was) subject. ... "inarguable" case......and no other argument is allowed. :-) Yea. I didn't care for the strong wording Joe used. Joe's description was in line with my experience, just his delivery...well. Sorry Joe. I hope I didn't say something to that effect... ... Was not the time to rub it in that my "unworkable" design did, indeed, work. :-) But must have been hard to resist... [if anyone thinks control loops are an "easy" thing describable in a few words...well, I don't think they've been really involved with such hardware...but that's only my opinion] My standard saying in control theory was something to the effect that you had to put your normal fundamental sense about what is going on in electronic theory in your back pocket. I've spent months fighting spurs (well one anyway--I'm not that bad--besedes it was early in my career), with everything filtered imaginable, just to cut some ground plating in desparation to solve the problem... Still an Engineer and still cant spel, 73 & have a shorter day, Steve K 9 D C I |
#49
![]() |
|||
|
|||
![]() "Avery Fineman" wrote in message ... In article , "Steve Nosko" writes: Len, This is actually _not_ the case as Joe (W3JDR), says. Heh heh, another one of those "long days..." :-) Sorry. Wasn't trying to even get some smoldering embers, Len. My purpose was simply to report that the charge pump concept changes the loop operation from what you had been describing to what Joe had been describing. I, indeed, did jump into this somewhere in the middle as, thinking back now, I don't recall having read the OP... Typical, eh? I'm not going into control loops per se or argue formalized "types" here. Yes, as I was typing my 'type stuff' , I was also thinking..."Gee, this is a typical go-off-and get-into-areas/detail-not-required-by-the-original (as I thought it was) subject. ... "inarguable" case......and no other argument is allowed. :-) Yea. I didn't care for the strong wording Joe used. Joe's description was in line with my experience, just his delivery...well. Sorry Joe. I hope I didn't say something to that effect... ... Was not the time to rub it in that my "unworkable" design did, indeed, work. :-) But must have been hard to resist... [if anyone thinks control loops are an "easy" thing describable in a few words...well, I don't think they've been really involved with such hardware...but that's only my opinion] My standard saying in control theory was something to the effect that you had to put your normal fundamental sense about what is going on in electronic theory in your back pocket. I've spent months fighting spurs (well one anyway--I'm not that bad--besedes it was early in my career), with everything filtered imaginable, just to cut some ground plating in desparation to solve the problem... Still an Engineer and still cant spel, 73 & have a shorter day, Steve K 9 D C I |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Phase differences in direct conversion receivers | Homebrew | |||
V and I not in phase at resonance Frequency in RLC network? | Homebrew |