Author Topic: Using 4046-Type PLLs Successfully  (Read 15057 times)

0 Members and 1 Guest are viewing this topic.

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Using 4046-Type PLLs Successfully
« on: March 19, 2018, 10:07:03 pm »
Driven by frustration over the miserable 4046 data sheets and application notes, those actually landing some EE-design acquaintances in trouble, a friend of mine wrote this paper on how to use 4046 PLLs in practice.
I think it's great, but will leave judgement to you.

Abstract
Quote
The 4046/74HC4046-series phase-locked-loop ICs are extremely useful parts that can be used in a lot of applications like frequency synthesis/multiplication, signal synchronisation, data extraction etc.
Unfortunately, many first users have run into difficulties due to misleading (and very old/never revised) data sheets and erroneous application notes.
This note will show you how to interpret the information from the suppliers and let you use the 4046 successfully; all based on my own painful experiences.
At the end, we’ll do a step-by-step design example.

Comments, suggestions and corrections are always welcome.

« Last Edit: March 19, 2018, 10:11:17 pm by Benta »
 
The following users thanked this post: philpem, edavid

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21675
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Using 4046-Type PLLs Successfully
« Reply #1 on: March 19, 2018, 10:33:53 pm »
Now, first wrinkle -- and, a fatal one I think, as, at a glance, I don't see this enumerated in the article -- CD4046 is the "original and still best", and 74HC4046, and 7046 and 9046, are the knock-off substitutes.  Perhaps that is where the confusion has arisen?

You would think they could simply port them over from metal to silicon gate CMOS and be done with it, but no; they absolutely ruined them (so I understand it).  The oscillator is terribly inconsistent (part-to-part variation), and nonlinear.  The type 2 phase detector has a terrible dead band.  (Whereas the CD4046 had slight overlap, so that it could lock on the margin with very high gain and no dead band.)

The others are improved versions, but as I've heard it, none of them are as capable as the original, they're only faster and operate at lower voltage.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #2 on: March 19, 2018, 10:44:57 pm »
You've lost me completely, but I'll pass it on...
« Last Edit: March 19, 2018, 11:07:41 pm by Benta »
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9501
  • Country: gb
Re: Using 4046-Type PLLs Successfully
« Reply #3 on: March 20, 2018, 06:00:17 pm »
Now, first wrinkle -- and, a fatal one I think, as, at a glance, I don't see this enumerated in the article -- CD4046 is the "original and still best", and 74HC4046, and 7046 and 9046, are the knock-off substitutes.  Perhaps that is where the confusion has arisen?

You would think they could simply port them over from metal to silicon gate CMOS and be done with it, but no; they absolutely ruined them (so I understand it).  The oscillator is terribly inconsistent (part-to-part variation), and nonlinear.  The type 2 phase detector has a terrible dead band.  (Whereas the CD4046 had slight overlap, so that it could lock on the margin with very high gain and no dead band.)

The others are improved versions, but as I've heard it, none of them are as capable as the original, they're only faster and operate at lower voltage.

Tim

That's an interesting wrinkle Tim. Did this 'no dead band' performance apply to any particular CD4046 manufacturer? I remember that HEF4xxx were always faster but presumably they were still metal gate. Just curious (having experienced poor HC4046 comparator performance).

Chris.
Best Regards, Chris
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21675
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Using 4046-Type PLLs Successfully
« Reply #4 on: March 20, 2018, 08:51:19 pm »
AFAIK, CD4046 are fine, 74HC4046 are crummy.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: Gyro

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #5 on: March 20, 2018, 09:08:58 pm »
I'm somewhat sad that this thread immediately degenerated into anecdotes and waffle about the performance of different flavors of 4046s.

The intent was to help first-time users get a PLL running, despite the misinformation in the 4046 data sheets and application notes on how to design a loop controller (aka loop filter).

Disappointing.

 

Offline Bud

  • Super Contributor
  • ***
  • Posts: 6910
  • Country: ca
Re: Using 4046-Type PLLs Successfully
« Reply #6 on: March 20, 2018, 09:18:11 pm »
The first time users may be trying to get a PLL running until cows come home and never succeed, because of the limitations Tim pointed out. To me Tim provided valuable information and you may need to pass it  over to your friend.
Facebook-free life and Rigol-free shack.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9501
  • Country: gb
Re: Using 4046-Type PLLs Successfully
« Reply #7 on: March 20, 2018, 09:26:55 pm »
@Benta: It seems to me that, as your friend's paper specifically focuses on use of Phase detector II, differences in its behavior between different logic family variants would be very relevant. Please forgive me for seeking clarification!  :-\
Best Regards, Chris
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: Using 4046-Type PLLs Successfully
« Reply #8 on: March 20, 2018, 09:27:09 pm »
Here's what "The Art of Electronics" says about it:

