Skip to content
Digital Electronic Systems

Logic levels, noise margins, delays and output types

VOH, VOL, VIH, VIL voltages, noise margins with an example, level shifters, propagation delay and fan-out, power, push-pull, open-drain and three-state outputs, floating inputs.

For Boolean algebra a signal is 0 or 1; for electronics it is a voltage, never exactly 0 or V_{DD}, disturbed by noise, by drops along traces and by coupling with nearby lines. For a digital circuit to work you need to know which voltages are recognised as 0 and as 1, how much disturbance can be tolerated and how long a gate takes to respond. In this lesson we cover logic levels, noise margins, delays, power and the different kinds of output.

Logic levels

Every logic family specifies four voltages:

  • V_{OH}: the minimum voltage an output guarantees when high;
  • V_{OL}: the maximum voltage an output guarantees when low;
  • V_{IH}: the minimum voltage an input surely recognises as 1;
  • V_{IL}: the maximum voltage an input surely recognises as 0.

Between V_{IL} and V_{IH} is a forbidden zone: there the input may read anything, and a signal lingering there also makes both transistors of the CMOS input conduct, with abnormal current draw.

Logic levels of an output and an input with the noise margins
On the left a gate’s output: it guarantees at least V_OH when high and at most V_OL when low. On the right the next gate’s input: it recognises as 1 anything above V_IH and as 0 anything below V_IL, with an uncertain zone in between. The differences between the guaranteed and the recognised levels are the noise margins.

Noise margins

    \[ NM_H = V_{OH} - V_{IH},\qquad NM_L = V_{IL} - V_{OL} \]

They are the largest disturbances that can be added to the signal without the next gate misreading it.

Example. For typical 3.3 V LVCMOS logic, with V_{OH} = 2.4 V, V_{OL} = 0.4 V, V_{IH} = 2.0 V and V_{IL} = 0.8 V: NM_H = NM_L = 0.4 V. A long trace picking up 0.5 V of disturbance from a nearby line is already out of specification.

Connecting different families. A 3.3 V output driving a 5 V input with V_{IH} = 3.5 V is not safe: 3.3 V is below the threshold. Conversely a 5 V output can damage a 3.3 V input that is not tolerant. Level shifters are needed: dedicated chips, or a MOSFET with pull-up resistors for slow buses such as I²C.

Delays

A gate does not switch instantly. The propagation delay t_p is the time between the input crossing 50% of its swing and the output doing so; t_{pLH} and t_{pHL} are distinguished for the two transitions. The rise and fall times (between 10% and 90%) say how steep the edges are. As seen in the CMOS lesson, the delay is about CV_{DD}/I: it grows with the capacitance to be driven, that is with the number of inputs connected to the output (fan-out) and with trace length.

In modern integrated circuits gate delays are tens of picoseconds, and the interconnect often dominates: a long wire on the chip is a distributed RC line whose delay grows with the square of its length. That is why buffers are inserted along long connections.

Power

The power of a CMOS gate is almost entirely dynamic, P = \alpha CV_{DD}^2 f (proof in the CMOS logic lesson), plus a small static part due to leakage currents. Lowering the voltage is the most effective way to reduce power, which is why logic has moved from 5 V to 3.3, 1.8 V and below. Other techniques: stopping the clock of idle blocks (clock gating), cutting the supply of blocks that are off (power gating), lowering voltage and frequency when less computing power is needed.

Kinds of output

  • Totem pole (push-pull): the normal CMOS output, which actively drives the line both to 0 and to 1. Two push-pull outputs tied together trying to force different values create a short circuit.
  • Open drain (or open collector): the output can only pull the line to 0; an external pull-up resistor brings it to 1. Several outputs can share the same line: one going to 0 is enough to make the line 0 (a “wired” AND). This is the principle of the I²C bus and of shared interrupt lines. The price is a slow rising edge, set by the pull-up and the line capacitance.
  • Three-state (tri-state): besides 0 and 1, the output can be disconnected (high impedance). Many outputs share a bus, and an enable signal decides who talks; the others must be in high impedance.

Inputs not to forget

A CMOS input left unconnected is neither 0 nor 1: it charges randomly and can oscillate, draw current and make the logic toggle. Every unused input must be tied to ground or to the supply, directly or through a resistor. Push-buttons need a pull-up or pull-down, and produce bounce (dozens of transitions in the first milliseconds), removed with a Schmitt trigger and an RC filter or in software.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x