TExcelTAD
Home › Electrical & Electronic Measurements › Oscilloscope Acquisition: Bandwidth, Sample Rate and Record Length

Oscilloscope Acquisition: Bandwidth, Sample Rate and Record Length

A 50 MHz50\ \text{MHz} 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 3 kHz3\ \text{kHz} 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

probe 10x, 1x, active front end V/div, bandwidth ADC GSa/s, 8-12 bit memory record length display math, FFT, meas. trigger edge, pulse, ...

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 3 dB3\ \text{dB} low, i.e. at 70.7 %70.7\,\% of its amplitude: at the rated bandwidth the scope shows a sine almost 30 % low. Most scopes up to about 1 GHz1\ \text{GHz} have an approximately Gaussian response, for which

tr≈0.35fBW,AshownA≈10−0.15 (f/fBW)2t_r \approx \frac{0.35}{f_\text{BW}}, \qquad \frac{A_\text{shown}}{A} \approx 10^{-0.15\,(f/f_\text{BW})^2}

(flatter "brick-wall" responses of high-end scopes have tr≈0.4/fBWt_r \approx 0.4/f_\text{BW} to 0.5/fBW0.5/f_\text{BW}). Rise times of independent stages in a chain add approximately in quadrature:

tr,shown≈tr,signal2+tr,probe2+tr,scope2t_{r,\text{shown}} \approx \sqrt{t_{r,\text{signal}}^2 + t_{r,\text{probe}}^2 + t_{r,\text{scope}}^2}

Rules of thumb follow: to measure a sine's amplitude within a few percent (about 4 %4\,\% for a Gaussian response), use a bandwidth of at least three times its frequency (five times: under 2 %2\,\%); to measure an edge's rise time within about 5 %5\,\%, 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 1 MHz1\ \text{MHz} signal with 1 ns1\ \text{ns} edges needs a few hundred megahertz.

Worked example: a 50 MHz clock with 1.5 ns edges

Given: a 50 MHz50\ \text{MHz} clock with tr=1.5 nst_r = 1.5\ \text{ns}; scopes of 100100, 200200, 500 MHz500\ \text{MHz} and 1 GHz1\ \text{GHz} (Gaussian response, probe fast enough to ignore).

Find: the displayed rise time on each, and how the 50 MHz50\ \text{MHz} fundamental and the 150 MHz150\ \text{MHz} third harmonic are attenuated.

Solve: for 100 MHz100\ \text{MHz}: tr,scope=0.35/(100 MHz)=3.5 nst_{r,\text{scope}} = 0.35/(100\ \text{MHz}) = 3.5\ \text{ns}, so

tr,shown=1.52+3.52 ns=3.81 ns,A150 MHzA=10−0.15×1.52=0.46t_{r,\text{shown}} = \sqrt{1.5^2 + 3.5^2}\ \text{ns} = 3.81\ \text{ns}, \qquad \frac{A_{150\,\text{MHz}}}{A} = 10^{-0.15 \times 1.5^2} = 0.46

Check: the 100 MHz100\ \text{MHz} scope shows the edge 2.52.5 times slower than it is and the square wave with less than half its third harmonic, so it looks rounded. Only the 1 GHz1\ \text{GHz} scope shows the rise time within 3 %3\,\%. Units: 1/Hz=s1/\text{Hz} = \text{s}.

python · try it yourself
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 fs/2f_s/2 still get through and alias. In practice, real-time scopes sample at least 2.52.5 to 44 times their bandwidth and display with sin⁡(x)/x\sin(x)/x 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 7 Hz7\ \text{Hz} sine sampled at 10 Hz10\ \text{Hz} (Nyquist 5 Hz5\ \text{Hz}) is reconstructed as a 3 Hz3\ \text{Hz} sine: fa=f−fs=−3 Hzf_a = f - f_s = -3\ \text{Hz}, phase-reversed. Slide ff through 5 Hz5\ \text{Hz} and 10 Hz10\ \text{Hz} and watch the alias fold; switch the anti-alias filter on to see what a scope lacks.

