Author Topic: Crystal not oscillating (input to 74HC4060)  (Read 10018 times)

0 Members and 1 Guest are viewing this topic.

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Crystal not oscillating (input to 74HC4060)
« on: October 24, 2016, 08:35:08 pm »
Hi guys,

I've got a bit of an issue with a crystal (actually 2 crystals) not oscillating (can't see the sine wave on my DSO and there's no output at the test points).

The crystals are connected to independent 74HC4060 14-stage binary ripple counters (http://www.nxp.com/documents/data_sheet/74HC_HCT4060.pdf) in the same configuration and same component values shown in the attached images.

This circuit has been known to work for others and is used in the Open.Theremin.Uno project; having said that, looking at the data sheet R18 (Rbias) is much higher than the recommended figure of 100k-4.7M Ohm. I have tested a 100kOhm in parallel with the with the 4.7M with no change.

I have my DSO in 10X mode and can easily see the oscillations of a 12MHz crystal on a microcontroller.

Note: all components are SMD

Data sheets for the crystals: http://www.ecsxtal.com/store/pdf/csm-7x.pdf


What should I be looking at/testing to sort this issue out?

Thanks
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Crystal not oscillating (input to 74HC4060)
« Reply #1 on: October 24, 2016, 08:48:08 pm »
The 2.2K resistor value is too high.  You could probably make it 0 ohms.
 

Online Andy Watson

  • Super Contributor
  • ***
  • Posts: 2082
Re: Crystal not oscillating (input to 74HC4060)
« Reply #2 on: October 24, 2016, 09:27:46 pm »
The 2.2K resistor value is too high.  You could probably make it 0 ohms.
Agreed. Also, at 7-8MHz, C17 and C18 could probably be reduced - try 20pF. And remember that if you probe the crystal directly with scope probe you will be adding 10M and ~10pF to ground.

Does the 4060 have sufficient and close-by decoupling?

 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Crystal not oscillating (input to 74HC4060)
« Reply #3 on: October 24, 2016, 10:14:22 pm »
For that high of a frequency, putting a crystal is all it takes.

You may increase the feedback resistor. You may also use a serial resistor, either on the output or the input, to isolate the circuit resonation from the clamping diodes. Try 100k first.
================================
https://dannyelectronics.wordpress.com/
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Crystal not oscillating (input to 74HC4060)
« Reply #4 on: October 24, 2016, 10:53:58 pm »
R19 has various functions, in some cases limiting xtal excitation, others moving
phase to correct slope of xtal response. Also killing harmonic operation of the
xtal fundamental.

This might help -

http://www.ti.com/lit/an/szza043/szza043.pdf

http://www.rakon.com/component/docman/doc_download/223-ic-crystal-oscillator-circuits?Itemid=

Regards, Dana.
« Last Edit: October 24, 2016, 11:04:30 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Re: Crystal not oscillating (input to 74HC4060)
« Reply #5 on: October 26, 2016, 10:58:56 am »
Lots of responses, thanks guys!

Ok, so I have bridged across R19 and R21 with a 330ohm resistor, the 8MHz crystal is now running perfectly and I'm getting 500kHz on the output Q4 (div by 16 output); I'll desolder the 2.2k from  R21 and replace with 220 ohms.

I'm still having issues with the 7.32MHz crystal, but I'll play with it some more. Still need to read the documents danadak posted.


 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1244
  • Country: es
    • ElektroQuark
Re: Crystal not oscillating (input to 74HC4060)
« Reply #6 on: October 26, 2016, 11:50:53 am »
Try lowering R18 to 1MOhm

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Crystal not oscillating (input to 74HC4060)
« Reply #7 on: October 26, 2016, 03:08:32 pm »
Try lowering R18 to 1MOhm

Why do you think that would make any difference?
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: Crystal not oscillating (input to 74HC4060)
« Reply #8 on: October 26, 2016, 03:11:33 pm »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19482
  • Country: gb
  • 0999
Re: Crystal not oscillating (input to 74HC4060)
« Reply #9 on: October 26, 2016, 05:06:49 pm »

The lowest output frequency the 4060 can get from a 32,768Hz crystal is 2Hz, as it's a 14 stage counter. To get 1Hz, a 15 stage counter is required.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Crystal not oscillating (input to 74HC4060)
« Reply #10 on: October 26, 2016, 11:54:35 pm »
The R used to bring the cmos gate into its linear region is a compromise of
xtal loading vs generating offsets due to leakage.

The 74HC4060 spec has a leakage of + or - 1 uA, so that means the gate
will be offset by as much as Rfdb x 1 uA = 15 V which implies gate would be
at supply rails. Typical is .1 uA, or 1.5V for 15M fdbk.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Crystal not oscillating (input to 74HC4060)
« Reply #11 on: October 27, 2016, 12:56:25 am »
The 74HC4060 spec has a leakage of + or - 1 uA, so that means the gate
will be offset by as much as Rfdb x 1 uA = 15 V which implies gate would be
at supply rails. Typical is .1 uA, or 1.5V for 15M fdbk.

I think you are are reading the datasheet wrong... 74HC specifies 0.1uA max at 25C, with no typical value.  Actual input leakage should be below 1nA.

(See Figure 8 in this document: http://www.home.hs-karlsruhe.de/~bebe0001/74LSXX/74HCTxx.pdf)

You might want to consider the worst case current for a production design, but that has nothing to do with OP's problems.
 

Offline pelule

  • Frequent Contributor
  • **
  • Posts: 513
  • Country: de
  • What is business? It’s other people’s money
Re: Crystal not oscillating (input to 74HC4060)
« Reply #12 on: October 27, 2016, 02:53:35 am »
I may have overseen, I am missing a potentially design critical information.
What is your the supply voltage (VCC)?
Most samples application for CMOS are based related to VCC >5V normally.
At lower voltage the circuit requires to be adopted as CMOS becomes slower.
You will learn something new every single day
 

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Re: Crystal not oscillating (input to 74HC4060)
« Reply #13 on: October 27, 2016, 07:00:32 am »
I may have overseen, I am missing a potentially design critical information.
What is your the supply voltage (VCC)?
Most samples application for CMOS are based related to VCC >5V normally.
At lower voltage the circuit requires to be adopted as CMOS becomes slower.

Supply voltage is 3.3V; there is a 100nF cap across the supply within a few mm of the IC. PCB layout attached. If it's a voltage issue, other than increasing the voltage, what else can be done? Also why does the 8MHz work but not the 7.32MHz?

I've got some caps on order so I can try 10, 15 and 20 pF

Edit - just tested 18 pF caps, 4.7 MOhm R18 and 220 Ohm R19 - no luck
« Last Edit: October 27, 2016, 07:19:03 am by Macka »
 

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Re: Crystal not oscillating (input to 74HC4060)
« Reply #14 on: October 27, 2016, 07:02:00 am »
Try lowering R18 to 1MOhm

Was the first thing I tried. Also tried it in combo with R19 at 330 Ohm. I think the only other thing I can try is to reduce the caps on the crystal
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Crystal not oscillating (input to 74HC4060)
« Reply #15 on: October 27, 2016, 10:51:53 am »
From the NXP datasheet, attached, leakage specs.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Re: Crystal not oscillating (input to 74HC4060)
« Reply #16 on: October 27, 2016, 11:52:10 am »
R19 has various functions, in some cases limiting xtal excitation, others moving
phase to correct slope of xtal response. Also killing harmonic operation of the
xtal fundamental.

This might help -

http://www.ti.com/lit/an/szza043/szza043.pdf

http://www.rakon.com/component/docman/doc_download/223-ic-crystal-oscillator-circuits?Itemid=

Regards, Dana.

Ok, so going through the crystal data sheet:
C0 = 7pF
CL = 18pF (part number) or 20 pF (typ)
ESR = 60 Ohm
Drive level = 500uW

From the counter data sheet:
CI = 3.5 pF (Input capacitance - is this gate input capacitance?)

From the second link:
CL = C1 + CI
C1 = 18 -3.5 - 14.5 pF

For increased gain C1 < C2, so I could potentially use C1 = 15 pF and C2 = 33 pF? (the example does not explain the selection of C2)

From figure 5, I need minimum 50 Ohm to keep the drive below 500uW, I have 220Ohm, so 50uW dissipation, perhaps not enough current getting to the crystal, though it worked fine for the 8 MHz one

Figure 5 only applies for the design given as the example (not sure how to calculate the curve for my values)

Like the example, the gate is inverting, so phase shift = 180°
Phase Shift (propagation delay) = Propagation Delay * Working Frequency * 360° =  Propagation Delay * 7.3728MHz * 360° = Propagation Delay * 2654208000 = ??
Phase Shift (working frequency) = arctan(Fosc / F3dB) = arctan(7.3728MHz/F3dB) = ??

So I have a few unknowns, I don't really know how close they have to be to 360°; the example comes to  354°
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Crystal not oscillating (input to 74HC4060)
« Reply #17 on: October 27, 2016, 03:16:25 pm »
Try lowering R18 to 1MOhm

Was the first thing I tried. Also tried it in combo with R19 at 330 Ohm. I think the only other thing I can try is to reduce the caps on the crystal

Did you try making R19 zero ohms?  Did you try a different crystal?


From the NXP datasheet, attached, leakage specs.

Yes, just as I said, there is no typical value specified.  If you refer to the document I linked, the normal value is below 1nA (see graph below).   In reality, only a damaged part will have 100nA leakage.  This is certainly not what caused the OP's problem.
« Last Edit: October 27, 2016, 03:24:04 pm by edavid »
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Crystal not oscillating (input to 74HC4060)
« Reply #18 on: October 27, 2016, 04:24:51 pm »
Leakage.

Good practice does not design to typical values. Unless one wants the oscillator to
"typically" start, but not always.

Unless I missed it we do not know if the gate was in linear region with the 15M,
one has to measure output to see if it is biased up properly.

There are a number of leakage mechanisms involved on a cmos input, from the
fet itself to the protection networks employed to make the part robust. Process
and surface states of the silicon enter into the picture.


Regards, Dana.
« Last Edit: October 27, 2016, 04:26:30 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Crystal not oscillating (input to 74HC4060)
« Reply #19 on: October 27, 2016, 04:36:48 pm »
Unless I missed it we do not know if the gate was in linear region with the 15M,
one has to measure output to see if it is biased up properly.

Yes, you missed it.  When he changed the series resistor, the 8MHz oscillator started working.  Therefore, the problem was not the biasing resistor.

Quote
There are a number of leakage mechanisms involved on a cmos input, from the
fet itself to the protection networks employed to make the part robust. Process
and surface states of the silicon enter into the picture.

True, but not relevant, since all we care about is the total.

 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Crystal not oscillating (input to 74HC4060)
« Reply #20 on: October 27, 2016, 06:38:39 pm »
Yes, you missed it.  When he changed the series resistor, the 8MHz oscillator started working.  Therefore, the problem was not the biasing resistor.

Actually no, the G thru the device N and P MOS transistors not the same, so if biasing is offset
so is behavior. Further the bias R and input C contribute to loop dynamics. So fact that one
component change made osc startup does not alleviate proper design for the rest of circuit.
Oscillation is not a guarantee of proper bias point.

The point about where leakage comes from stands as is. Informational.

More information -

http://bwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_f01/Notes/chapter5.pdf

http://webpages.eng.wayne.edu/cadence/ECE6570/doc/lect6_1.pdf

Regards, Dana.
« Last Edit: October 27, 2016, 06:51:37 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline pelule

  • Frequent Contributor
  • **
  • Posts: 513
  • Country: de
  • What is business? It’s other people’s money
Re: Crystal not oscillating (input to 74HC4060)
« Reply #21 on: October 27, 2016, 08:15:22 pm »
I guess we all may agree to following points:
+ the CMOS IC is designed for crystal use, even at 3v3 according to NXP spec
+ it works with the 8 MHz crystal (at least badly/sometimes) -> the IC is at least not fully damaged
+ it does not work with the 7.3728 MHz crystal (data is available)
-----------
My 1 step of analyis:
+ in principle it is a feedback (looped) amplifier
+ a good designed oscillator is a badly compensated feedback amplifier, it thus start to oscillates
   (at amplification you don't want it, in this case it is required, you need it)
1st conclusion = it does not start (or stops again) the oscillation, because the compensation is wrong (in our case: too much damping)

My 2nd step of analyis:
+ too much damping means a too low ac load - a too low resistance at the target frequency of 7.3728 MHz
+ the damping circuit is build out of the crystal (a band path at target frequency), the series & feedback resistor and the clamping capacitors.
+ it ~works at 8 MHz, but does not at 7.3728 MHz (frequencies are very close to each other) with the same rest of parts in the compensation
2nd conclusion = the ac specs of the both crystal must be significant different
(I couldn't find an info, if the data sheet is for both crystals, but I don't believe)

MY SOLUTION
= either increase the amplification (reduce the effect of the damping)
--> reduce the parallel resistor (typicall one starts with 10 MOHm for CMOS, here we have 3V3, thus I would start with 1 MOhm)

= or reduce AC load (increase the ac resistance) of the damping circuit
--> you may reduce the resistor in line with the crystal (or directly start with zero Ohm)
--> you may reduce the clamping capacitors/increase there impedance (or start by leaving them away)

You may also calculate the optimum AC load using the equivalent circuit of the crystals and taking the values out of the data sheet

Does the comunity agee to my analysis/conclusion/steps to solution?
You will learn something new every single day
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Crystal not oscillating (input to 74HC4060)
« Reply #22 on: October 27, 2016, 08:52:18 pm »
Could the 7.3728 MHz crystals be broken?
 

Offline pelule

  • Frequent Contributor
  • **
  • Posts: 513
  • Country: de
  • What is business? It’s other people’s money
Re: Crystal not oscillating (input to 74HC4060)
« Reply #23 on: October 28, 2016, 08:33:49 pm »
Quote
Could the 7.3728 MHz crystals be broken?
Yes, that would also explain the symtoms.
You will learn something new every single day
 

Offline MackaTopic starter

  • Contributor
  • Posts: 30
  • Country: au
    • Andrew Craig Mackenzie
Re: Crystal not oscillating (input to 74HC4060)
« Reply #24 on: November 17, 2016, 05:26:22 am »
I haven't had any time (or parts) to work on this again until today.

After much messing about and hair pulling, I think I finally found the problem - seems there was a dry joint on the +ve rail  >:(.

Definitely needed to reduce the series resistor (2.2k down to 220 Ohm), not sure about the parallel resistor (at the moment I have 5kOhm, down from 4.7M). Also, I swapped the crystal out for a 20MHz, now I have to swap it back and hope I haven't ruined it, since a replacement is potentially a few weeks away (stock levels and remote living). The 20 MHz crystal doesn't start without some capacitance, seems the probe on the series resistance side is sufficient.

More experimenting to find a better parallel resistor and cap combo to come.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf