TExcelTAD
Home › EE Foundations: Units, Measurement, Safety & the Lab Notebook › The Oscilloscope and the Function Generator

The Oscilloscope and the Function Generator

A multimeter gives one number. Many circuit faults hide in the shape of a signal: a clock edge that rings, a supply rail with ripple, a sine that clips at the top. The oscilloscope draws voltage against time so you can see the shape, and the function generator supplies known test signals. They are used as a pair, and both have one setting that catches almost every beginner: the scope's probe ground and the generator's output load setting.

Reading the screen

The screen is a grid, typically 10 divisions across and 8 up. Two settings turn divisions into units:

  • Vertical scale in volts per division (V/div), one per channel, plus a vertical position (where 0 V0\ \text{V} sits).
  • Horizontal scale or timebase in seconds per division (s/div), shared by all channels.
0V trig0 V up T = 4 div = 2 ms 4 Vpp CH1 1 V/div 0.5 ms/div

The wave spans 4 divisions vertically at 1 V/div1\ \text{V/div}, so it is 4 V4\ \text{V} peak to peak (2 V2\ \text{V} amplitude). One period spans 4 divisions at 0.5 ms/div0.5\ \text{ms/div}, so T=2 msT = 2\ \text{ms} and f=1/T=500 Hzf = 1/T = 500\ \text{Hz}.

Triggering makes a repeating signal stand still: the scope starts each sweep when the signal crosses a trigger level in a chosen direction (rising or falling edge). Auto mode sweeps even without a trigger (good for finding a signal), Normal waits for one (good for stable displays of irregular signals), Single captures one event and stops.

Bandwidth and rise time

A scope's bandwidth BB is the frequency at which a sine is shown 3 dB3\ \text{dB} low (about 71 %71\,\% of its amplitude). A step is shown with a rise time (10 % to 90 %) of roughly

tr,scope≈0.35Bt_{r,\text{scope}} \approx \frac{0.35}{B}

for scopes with a Gaussian-like response (a rule of thumb; many modern digital scopes, especially high-bandwidth ones with a steeper roll-off, are closer to 0.4 to 0.45). Rise times add roughly in quadrature, so the edge you see is

tr,seen≈tr,signal2+tr,scope2+tr,probe2t_{r,\text{seen}} \approx \sqrt{t_{r,\text{signal}}^2 + t_{r,\text{scope}}^2 + t_{r,\text{probe}}^2}

A common guideline is a bandwidth three to five times the highest frequency of interest.

Probes: 1x, 10x and compensation

A scope input is about 1 MΩ1\ \text{M}\Omega in parallel with roughly 10 to 20 pF. A 1x probe connects the tip straight to it: no attenuation, but the cable capacitance loads the circuit and the bandwidth is low (a few MHz; one common switchable probe is rated 6 MHz at 1x and 200 MHz at 10x). A 10x probe puts about 9 MΩ9\ \text{M}\Omega in the tip, so the circuit sees about 10 MΩ10\ \text{M}\Omega and a much smaller capacitance, and the scope sees one tenth of the signal (set the channel to 10x so the display is scaled back). The tip resistor has a small trimmer capacitor that must match the scope's input. To compensate a probe, clip it to the scope's calibrator output (a square wave, often 1 kHz1\ \text{kHz}) and turn the trimmer until the corners are square, with no overshoot (over-compensated) and no rounding (under-compensated).

The ground clip is connected to earth

On an ordinary mains-powered bench scope, every probe's ground clip is connected to the protective earth of the mains plug. Clip it only to a node that is at earth potential or to the ground of a floating, isolated circuit (a battery, a USB-powered board, a floating bench supply). Clipping it to any other node of an earth-referenced circuit creates a short circuit through the probe's ground lead.

Warning: never "float" a scope by defeating its earth connection to make a measurement. If the measurement needs a ground that is not at earth, the tools are a differential probe or a battery-powered isolated instrument, used by people trained for that work. This course does not measure mains-connected circuits.

The function generator and its 50 ohm output

A function generator is an adjustable source of sine, square, triangle and pulse waves. Electrically it is an ideal source VintV_\text{int} behind an output resistance of 50 Ω50\ \Omega. Its display does not measure the output; it calculates it from a load setting:

  • 50 ohm (the default on many generators): the display assumes a 50 Ω50\ \Omega load, which halves VintV_\text{int}, so VintV_\text{int} is set to twice the displayed value.
  • High Z: the display assumes an open circuit, so it shows VintV_\text{int}.
Vload=VintRL50 Ω+RLV_\text{load} = V_\text{int} \frac{R_L}{50\ \Omega + R_L}

Worked example: the doubled amplitude

Given: a generator in its 50 ohm mode set to 2.00 Vpp2.00\ \text{V}_\text{pp}, connected with a coaxial cable straight to a scope input of 1 MΩ1\ \text{M}\Omega.

Find: what the scope shows.

Solve: in 50 ohm mode the generator makes Vint=2×2.00=4.00 VppV_\text{int} = 2 \times 2.00 = 4.00\ \text{V}_\text{pp}. Into 1 MΩ1\ \text{M}\Omega:

Vload=4.00 Vpp×106 Ω50 Ω+106 Ω=4.00 VppV_\text{load} = 4.00\ \text{V}_\text{pp} \times \frac{10^6\ \Omega}{50\ \Omega + 10^6\ \Omega} = 4.00\ \text{V}_\text{pp}

Check: the scope shows about 4 Vpp4\ \text{V}_\text{pp}, twice the setting. Not a fault: set the generator to High Z when the load is high-impedance, or terminate the cable with 50 Ω50\ \Omega.

python · try it yourself
import math

def at_load(v_display, mode, R_L, R_out=50.0):
    v_int = 2 * v_display if mode == "50 ohm" else v_display
    return v_int * R_L / (R_out + R_L)

for mode in ["50 ohm", "High Z"]:
    for R_L in [50.0, 1e3, 1e6]:
        print(f"set 2.00 Vpp ({mode:6}), load {R_L:9.0f} ohm -> {at_load(2.0, mode, R_L):.3f} Vpp")

for B, signal in [(100e6, 5e-9), (100e6, 1e-9), (500e6, 1e-9)]:
    scope = 0.35 / B
    seen = math.sqrt(signal**2 + scope**2)
    print(f"B = {B / 1e6:3.0f} MHz: scope t_r = {scope * 1e9:.2f} ns, a {signal * 1e9:.0f} ns edge looks like {seen * 1e9:.2f} ns")
set 2.00 Vpp (50 ohm), load        50 ohm -> 2.000 Vpp
set 2.00 Vpp (50 ohm), load      1000 ohm -> 3.810 Vpp
set 2.00 Vpp (50 ohm), load   1000000 ohm -> 4.000 Vpp
set 2.00 Vpp (High Z), load        50 ohm -> 1.000 Vpp
set 2.00 Vpp (High Z), load      1000 ohm -> 1.905 Vpp
set 2.00 Vpp (High Z), load   1000000 ohm -> 2.000 Vpp
B = 100 MHz: scope t_r = 3.50 ns, a 5 ns edge looks like 6.10 ns
B = 100 MHz: scope t_r = 3.50 ns, a 1 ns edge looks like 3.64 ns
B = 500 MHz: scope t_r = 0.70 ns, a 1 ns edge looks like 1.22 ns

A 1 ns1\ \text{ns} edge on a 100 MHz100\ \text{MHz} scope is shown as the scope's own rise time: you are measuring the instrument.

Guided lab: a sine into a 50 ohm load

Hand calculation. A sine of amplitude V0=5 VV_0 = 5\ \text{V} across 50 Ω50\ \Omega has Vrms=5/2=3.54 VV_\text{rms} = 5/\sqrt{2} = 3.54\ \text{V} and average power V02/(2R)=25/100=0.25 WV_0^2/(2R) = 25/100 = 0.25\ \text{W}.

Simulation. This lab (it writes voltage as UU and U0U_0 for the amplitude) runs slowly enough to watch, at 1 Hz1\ \text{Hz}: a rotating phasor, the waveform with its ±Vrms\pm V_\text{rms} lines, and the power. At these settings it reads Urms=3.54 VU_\text{rms} = 3.54\ \text{V} and P=0.25 WP = 0.25\ \text{W}. Use only the "your own" settings here; low-voltage signals from a generator are the subject.

U0rotating phasoru (V)tUrms = 3.54 V5.0−5.0T = 1.00 sp = u²/R (W)average P = 0.25 W0.50R = 50 Ωi = 0.00 A

What you would measure. Set the generator to a 1 kHz1\ \text{kHz} sine of 10 Vpp10\ \text{V}_\text{pp} with the load setting at 50 ohm, terminate the cable with a 50 Ω50\ \Omega feed-through (rated 0.5 W0.5\ \text{W} or more) at the scope, and probe across it with a compensated 10x probe at 2 V/div2\ \text{V/div} (channel set to 10x) and 0.2 ms/div0.2\ \text{ms/div}.

  1. Five divisions of period: T=1.00 msT = 1.00\ \text{ms}; most scopes' frequency readout gives 1.000 kHz1.000\ \text{kHz}.
  2. Five divisions peak to peak: 10 Vpp10\ \text{V}_\text{pp} within the vertical accuracy. Many 8-bit scopes quote about ±2\pm 2 to 3 %3\,\% of full scale (check the manual); 3 % of 8×2 V=16 V8 \times 2\ \text{V} = 16\ \text{V} is about 0.5 V0.5\ \text{V}, so expect 9.59.5 to 10.5 Vpp10.5\ \text{V}_\text{pp}, and an RMS readout near 3.54 V3.54\ \text{V}.
  3. Remove the termination and switch to 5 V/div5\ \text{V/div}: the trace is now about 20 Vpp20\ \text{V}_\text{pp} (4 divisions), the doubling from the worked example.

Hazards and safe setup.

  • Signals from a function generator only, at most about 20 Vpp20\ \text{V}_\text{pp}. No mains-connected circuits, and the ac lab's mains preset is for calculation only.
  • Ground clips go to the generator's ground or the circuit ground of a floating, low-voltage circuit; never defeat the scope's earth.
  • Check the probe's and scope input's voltage ratings before connecting.
  • A 50 Ω50\ \Omega termination dissipates Vrms2/50V_\text{rms}^2/50: 0.25 W0.25\ \text{W} here.

Pitfalls

  • Channel set to 1x with a 10x probe (readings ten times too small), or the reverse.
  • An uncompensated probe that rounds or overshoots square waves.
  • A long ground lead on a fast edge adds ringing; use the short ground spring.
  • Forgetting the generator's load setting and doubting a correct circuit.
  • Measuring a 1 ns1\ \text{ns} edge with a 100 MHz100\ \text{MHz} scope.

Practice

  1. A trace spans 3.2 divisions vertically at 2 V/div2\ \text{V/div}, and one period spans 2.5 divisions at 10 μs/div10\ \mu\text{s/div}. Find VppV_\text{pp} and ff.
  2. What rise time does a 200 MHz200\ \text{MHz} scope add, by the 0.35/B0.35/B rule?
  3. A generator in High Z mode set to 1 Vpp1\ \text{V}_\text{pp} drives a 50 Ω50\ \Omega load. What reaches the load?
Answer
  1. Vpp=3.2×2=6.4 VV_\text{pp} = 3.2 \times 2 = 6.4\ \text{V}; T=2.5×10 μs=25 μsT = 2.5 \times 10\ \mu\text{s} = 25\ \mu\text{s}, so f=40 kHzf = 40\ \text{kHz}.
  2. 0.35/(200×106 Hz)=1.75 ns0.35/(200 \times 10^6\ \text{Hz}) = 1.75\ \text{ns}.
  3. Vint=1 VppV_\text{int} = 1\ \text{V}_\text{pp} is split between 50 Ω50\ \Omega and 50 Ω50\ \Omega: 0.5 Vpp0.5\ \text{V}_\text{pp}.

Test yourself

A period spans 4 divisions at 0.5 ms/div0.5\ \text{ms/div}. The frequency is

  1. 2 kHz2\ \text{kHz}
  2. 500 Hz500\ \text{Hz}
  3. 250 Hz250\ \text{Hz}
  4. 125 Hz125\ \text{Hz}

Why is the probe's ground clip a hazard on an earth-referenced circuit?

  1. It is not insulated
  2. It is connected to protective earth through the scope, so clipping it to a non-earth node makes a short circuit
  3. It carries the trigger signal
  4. It adds a 50 ohm load

A generator in 50 ohm mode set to 1 Vpp1\ \text{V}_\text{pp} drives a 1 MΩ1\ \text{M}\Omega scope input. The scope shows about

  1. 0.5 Vpp0.5\ \text{V}_\text{pp}
  2. 1 Vpp1\ \text{V}_\text{pp}
  3. 2 Vpp2\ \text{V}_\text{pp}
  4. 10 Vpp10\ \text{V}_\text{pp}

How do you compensate a 10x probe?

  1. Measure a DC voltage and adjust until it reads correctly
  2. View the calibrator square wave and adjust the trimmer until the corners are square
  3. Set the scope to 1x
  4. Shorten the ground lead