I am experimenting with an oscillator and frequency divider circuit based on
74HC4060 with the oscillation frequency set by a quartz crystal.
I started with the circuit shown on page 12 of the datasheet:
It worked, but there was significant jittering on the outputs (horizontal position of the pulses before and after the one that the scope triggered on was unstable within +/- a few nanoseconds). I experimented with the component values, keeping the crystal the same, and found a combination that resulted in no jitter that I could observe or measure: there's now a nice clean time-wise stable oscillation at the expected frequency. There is voltage ripple on the outputs of the IC, both when they are high and low, which has the frequency of the clock -- I believe it's because there is no sufficient IC power supply bypassing, as the whole thing is built on a solderless breadboard and, furthermore, the IC is an SO-16 installed in a spring-loaded adapter.
The component values currently are:
R
bias = 510k (doesn't seem to affect anything really, I tried values from 91k to 700k)
R2 = 680 Ohm
C2 = C3 = 22 pF
The crystal is 16.384 MHz.
Crystal's datasheet values:
C
L = 16 pF
C
0 max = 7 pF
Drive level = 0.1 mW
Series resonance R
R max = 50 Ohm
Now, I want to make sure that I don't exceed the allowed drive level (aka power dissipation in the crystal, if I understand it correctly). What are the possible ways of measuring or estimating it?
The Renesas
AN830 application note provides a formula to calculate it, but it requires to know the drive current flowing through the crystal.
Here's what I tried. I don't have a current probe, which is used in the above app note's example, so need a different approach.
1. Measure RMS voltage across the crystal (math A-B between two channels in the scope). This yields 1.7 V, and if I calculate power as (1.7 V)
2 / 50 Ohm ~= 58 mW, then it does not make sense, because the entire circuit's power consumption is only 17 mW measured. Clearly it's not the right way of measuring it -- probably because the crystal's voltage and current are not in phase, and, I guess, not only that.
2. Measure voltage across R2 to calculate current flowing through it and have an upper estimation of what can be flowing through the crystal. I say "upper" because I lack understanding of what portion of current flowing via R2 will flow into C2 and not into the crystal.
Here we have ~980 mV RMS across R2, which yields 980 mV / 680 Ohm ~= 1.44 mA, and then, knowing C
0 and C
L (assuming my values of the caps plus the parasitic capacitance result in C
L ~= 16 pF) and using the formula from the app note, we can calculate the value for power P = I
2 * R
R * (1 + C
0/C
L) ~= 0.149 mW.
3. A somewhat dubious method, because of the noise and required CMRR considerations: add a 10 Ohm resistor in series with one of the crystal's pins and measure the voltage drop across it, again, using two scope channels.
(One more possible problem here is that I have no idea what this resistor's actual resistance will be at 16 MHz, but I'm assuming that it's still close enough to 10 Ohm -- but the assumption may be wrong, considering that it's a 6.3x2.3mm THT resistor with uncut leads, so it may have considerable parasitics.)
Since the voltage difference between the channels relative to absolute values is too low (about 1.5%), the scope fails to perform meaningful math, and I had to do it manually: zoom in (a lot!) and do a series of single-shot waveform captures to measure a typical difference between the peaks of the waveforms of both channels. The differential noise/fluctuation was not too bad, and the Vpp difference was quite consistently around 30 mV, which, measured across a 10 Ohm resistor, makes it 3 mA peak to peak, or, assuming a sine wave (which it should be -- the crystal's oscillation appears to be pretty close to a sine wave), 1.06 mA RMS, which is on the same order of magnitude as the current via R2, measured by method 2, and it is also lower than the latter, which agrees with my assumption that a portion of the current flowing via R2 is diverted into C2.
Update: there's a mistake (I think). The difference between the channels is +30 mV at their upper peaks and -30 mV at the lower peaks, which makes the differential voltage 60 mV p-p, not 30 mV, as I thought, so 30 mV is now the amplitude, and then the current, respectively, will be ~2.1 mA RMS. Still on the same order of magnitude as method 2, but actually higher current than measured by voltage drop across R2 (and the latter is more precise of course, because it didn't require chasing millivolts on top of ~2.2 Vpp signals).
Do the methods 2 and 3 make sense? Assuming no current probe is available, are there any other methods of measuring the drive power of the crystal that would be viable at say 10-20 MHz?
Is there a realistic way to calculate it, knowing the component values? If so, it would be interesting to compare the calculated value with what I measured. I suspect that I could answer the latter myself, only my brain is cowardly refusing to think and reach for some of the knowledge obtained over 20 years ago in school and university and never used since, so I need some help.