Oscilloscope Acquisition: Bandwidth, Sample Rate and Record Length
A digital clock looks like a clean square wave on one oscilloscope and like a rounded sine on another; on a third, set to a slow time base, it appears as a waveform that does not exist. All three scopes work. The first had enough bandwidth, the second did not, and the third had dropped its sample rate so far, to fit a long window into its memory, that the clock aliased. Three numbers on a digital oscilloscope's front page decide what you see: bandwidth, sample rate and record length. EE Foundations introduced the controls; this lesson explains the acquisition system behind them.
The acquisition chain
The input attenuator and amplifier set the volts per division and the analog bandwidth; the ADC (usually 8 bits, increasingly 10 or 12) samples at the sample rate; the samples go into acquisition memory whose size is the record length; the trigger system decides which stretch of memory is shown (next lesson).
Bandwidth and rise time
A scope's bandwidth is the frequency at which a sine is displayed low, i.e. at of its amplitude: at the rated bandwidth the scope shows a sine almost 30 % low. Most scopes up to about have an approximately Gaussian response, for which
(flatter "brick-wall" responses of high-end scopes have to ). Rise times of independent stages in a chain add approximately in quadrature:
Rules of thumb follow: to measure a sine's amplitude within a few percent (about for a Gaussian response), use a bandwidth of at least three times its frequency (five times: under ); to measure an edge's rise time within about , use a scope (and probe) about three to five times faster than the edge. For digital signals, what matters is the edge, not the clock frequency: a signal with edges needs a few hundred megahertz.
Worked example: a 50 MHz clock with 1.5 ns edges
Given: a clock with ; scopes of , , and (Gaussian response, probe fast enough to ignore).
Find: the displayed rise time on each, and how the fundamental and the third harmonic are attenuated.
Solve: for : , so
Check: the scope shows the edge times slower than it is and the square wave with less than half its third harmonic, so it looks rounded. Only the scope shows the rise time within . Units: .
import numpy as np
# Gaussian-response scope: amplitude error of a sine at f, and rise time 0.35/BW
def gain(f, bw): # Gaussian response, -3 dB at bw
return 10 ** (-3 * (f / bw) ** 2 / 20)
t_sig = 1.5e-9 # rise time of the signal (10-90 %)
for bw in (100e6, 200e6, 500e6, 1e9):
t_scope = 0.35 / bw
t_meas = np.hypot(t_sig, t_scope)
print(f"BW {bw / 1e6:5.0f} MHz: scope tr {1e9 * t_scope:4.2f} ns, displayed tr {1e9 * t_meas:4.2f} ns "
f"({100 * (t_meas / t_sig - 1):+5.1f} %), 50 MHz sine shown at {100 * gain(50e6, bw):5.1f} % "
f"(3rd harmonic {100 * gain(150e6, bw):5.1f} %)")
# Sample rate at each time base for a fixed memory depth
mem, fs_max = 10e6, 2.5e9 # 10 Mpts, 2.5 GSa/s maximum
print("time/div window (10 div) sample rate samples")
for tdiv, label in ((10e-9, "10 ns"), (1e-6, "1 us"), (100e-6, "100 us"), (1e-3, "1 ms"), (10e-3, "10 ms"), (100e-3, "100 ms")):
window = 10 * tdiv
fs = min(fs_max, mem / window)
print(f"{label:>8s} {1e3 * window:12.4g} ms {fs / 1e6:8.1f} MSa/s {fs * window:10.0f}")BW 100 MHz: scope tr 3.50 ns, displayed tr 3.81 ns (+153.9 %), 50 MHz sine shown at 91.7 % (3rd harmonic 46.0 %)
BW 200 MHz: scope tr 1.75 ns, displayed tr 2.30 ns (+53.7 %), 50 MHz sine shown at 97.9 % (3rd harmonic 82.3 %)
BW 500 MHz: scope tr 0.70 ns, displayed tr 1.66 ns (+10.4 %), 50 MHz sine shown at 99.7 % (3rd harmonic 96.9 %)
BW 1000 MHz: scope tr 0.35 ns, displayed tr 1.54 ns ( +2.7 %), 50 MHz sine shown at 99.9 % (3rd harmonic 99.2 %)
time/div window (10 div) sample rate samples
10 ns 0.0001 ms 2500.0 MSa/s 250
1 us 0.01 ms 2500.0 MSa/s 25000
100 us 1 ms 2500.0 MSa/s 2500000
1 ms 10 ms 1000.0 MSa/s 10000000
10 ms 100 ms 100.0 MSa/s 10000000
100 ms 1000 ms 10.0 MSa/s 10000000
Sample rate and aliasing
The ADC must sample faster than twice the highest frequency present (Nyquist), but a scope's input is not band-limited the way an audio ADC's is: its front end rolls off gently, so components above still get through and alias. In practice, real-time scopes sample at least to times their bandwidth and display with interpolation between samples. A signal sampled too slowly does not look "rough"; it looks like a smooth, wrong, lower-frequency waveform. The aliasing lab makes this concrete.
Simulation. A sine sampled at (Nyquist ) is reconstructed as a sine: , phase-reversed. Slide through and and watch the alias fold; switch the anti-alias filter on to see what a scope lacks.
Record length: the hidden trade-off
The memory holds samples, and the screen shows ten horizontal divisions, so
At fast time bases the scope runs at its maximum rate; at slow ones it must reduce the sample rate to fit the window into memory. The table in the program above (10 Mpoints, ) shows the rate falling to at , enough to alias anything above . Always check the sample rate the scope displays, not its maximum. Peak-detect acquisition keeps the minimum and maximum of each interval at the full ADC rate, so narrow glitches survive at slow time bases.
Vertical resolution
An 8-bit ADC has 256 levels over the full screen (often about 10 vertical divisions with some margin), so at one code is about . Use the vertical range so the signal fills most of the screen. High-resolution mode (boxcar averaging of oversampled points within each display interval) and averaging of repeated triggered acquisitions trade bandwidth or update rate for extra effective bits; the effective number of bits (ENOB) of a scope is typically well below its nominal resolution at high frequencies (Data Acquisition).
Guided lab: rise time of a fast edge
Hand calculation. A function generator's square wave typically has edges of a few nanoseconds (check its datasheet). On a scope with a -class probe (each about ), a edge displays as .
Simulation. Edit t_sig and the bandwidth list in the program to your generator and scope.
What you would measure. Connect the generator's square wave (, output terminated in at the scope) and measure the 10–90 % rise time with the scope's automatic measurement at . Expect the quadrature sum above within about . Then set and read the sample rate in the status line: the edges become one or two samples, and a waveform may alias into a beat pattern unless peak detect is on.
Hazards and safe setup. Generator levels only; the feed-through dissipates about ( across ).
Pitfalls
- Measuring a signal near the scope's bandwidth and reading its amplitude low.
- Forgetting the probe's bandwidth (a 1x probe limits a scope).
- Leaving the scope at a slow time base and trusting a waveform built from too few samples.
- Mistaking an alias for a real low-frequency signal: change the time base; an alias changes frequency, a real signal does not.
Practice
- What rise time does a Gaussian scope have?
- A scope with 1 Mpoint of memory and maximum is set to . What sample rate does it use, and what is the highest frequency it can show without aliasing?
Answer
- .
- ; Nyquist , in practice somewhat less.
Test yourself
At its rated bandwidth an oscilloscope shows a sine at about
- 100 %
- 90 %
- 70.7 %
- 50 %
A 2 ns edge viewed on a scope with a 2 ns rise time displays as about
- 2 ns
- 2.8 ns
- 4 ns
- 1 ns
Why does a scope's sample rate drop at slow time bases?
- to save power
- the record length is fixed, so a longer window means fewer samples per second
- the ADC overheats
- the trigger needs it
An aliased waveform on a scope typically looks
- noisy and jagged
- like a smooth sine at a wrong, lower frequency
- flat
- clipped