C1111 of 30
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 1/(fT), poor at low frequencies.
  • Reciprocal counting times a whole number of input periods with a fast reference clock fclk: ±1 count of the clock, about 1/(fclkT), the same at every frequency. Below fclk it always wins.

Predict

A counter with a 1 s gate counts a 1 kHz signal directly. What is its resolution?

Name it

Counting

  • Direct: count edges during a gate of length T; f=N/T, resolution ±1/T 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 1/(fclkT). 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 N. When a clock samples a signal, jitter turns into noise: sampling a sine of frequency f with rms jitter σt limits the SNR to

SNR=−20log10⁡(2πfσt) dB

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
  1. Resolution. It is about 1108×1=10−8 That's 0.1 Hz at 10 MHz.
  2. Time base. 10−6×10MHz=10Hz so ±1 ppm is ±10 Hz.
  3. 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
  1. SNR at 1 ps. With f = 100 MHz and σt = 1 ps, fσt=10−4: SNR=−20log10⁡(2πfσt)=−20log10⁡(2π×10−4)=64.0dB
  2. Effective bits. That's about 10.3 effective bits, whatever the converter's resolution: 64.0−1.766.02=10.3
  3. At 0.5 ps. SNR=70.1dB
  4. 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
  1. Averaging N periods. It reduces random jitter's effect by N: 50psN=1ps
  2. Solve for N. N=502=2500
  3. 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°.

Explain why

Why can a counter display more digits than its time base can support, and what does that mean for a reading?

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.