Quote
"So, what’s going on here? Each of the HC4046 manufacturers
uses a different circuit for their VCO design.
Although intended to be predictable and linear, in practice
the VCO control is nonlinear, and its parameters vary with
control current, supply voltage, and operating frequency,
especially above 10 MHz. Although you can find analyt-
ical expressions for the VCO’s frequency (ON Semi app
note AN 1410), the recommended method is still to start
with the timing component values (R 1, R2, and Ci) from
datasheet graphs; then the designer is sternly admonished
to adjust and validate those values with careful bench
measurements before committing to manufacturing.

This sort of variability and lack of confident predictability
leads us to render this advice:

1. choose one manufacturer for your production design,
and do not allow substitutes;

2. choose a wide safety margin for and / max, such as
the 3 x factor in our Figure 13.99;

3. replace your initial paper calculations with measured
bench values for production.

Rule 1. applies to any linear functionality in a logic
IC, e.g., mixed-signal functions such as phase comparators,
oscillators, VCO's, mixers, Schmitt-triggers, monostables,
or comparators."

My advice: forget the 4046 and use the 74HCT9046 instead. Still not perfect but much more stable and reproducible.
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #9 on: March 20, 2018, 09:27:35 pm »
The first time users may be trying to get a PLL running until cows come home and never succeed, because of the limitations Tim pointed out. To me Tim provided valuable information and you may need to pass it  over to your friend.

You may be right. I read "so I understand it", "but as I've heard it" etc.

My friend has made dozens of projects using 4046-type PLLs, I trust that a bit more than the waffle.

If you take the trouble to read the paper, he actively discourages people from using the "two resistor" VCO circuit. And he also points out the spread.

The main point is how to build the loop controller, where the data sheet gives misinformation.

« Last Edit: March 20, 2018, 09:31:39 pm by Benta »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21675
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Using 4046-Type PLLs Successfully
« Reply #10 on: March 20, 2018, 09:50:10 pm »
Waffle is necessary, as I don't have much experience with them myself -- I know people that do, I can provide contact if you like.

Also don't have enough experience to talk about loop compensation, but that is always a thing to look out for.  If you don't allow some hours to test component values during bring-up, you're going to have a bad time.  A particularly insidious case when the datasheet claims to know the way!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #11 on: March 20, 2018, 09:53:30 pm »
Waffle is necessary, as I don't have much experience with them myself -- I know people that do, I can provide contact if you like.

Also don't have enough experience to talk about loop compensation, but that is always a thing to look out for.  If you don't allow some hours to test component values during bring-up, you're going to have a bad time.  A particularly insidious case when the datasheet claims to know the way!

Tim

So why on earth did you derail this thread right away? But I'm glad you 'fessed up. Hats off to you, Sir!
« Last Edit: March 20, 2018, 09:55:24 pm by Benta »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21675
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Using 4046-Type PLLs Successfully
« Reply #12 on: March 20, 2018, 10:00:32 pm »
So why on earth did you derail this thread right away? But I'm glad you 'fessed up. Hats off to you, Sir!

Because that's how forums work, you post a thought and people reply with whatever comes to mind.  Alas, we all suffer this frustration.  You can't say you didn't get what you paid for. :P

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #13 on: March 20, 2018, 10:36:10 pm »
So why on earth did you derail this thread right away? But I'm glad you 'fessed up. Hats off to you, Sir!

Because that's how forums work, you post a thought and people reply with whatever comes to mind.  Alas, we all suffer this frustration.  You can't say you didn't get what you paid for. :P

Tim

The other option is to refrain from posting, when it's a subject you know very little about.
That's my style.

 

Offline chris_leyson

  • Super Contributor
  • ***
  • Posts: 1541
  • Country: wales
Re: Using 4046-Type PLLs Successfully
« Reply #14 on: March 20, 2018, 11:59:29 pm »
I've used CD4046 and HEF4046 without any problems and then it would have been either Fairchild or Motorola CD4046 running at 15V, back then a lot if not most of the Fairchild 4000 series was also specified for 18V operation. T3sl4co1l has a good point about the 74HC series, there is probably a lot of "logic" that just doesn't translate from an 18V CMOS to 5V CMOS process so fully characterize any parts before you use them. Thanks for the link to the paper, I will keep a copy stashed away for future reference.
 

Online moffy

  • Super Contributor
  • ***
  • Posts: 1734
  • Country: au
Re: Using 4046-Type PLLs Successfully
« Reply #15 on: March 21, 2018, 01:10:33 am »
I am happy to hear T3sl4co1l's comments about the HC version, first I heard about the problems and quite a gotcha. Also delighted to hear about the 74HCT9046, definitely the choice for higher frequencies.
 

