Erlen Primer · all experiments

Electrical · Digital · Investigate

What counts as a 1

This board works. What on it is not promised to, and why?

What counts as a 1: the bench

The bench

Two hex inverters on a breadboard, built by another group, one gate of each in use. A function generator drives U1's input through its own 50 Ω, at a DC level or as a 500 Hz triangle from 0 V to that level. U1's output, the link, drives U2's input. A multimeter in each chip's supply lead reads its current. The scope has CH1 on U1's input, CH2 on the link and CH3 on U2's output, and draws CH2 against CH1, or CH3 against CH2, in X–Y. The bench supply's OUT1 gives 5.0 V and OUT2, the board's 3.3 V rail, 3.3 V. The board works: U2 reads U1 right. One thing on it is not promised to.

TI's datasheets for the three chips are on the bench. The 74HC04 is promised to read a 1 from 3.15 V and a 0 up to 1.35 V on 4.5 V, and from 4.2 V and up to 1.8 V on 6 V; its high is at least VCC − 0.1 V and its low at most 0.1 V at 20 µA, and its high at least 3.98 V at 4 mA on 4.5 V. The 74HCT04, on 4.5 to 5.5 V, reads a 1 from 2.0 V and a 0 up to 0.8 V, and gives the HC04's levels; an input at 2.4 V adds 1.4 mA to its supply current, typically. The 74LS04, on 4.75 to 5.25 V, reads a 1 from 2.0 V and a 0 up to 0.8 V; its high is at least 2.7 V at −0.4 mA (3.4 V typically) and its low at most 0.4 V at 4 mA. HC and HCT inputs take at most 20 mA through their clamp diodes, and their outputs at most 25 mA; an LS04 input at most 7 V.

What you do

Controls

  • Supply outputs: Off or On
  • Generator: DC or Triangle, 500 Hz
  • Generator level: 0 to 10
  • Scope: Link against input or U2 out against link

Buttons

  • Record the readings

Stockroom

  • U1, the driving chip: As built · A 74HC04 · A 74HCT04 · A 74LS04
  • U2, the reading chip: As built · A 74HC04 · A 74HCT04 · A 74LS04
  • U1's supply pin: As built · To OUT1, 5.0 V · To OUT2, the 3.3 V rail
  • The LED on the link: As built · Taken off · Through 150 Ω · Through 1 kΩ · With no resistor
  • U2's five unused inputs: As built · Wired to 0 V

Unknown

  • Board: what on it is not promised to work

Predictions

  • U1 a 74HC04 on 5.0 V, its input taken slowly from 0 to 5 V. Its supply current will…
  • U1 a 74LS04 and U2 a 74HC04, both on 5.0 V, the link high. U2 will…

To work out

  • Where does the chip now in U1 switch? Find the input at which its output equals its input, on the supply it is on now. In volts, two significant figures. (V)
  • What high-level noise margin does TI promise for the link as it stands: U1's least VOH, less U2's least VIH, on the supplies they are on? For an HC04 on 5.0 V, read TI's figures along a straight line between its 4.5 V and 6 V columns. In volts, to the nearest 0.1 V: it can be below zero. (V)

To conclude

  • This board works, but is not promised to, because…

Results kept

  • Readings: U1, U2, U1 supply (V), LED on the link, U2 spare inputs, Input (V), Link (V), U2 out (V), U1 current (mA), U2 current (mA)

What you find

  • Both transistors of U1's input pair conduct with its input part-way: the p-channel is not yet off and the n-channel already on, so current runs straight from the supply to 0 V. At either rail one of them is off, and the meter reads almost nothing.
  • U1 switched in a band far narrower than TI's VIL to VIH, and nowhere near either edge of it. TI's figures are what it promises of every part, on every supply in its range and at every temperature it is rated for, not where one part switches.
  • U2 reads the link as a 1, and its input pair still conducts: the high is below U2's supply by more than a p-channel's threshold, so its p-channel never turns off and U2 draws current for as long as the link is high.

What is simplified

The chips are worked out, not measured. HC and HCT are three CMOS pairs in series, each solved by the square law: the output pair is sized to TI's typical VOH and VOL at 4 mA, HCT's input pair to its typical ΔICC, and the rest, with where each chip switches, is chosen: 2.4 V for HC and 1.4 V for HCT on 5 V, where the makers' notes give 2.25 to 2.5 V and 1.4 to 1.5 V as typical. The LS04 is a fitted curve with TI's typical levels and resistors, not its transistors. Everything is static: the 500 Hz triangle rises far more slowly than the 500 ns TI allows on 4.5 V, and a real chip may oscillate as its input crosses; here none does. Where U2's unused inputs float, their levels and hum are chosen. Parts are at 25 °C and all alike; TI's promises cover every part and temperature. The meters and probes take nothing. HC's figures at 5.0 and 3.3 V are read along a straight line between TI's columns. Past TI's absolute maximum ratings, which it says may damage a part, the bench takes the part as damaged.

Topics

digital logic, logic levels, noise margin, voltage transfer characteristic, transfer curve, input low voltage, input high voltage, output high voltage, output low voltage, switching threshold, cmos inverter, ttl, 74hc, 74hct, 74ls, logic families, interfacing, level shifting, mixed supply voltages, floating input, supply current, shoot-through, datasheet, x-y mode, breadboard, troubleshooting