Tools / Logic-Level Threshold Check

How to work out logic level noise margins

A driver's worst-case output must clear the receiver's worst-case input threshold. The gap left over is the noise margin.

Static noise margins: NMH = VOHmin−VIHmin; NML = VILmax−VOLmax

Inputs

V
V
V
V

Results update as you type. Prefixes work: 4.7k, 100u, 10n.

Result
High noise margin
400 mV
Low noise margin
400 mV
Threshold compatibility
passes given limits
What this leaves out
  • Threshold checks alone cannot verify absolute maximum voltages, input protection, drive current, timing or power-domain sequencing.
Step by step

The working with your numbers

  1. High noise marginNMH = VOH(min) − VIH(min) = 2.4 − 2 = 0.4 VHow much a high signal can sag and still read as 1.
  2. Low noise marginNML = VIL(max) − VOL(max) = 0.8 − 0.4 = 0.4 VHow much a low signal can rise and still read as 0.

Does the answer make sense?

  • OK: High margin 0.4 V is positive.
  • OK: Low margin 0.4 V is positive.
  • OK: Also check the other direction: a 5 V output into a 3.3 V input that is not 5 V tolerant can damage it, whatever the margins.

Common mistakes

  • Using typical values. Margins must use the worst-case minimum and maximum from the datasheet.
  • Checking only margins and not the absolute maximum input voltage.
  • Forgetting that long wires add noise and voltage drop, which eat into the margin.

Learn it, try it, build it

Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.

Common questions

What is a noise margin?

The gap between what a driver guarantees and what a receiver needs. With TTL levels, VOH(min) 2.4 V and VIH(min) 2.0 V give a 0.4 V high margin.

Can a 3.3 V board drive a 5 V Arduino input?

Often yes for a high, because 3.3 V clears the ATmega328P's 3.0 V VIH at 5 V by only 0.3 V, which is a small margin. The reverse needs a level shifter or divider, since 5 V can damage a 3.3 V input.