Offline KE5FX

  • Super Contributor
  • ***
  • Posts: 1890
  • Country: us
    • KE5FX.COM
Re: Using 4046-Type PLLs Successfully
« Reply #16 on: March 21, 2018, 01:27:51 am »
Next up: a direct digital synthesizer built from 12SQ7s.  :P  These 4046-family chips are all genuine antiques, and should be considered to be primarily of historical interest.  Too many nicer parts out there that actually work well.

For the record, the CD4046 is the part that had the dead-band problem, as originally documented by W. Egan and E. Clark in 1978 (according to Rohde).  The most common fix, again documented by Ulrich Rohde, is to use a 1M resistor to ground at the output of the charge pump.  This has the effect of biasing the operating point to a nonzero offset. 

As Karel says, the 74HCT9046A seems to be the latest of several generations, and its data sheet says there's no dead zone.  It would probably be the best one to use if you want to experiment with a 4046-type part.  No DIP package, unfortunately...
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: us
Re: Using 4046-Type PLLs Successfully
« Reply #17 on: March 21, 2018, 02:01:01 am »
Next up: a direct digital synthesizer built from 12SQ7s.  :P  These 4046-family chips are all genuine antiques, and should be considered to be primarily of historical interest.  Too many nicer parts out there that actually work well.
What are your favorites, especially for 1kHz to 1MHz frequencies?

Quote
As Karel says, the 74HCT9046A seems to be the latest of several generations, and its data sheet says there's no dead zone.  It would probably be the best one to use if you want to experiment with a 4046-type part.  No DIP package, unfortunately...
74HCT9046AN is obsolete, but available from eBay or utsource.net
 

Offline KE5FX

  • Super Contributor
  • ***
  • Posts: 1890
  • Country: us
    • KE5FX.COM
Re: Using 4046-Type PLLs Successfully
« Reply #18 on: March 21, 2018, 03:04:31 am »
Next up: a direct digital synthesizer built from 12SQ7s.  :P  These 4046-family chips are all genuine antiques, and should be considered to be primarily of historical interest.  Too many nicer parts out there that actually work well.
What are your favorites, especially for 1kHz to 1MHz frequencies?

A DDS chip.  :)  But that really is derailing the thread.

Failing that, I'd consider whether the application really needs a phase-frequency detector at all, or if it can get by with a mixer or XOR gate.  I can't think of many use cases for a 4046 at this point, other than perhaps ones driven solely by cost.  Anyone have any good examples?

Assuming there's already a CPU sitting around, my natural inclination would be to tackle low-frequency synchronization and synthesis problems entirely in the digital domain.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: Using 4046-Type PLLs Successfully
« Reply #19 on: March 21, 2018, 07:38:54 am »
74HCT9046AN is obsolete, but available from eBay or utsource.net

That's why you should use the 74HCT9046AD.
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
Re: Using 4046-Type PLLs Successfully
« Reply #20 on: March 21, 2018, 08:55:18 am »
AFAIK, CD4046 are fine, 74HC4046 are crummy.

Well, that depends ...
As a general rule: One cannot easily replace a x4046 with a same type number but other manufacturer in most cases.
From my experience this is common with HC4046 (must stick with the orignal manufaturer, sometimes even tuning the circuit does not help), and happened at least once to me with a CD4046 variant.
The HC4046 can do higher VCO frequencies, so if you need this, you cannot go back to the CD4046. But HC4046 oscillators behave very different between manufacturers, and if your circuit work, hopefully your chosen manufacturer doesn't do chip shrinks or revisions, then you're screwed again.

If you need a reliable and long term manufacturably stable PLL circuit, go for other chips.
Safety devices hinder evolution
 

Offline sourcecharge

  • Regular Contributor
  • *
  • Posts: 199
  • Country: us
Re: Using 4046-Type PLLs Successfully
« Reply #21 on: March 23, 2018, 12:47:46 pm »
The most important thing I found using PLLs is basically how fast can something relieably lock in, and hold, while allowing a wide lock in range.

This really all has to do with the Low pass filter and the VCO ability.

I was going to use this with a series LC type induction heater setup but have since found they are very inefficient and have no more need for the PLL so I really haven't worked more on it.

What I did do though is try to find the root cause of why the 4046 has such a low lock in range by making simulations using the edge triggered phase detector using CMOS D flip flops, some logic, and a half bridge.

I found that the 555 use as a VCO was very limited, but I had some XR2209 VCO laying around and found they had a 1:1000 Hz sweep range so, here is what I have so far.

Keep in mind that the XR2209 operates better with a + and - voltage input, and that it actually has a negative voltage feedback to frequency with the VCO instead of a positive voltage feedback to frequency.  If you want a positive feedback, you have to change the logic, I have prototyped this and it works good.

