C11 · Lesson 11 · Measuring frequency and time
Counters, time bases and jitter
Frequency is the quantity measured most precisely of all: a good lab counter reads ten or eleven digits in a second, and the SI second itself is defined by counting cycles of a cesium atom. How many of those digits mean anything depends on how the counter counts, on the accuracy of its own clock, and on how much the signal's edges wander from cycle to cycle.
- The curves are the relative resolution of two ways of counting, against the signal's frequency, for a gate time T.
- Direct counting counts input cycles for T: an uncertainty of ±1 count, so a resolution of , poor at low frequencies.
- Reciprocal counting times a whole number of input periods with a fast reference clock : ±1 count of the clock, about , the same at every frequency. Below it always wins.
Predict
A counter with a 1 s gate counts a 1 kHz signal directly. What is its resolution?
1 Hz: it counts 1000 or 1001 cycles, so ±1 count is 0.1%. A reciprocal counter with a 100 MHz clock times the same second to ±10 ns, a resolution of , 0.01 mHz at 1 kHz. That's why every modern counter is reciprocal.
Name it
Counting
- Direct: count edges during a gate of length T; , resolution in hertz.
- Reciprocal: count a whole number of input periods while also counting a reference clock; the frequency is the ratio. The ±1 count falls on the fast clock, so the relative resolution is about . Interpolators that time the edges inside one clock period improve it further.
The time base
Every counter compares with its own oscillator, and the reading can't be more accurate than it. A crystal with ±1 ppm accuracy makes a 10 MHz reading uncertain by ±10 Hz, however many digits are shown. Better references: a temperature-compensated crystal (about 0.1 to 1 ppm), an oven-controlled crystal (about 0.01 ppm), a GPS-disciplined oscillator, or a rubidium standard.
Jitter
Jitter is the wandering of edges from their ideal times, quoted as rms (random) or peak-to-peak. It limits how precisely a single period can be measured, and averaging over N periods reduces random jitter's effect by . When a clock samples a signal, jitter turns into noise: sampling a sine of frequency f with rms jitter limits the SNR to
Stability
Accuracy (how far from the true value) differs from stability (how much it changes over time). An oscillator's short-term stability is described by its Allan deviation, the typical change in fractional frequency between successive averages of length τ.
Worked example
A reciprocal counter with a 100 MHz clock and a 1 s gate measures a 10 MHz signal, using a ±1 ppm time base. What limits the result?
Show the solution
- Resolution. It is about That's 0.1 Hz at 10 MHz.
- Time base. so ±1 ppm is ±10 Hz.
- Compare. The time base is a hundred times worse, so the ninth digit the display shows is meaningless unless the counter is locked to a better reference.
Answer the ±1 ppm time base limits it to ±10 Hz, a hundred times the 0.1 Hz resolution.
Worked example
A clock with 1 ps rms jitter samples a 100 MHz sine. What SNR does the jitter allow, and what about 0.5 ps?
Show the solution
- SNR at 1 ps. With f = 100 MHz and = 1 ps, :
- Effective bits. That's about 10.3 effective bits, whatever the converter's resolution:
- At 0.5 ps.
- What limits fast converters. High-speed ADCs are often limited by their clock rather than their quantizer.
Answer 64.0 dB at 1 ps (about 10.3 effective bits), and 70.1 dB at 0.5 ps.
Worked example
A period is measured with 50 ps rms jitter. How many periods must be averaged to know the mean period to 1 ps?
Show the solution
- Averaging N periods. It reduces random jitter's effect by :
- Solve for N.
- One long interval. Measuring 2500 periods at once (a single interval) does the same, because the jitter at only the two end edges matters, divided over 2500 periods.
Answer 2500 periods.
Check
A 1000 Hz signal is counted directly with a 0.1 s gate.
(a)
What is the resolution?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What is that relative to the frequency?
Check
A reciprocal counter with a 100 MHz clock and a 0.1 s gate measures 100 MHz.
(a)
About what is its resolution?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How many input periods does it time?
Check
A counter's time base is accurate to ±0.5 ppm, and it measures 10 MHz.
(a)
What uncertainty does the time base add?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What would it add at ten times the frequency?
Check
A clock with 0.1 ps rms jitter samples a 100 MHz sine.
(a)
What SNR does the jitter allow?
(b)
How many effective bits is that?
Check
Single periods have 50 ps rms jitter; the mean period is needed to 1 ps.
(a)
How many periods must be averaged?
(b)
What uncertainty does that give?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A signal of frequency f is measured over a gate T, either by counting its cycles or by timing its periods with a clock of frequency c.
Step 1
What is direct counting's relative resolution?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is reciprocal counting's?
Step 3
Below what signal frequency does reciprocal counting win?
Explain why
Why can a counter display more digits than its time base can support, and what does that mean for a reading?
A counter's display shows its resolution: how finely it can distinguish one count from the next, set by the gate time and the clock rate. Its accuracy is a different limit, set by how far its reference oscillator is from the true frequency, because every reading is really a ratio against that oscillator. A ±1 ppm crystal makes every reading uncertain by one part in a million, so on a 10 MHz signal any digits below about 10 Hz are resolved but not accurate: they're useful for seeing small changes in the signal, but not for its absolute value unless the counter is locked to a better reference.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.