-A0+A0.0 s0.2 s0.4 s0.6 s0.8 s1.0 sx (V)input 7.0 Hzreconstructed 3.00 Hzsamples, fs = 10.0 Hz0A0102030405060708090100f (Hz)fs/2faliasaliased: f > fs/2 = 5.00 Hz

Record length: the hidden trade-off

The memory holds NN samples, and the screen shows ten horizontal divisions, so

fs=min⁡(fs,max⁡, N10×time/div)f_s = \min\left(f_{s,\max},\ \frac{N}{10 \times \text{time/div}}\right)

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, 2.5 GSa/s2.5\ \text{GSa/s}) shows the rate falling to 10 MSa/s10\ \text{MSa/s} at 100 ms/div100\ \text{ms/div}, enough to alias anything above 5 MHz5\ \text{MHz}. 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 100 mV/div100\ \text{mV/div} one code is about 4 mV4\ \text{mV}. 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 100 MHz100\ \text{MHz} scope with a 100 MHz100\ \text{MHz}-class probe (each about 3.5 ns3.5\ \text{ns}), a 5 ns5\ \text{ns} edge displays as 25+12.25+12.25=7.0 ns\sqrt{25 + 12.25 + 12.25} = 7.0\ \text{ns}.

Simulation. Edit t_sig and the bandwidth list in the program to your generator and scope.

What you would measure. Connect the generator's 1 MHz1\ \text{MHz} square wave (2 Vpp2\ \text{V}_\text{pp}, 50 Ω50\ \Omega output terminated in 50 Ω50\ \Omega at the scope) and measure the 10–90 % rise time with the scope's automatic measurement at 5 ns/div5\ \text{ns/div}. Expect the quadrature sum above within about ±10 %\pm 10\,\%. Then set 100 ms/div100\ \text{ms/div} and read the sample rate in the status line: the edges become one or two samples, and a 1 MHz1\ \text{MHz} waveform may alias into a beat pattern unless peak detect is on.

Hazards and safe setup. Generator levels only; the 50 Ω50\ \Omega feed-through dissipates about 20 mW20\ \text{mW} (±1 V\pm 1\ \text{V} across 50 Ω50\ \Omega).

Pitfalls

  • Measuring a signal near the scope's bandwidth and reading its amplitude 30 %30\,\% low.
  • Forgetting the probe's bandwidth (a 10 MHz10\ \text{MHz} 1x probe limits a 500 MHz500\ \text{MHz} 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

  1. What rise time does a 350 MHz350\ \text{MHz} Gaussian scope have?
  2. A scope with 1 Mpoint of memory and 1 GSa/s1\ \text{GSa/s} maximum is set to 1 ms/div1\ \text{ms/div}. What sample rate does it use, and what is the highest frequency it can show without aliasing?
Answer
  1. 0.35/350 MHz=1.0 ns0.35/350\ \text{MHz} = 1.0\ \text{ns}.
  2. 106/(10×1 ms)=100 MSa/s10^6/(10 \times 1\ \text{ms}) = 100\ \text{MSa/s}; Nyquist 50 MHz50\ \text{MHz}, in practice somewhat less.

Test yourself

At its rated bandwidth an oscilloscope shows a sine at about

  1. 100 %
  2. 90 %
  3. 70.7 %
  4. 50 %

A 2 ns edge viewed on a scope with a 2 ns rise time displays as about

  1. 2 ns
  2. 2.8 ns
  3. 4 ns
  4. 1 ns

Why does a scope's sample rate drop at slow time bases?

  1. to save power
  2. the record length is fixed, so a longer window means fewer samples per second
  3. the ADC overheats
  4. the trigger needs it

An aliased waveform on a scope typically looks

  1. noisy and jagged
  2. like a smooth sine at a wrong, lower frequency
  3. flat
  4. clipped