BTW. some notes:

the AND gate is on the reset of both those DFF.

The logic input and output is from +/- 10V (there are logic grounds and normal grounds in B2 spice that look the same)

The filter and voltage sources for the charge pump all have normal grounds

The Black Box/triangle 2 terminal parts represent xspice square/triangle wave VCOs that can be internally changed for all variables
I have this setup to do a FM input square wave for a simulated frequency sweep that the PLL follows..

The NAND logic on the charge pump can be substituted with an AND gate and then use another Nch mosfet with a resistor on the drain to drive the Pch mosfet at the top.

1 DFF, 1 AND, 2 Nch, 3 resistors, 1 capacitor, 1 Pch, 1 VCO, 1 Input frequency

If you want to multiple the frequency, a divider can be put between the VCO and the DFF but the VCO has to be setup for the higher frequency.

So If your simulators don't have edge triggered Phase Detectors (4046 type, type 2 PD, or type 2 PLL), there you go..

Hope that helps
« Last Edit: March 25, 2018, 12:04:15 am by sourcecharge »
 

Offline G0HZU

  • Super Contributor
  • ***
  • Posts: 3015
  • Country: gb
Re: Using 4046-Type PLLs Successfully
« Reply #22 on: March 23, 2018, 02:32:28 pm »
Quote
Now, first wrinkle -- and, a fatal one I think, as, at a glance, I don't see this enumerated in the article -- CD4046 is the "original and still best", and 74HC4046, and 7046 and 9046, are the knock-off substitutes.  Perhaps that is where the confusion has arisen?
I did a lot of PLL design from about 1990 onwards using this type of PFD and back in those days there was obviously no internet and you just had the classic PLL books from Gardner, Rohde and Manassewitsch and a string of dodgy application notes to work with.

The app notes weren't nice to work with and from memory it didn't seem to matter which app note or technical reference you turned to there was always something missing or there were typos or mistakes in the practical examples. Very frustrating!

We ended up developing our own design tools to design the loop filter and predict the PLL performance. Back then the primary interest was to design high performance local oscillator signals for use in receivers and these typically ran up into the GHz region. So a typical PLL had a VCO, prescaler, DM prescaler and a PLL chip with a divider and PFD. There was so many design traps to fall into in those days.

I remember balancing lock time, divider noise, PFD frequency, DM prescaler ratio (and associated setup delay time), synth steps size, reference sideband levels and VCO noise to try and get the best performance across a wide tuning range. It really was state of the art stuff and we ended up developing our own 'post PFD' current sink/source circuit using BJTs that could run at 28V. So no need for a noisy and slow op amp in the loop filter and the noise and sideband suppression was very good.

So I would agree that there is a place for a 4046 article like this because the app notes still seem to be poor and the worked examples in the app notes (for various chips that use this type of PFD) are still dodgy.... or they were the last time I looked.  I think this "Using 4046-Type PLLs Successfully" guide needs a bit of work though, especially if you want to help a total newbie.
« Last Edit: March 23, 2018, 02:40:12 pm by G0HZU »
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Using 4046-Type PLLs Successfully
« Reply #23 on: March 23, 2018, 03:45:53 pm »

Back in the 70's there were some receivers that needed very fast frequency change capability over a very wide frequency range.
In place of one PLL, many were used. Was a bunch of mixers and PLL's that did the job.

Some went so far as digital store & restore of AGC to get needed speed.
 
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5871
  • Country: de
Re: Using 4046-Type PLLs Successfully
« Reply #24 on: March 23, 2018, 05:16:33 pm »
Sourcecharge and G0HZU, thank you for your helpful and constructive remarks.
We've read them through with interest.

The author says:

My reference #1 when writing the note was Floyd M. Gardner, he is the absolute expert in this field.
He states:
- A Type 2 PLL must have a at least a second-order transfer function.
- To achieve a second-order transfer function with a "normal" PFD, an active loop controller/filter is needed.
This is what my note tries to describe.

A different situation exists when using a charge-pump PFD. The schematic shown by sourcecharge is a charge-pump PFD and will work with a passive filter, G0HZU also mentions a "'post PFD' current sink/source circuit".

Unfortunately, the 4046 is not suited for charge-pump operation, having only one (three-state) output and so we are left with the active loop controller/filter.

With a lot of goodwill, you might argue that the 4046 data sheet shows a passive filter that can be used if the PFD output is interpreted as a charge pump (current limiting in the PFD output transistors). But even then the data sheet would be wrong!

Gardner proposes this passive filter for a charge-pump PFD:
« Last Edit: March 23, 2018, 05:23:05 pm by Benta »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf