Measuring Fast Signals and Bus Problems: the short answer
Digital edges contain much higher frequencies than the clock rate. 5 ns at best.
- Level
- Advanced
- Time
- About 6 min
- Topic
- Tools and measurement
Pick the right bandwidth and sample rate, probe fast edges correctly and debug I2C and SPI with a scope and logic analyser.
Before this: Using an Oscilloscope, I²C Addressing & Shared Buses
Digital edges contain much higher frequencies than the clock rate. A scope's bandwidth limits the fastest rise time it can show: roughly rise time ≈ 0.35 ÷ bandwidth, so a 100 MHz scope shows about 3.5 ns at best. Choose a scope with 3 to 5 times the bandwidth of the signal you care about, and a sample rate of at least 4 to 5 times its bandwidth.
How you probe changes what you see. The long ground lead on a probe forms a loop that rings with fast edges, adding overshoot and wobble that are not in the circuit. For fast signals use the short ground spring that comes with the probe, touching ground right next to the signal. A 10× probe also loads the circuit less than 1×.
A logic analyser records many digital channels for a long time and decodes protocols such as I2C, SPI and UART into readable bytes. It shows what was sent; a scope shows how well it was sent. Use both: if the analyser shows NACKs on I2C, look at SCL and SDA on the scope. Slow, rounded rising edges mean the pull-up resistors are too weak for the bus capacitance. The I2C specification limits the 30 to 70 % rise time to 1,000 ns at 100 kHz and 300 ns at 400 kHz, and that rise time is about 0.85 × R × C.
Bandwidth and the probe
Edges, not the clock frequency, decide how fast a signal really is. A rule of thumb is that the bandwidth you need is about 0.35 divided by the rise time, so a 2 ns edge needs about 175 MHz. A scope or probe with too little bandwidth makes edges look slower and hides ringing.
A probe's ground lead acts as an inductor. A long lead creates ringing that is not on the real signal. For fast edges, use the short ground spring and probe close to the receiver.
Termination and reflections
When a signal edge travels along a track or cable, a change in impedance, such as an unterminated end, reflects part of it and causes ringing and false edges. A series resistor near the driver, often 22 to 100 Ω, slows the edge and damps the reflections for a point-to-point connection. Long buses such as RS-485 need termination resistors at the ends of the cable.
Keep tracks short and avoid stubs. A shorter track often removes the problem more simply than termination.
Bus problems
I²C failures are often a pull-up resistor that is too large for the bus capacitance, leaving slow rising edges. A logic analyser shows decoded data, and an oscilloscope shows the shape of the edges. Use both: the first for what is sent, the second for why it was not understood.
- Using a scope or probe with too little bandwidth for the edge speed.
- Reading ringing caused by a long probe ground lead as a real fault.
- Leaving a long bus without termination.
- BW ≈ 0.35 ÷ trise
- bandwidth needed to see an edge of rise time trise
Practise this lesson with Pro
The explanation above is free for everyone. The practice for Advanced lessons in every domain are part of the Pro plan at ₹999 a month.
With Pro you also get: a worked example, a hands-on task, a 3-question check.
