Parts

74HC595 vs TPIC6B595: logic outputs or power outputs

By

Both chips are an 8-bit serial-in, parallel-out shift register feeding an 8-bit storage register. You clock bits in, pulse the register clock, and eight outputs change at once. Both cascade through a serial output. The difference is what sits on the output pins.

The 74HC595 has ordinary logic outputs. Each pin drives high to VCC or low to ground, and TI caps the load at 35 mA per pin and 70 mA for the whole chip. The pins can never go above VCC, which is 6 V at most. It is the right chip for LEDs at a few milliamps each, for feeding other logic, and for driving a transistor or driver IC.

The TPIC6B595 has eight open-drain power MOSFETs. Each output can only pull its load to ground, but it sinks 150 mA continuously with all eight on, and the load can sit on a supply of up to 50 V. It has a built-in clamp for relay and solenoid kick-back and a current limit around 500 mA. It is the chip for 12 V LED strings, relays and solenoids, with no extra driver.

Rule of thumb: if the load runs from the chip's own 5 V and draws under about 8 mA per pin, the 74HC595 is enough. If the load needs its own higher supply or more current, use the TPIC6B595.

The pinouts do not match. The 74HC595 is a 16-pin part and the TPIC6B595 is a 20-pin part, so neither drops into the other's socket. The TPIC6B595 also will not read 3.3 V logic (see example 4).

Datasheet: Texas Instruments TPIC6B595 Power Logic 8-Bit Shift Register (SLIS032D) (PDF)

Advertisement

Pinout by package

SN74HC595N DIP-16 · TI1=QB 2=QC 3=QD 4=QE 5=QF 6=QG 7=QH 8=GND 9=QH' 10=SRCLR 11=SRCLK 12=RCLK 13=OE 14=SER 15=QA 16=VCC
top view, notch upSN74HC595N116QBVCC215QCQA314QDSER413QEOE512QFRCLK611QGSRCLK710QHSRCLR89GNDQH'

Top view, notch up: QB to QH down the left on 1 to 7, GND on 8, QA on 15 beside VCC on 16.

Source: Texas Instruments SNx4HC595 8-Bit Shift Registers With 3-State Output Registers (SCLS041J), p. 3 (Table 5-1 pin functions: QB-QH pins 1-7, GND 8, QH' 9, SRCLR 10, SRCLK 11, RCLK 12, OE 13, SER 14, QA 15); Texas Instruments SNx4HC595 8-Bit Shift Registers With 3-State Output Registers (SCLS041J), p. 13 (Application schematic showing VCC on pin 16)

TPIC6B595N DIP-20 · TI1=NC 2=VCC 3=SER IN 4=DRAIN0 5=DRAIN1 6=DRAIN2 7=DRAIN3 8=SRCLR 9=G 10=GND 11=GND 12=RCK 13=SRCK 14=DRAIN4 15=DRAIN5 16=DRAIN6 17=DRAIN7 18=SER OUT 19=GND 20=NC
top view, notch upTPIC6B595N120NCNC219VCCGND318SER INSER OUT417DRAIN0DRAIN7516DRAIN1DRAIN6615DRAIN2DRAIN5714DRAIN3DRAIN4813SRCLRSRCK912GRCK1011GNDGND

Top view, notch up: NC on 1, VCC on 2, DRAIN0 to DRAIN3 on 4 to 7, GND on 10, 11 and 19, DRAIN4 to DRAIN7 on 14 to 17.

Source: Texas Instruments TPIC6B595 Power Logic 8-Bit Shift Register (SLIS032D), p. 3 (Figure 4-1 DW or N package 20-pin top view (SRCK on pin 13; table 4-1 on the same page misprints it as 15)); Texas Instruments TPIC6B595 Power Logic 8-Bit Shift Register (SLIS032D), p. 1 (Logic symbol: SRCK on pin 13)

Same logic, different pins

The control pins do the same jobs on both chips, under slightly different names. Only the latch clock sits on the same pin number. The TPIC6B595 spreads its outputs over both sides and gives ground three pins (10, 11 and 19).

Function74HC595TPIC6B59516 pins20 pinsSerial data in14 SER3 SER INShift clock11 SRCLK13 SRCKLatch clock12 RCLK12 RCKClear (active low)10 SRCLR8 SRCLREnable (active low)13 OE9 GSerial out9 QH'18 SER OUTOutputs15, 1-74-7, 14-17Supply16 VCC2 VCCGround810, 11, 19Only the latch clock (pin 12) shares a number.
Figure 1. Each function and its pin number on both chips, from TI's pin tables. The TPIC6B595's shift clock is pin 13, as its pinout drawing shows; its pin table misprints it as 15.

Behind each output there is a different circuit. A 74HC595 output has a transistor to VCC and one to ground, so it can push current out to a load on ground or pull it in from VCC. A TPIC6B595 output is one MOSFET from the pin to ground, with a 50 V clamp across it. The load connects from its own supply to the drain.

74HC595: one output of 8VCC (2 to 6 V)upQdownRLEDdrives high or low;Q never above VCCTPIC6B595: one drain of 8+12 V (own supply)DRAINDMOS50 Vclamppulls down only; the loadhas its own supply
Figure 2. Left: a 74HC595 output driving an LED to ground; the pin swings between 0 V and VCC. Right: a TPIC6B595 output with the LED string on its own +12 V supply, the DMOS switch to ground and the 50 V clamp across it.

Side by side

Output type, current, voltage and temperature limits, from the TI datasheets
ParameterSN74HC595NDIP-16TPIC6B595NDIP-20
What it is8-bit shift register + storage registerthe same, with 8 DMOS power switches
Output typepush-pull logic: drives high and lowopen drain: pulls low only
Output voltage0 V to VCC, never aboveload supply up to 50 V
Current per output35 mA absolute max; specified at 6 mA150 mA continuous, all on, case at 25 °C
Whole-chip current70 mA through VCC or GNDset by heat (example 3)
Inductive loadsno clamp50 V clamp, 30 mJ single-pulse avalanche
Current limitnone listedabout 500 mA typ per output, falls as it heats
Supply (VCC)2 to 6 V4.5 to 5.5 V
Thermal resistance RθJAPDIP 67 °C/W, SOIC 73 °C/WPDIP 57 °C/W, SOIC 75.3 °C/W
Temperature range−40 to 85 °C ambient−40 to 125 °C case
Package16 pins (PDIP, SOIC, TSSOP and others)20 pins (PDIP, SOIC)
On-resistance, input levels, idle current and timing
ParameterSN74HC595NDIP-16TPIC6B595NDIP-20
On-resistanceat 100 mAnot given as a resistance (VOH 3.84 V min at 6 mA, 4.5 V)4.2 Ω typ, 5.7 Ω max; 9.5 Ω max at 125 °C
Logic high needed3.15 V at VCC 4.5 V (4.2 V at 6 V)0.85 × VCC (4.25 V at 5 V)
Supply current, idle80 µA max20 µA typ (100 max) all off; 150 µA typ (300 max) all on
Clock speed25 MHz max at 4.5 Vno maximum given; 40 ns minimum pulse, 20 ns setup
Enable pinOE (13): high = outputs floatG (9): high = all drains off; usable for PWM dimming
Clear pinSRCLR (10): clears the shift register onlySRCLR (8): clears all registers

Two rows trip people up. A 74HC595 output that is high and an output that is "on" are the same thing, but a TPIC6B595 output that is "on" is pulling low. A 1 in the data still means "load on" for both chips, provided you wire the 74HC595 load from Q to ground. And the enable pins behave differently: OE high lets the 74HC595 outputs float, while G high firmly switches every TPIC6B595 drain off.

Data goes in the same way on both. Eight shift clocks move eight bits in, and one latch pulse moves them to the outputs together.

SERSRCKRCKoutputs101100108 rising edges shift 8 bits inold byte heldnew74HC595 names: SER, SRCLK, RCLK. TPIC6B595: SER IN,SRCK, RCK. All eight outputs change on the one RCK edge.
Figure 3. Loading one byte: eight rising edges on the shift clock, then one rising edge on the latch clock. The outputs hold the old byte until that edge.

The difference that decides it: whose supply does the load use?

A 74HC595 output is a logic pin. Whatever it drives gets its voltage and current from the chip's own VCC, and the whole chip shares 70 mA. Eight LEDs at 20 mA each would ask for 160 mA, more than twice that limit. At 70 mA across eight pins you get 8.75 mA each, and that is an absolute maximum, not a design target. The 74HC595 page works through the resistor for eight LEDs at TI's 6 mA test point.

A TPIC6B595 output is a switch to ground. The load connects between its own supply and the drain pin, so a 12 V LED string or a 24 V solenoid never touches the chip's 5 V rail. The chip only has to survive the current through the switch and the voltage across it when off.

So decide by where the load gets its power. If that is the 5 V logic rail and the current stays small, the 74HC595 handles it. If the load has any other supply, you need a switch, and the TPIC6B595 is eight switches with the shift register already attached.

Worked examples

1. Eight 12 V LED strings (TPIC6B595)

Example input, not a datasheet value: each string is three red LEDs in series at about 2.0 V each, so 6.0 V, and you want 20 mA per string from a 12 V supply. This is close to TI's own example on pages 14 and 15 of the datasheet, which uses a 12 V battery and 20 mA per LED.

Wire the LED anodes and resistors to +12 V and the cathode end of each string to one DRAIN pin.

  • Resistor, ignoring the chip: (12 − 6.0) ÷ 0.02 = 300 Ω
  • Voltage lost in the chip at 20 mA: 0.02 × 5.7 Ω = 0.11 V worst case at room temperature, 0.19 V at 9.5 Ω hot
  • Current with a 300 Ω resistor: 19.7 mA (4.2 Ω typ), 19.4 mA (9.5 Ω hot). The chip barely changes it.
  • Heat in the chip, all eight on: 8 × 0.02² × 5.7 = 0.018 W, about 1 °C of rise in a PDIP

That runs cold. A 74HC595 cannot do this job at all: its outputs stop at VCC, so it cannot switch a 12 V string, and 160 mA is past its whole-chip limit.

TI's own note on this circuit: if the LED supply is a car battery that swings from 9 V to 16 V, the current swings with it (14 to 28 mA in TI's 2 V LED case). Use a regulated supply or a constant-current LED driver if that matters.

+12 V300 ΩDRAIN0300 ΩDRAIN1300 ΩDRAIN2300 ΩDRAIN3DRAIN4to DRAIN7:the sameTPIC6B595(12 − 6.0) ÷ 300 Ω ≈ 20 mA per string, 0.018 W in the chipThe chip only switches each string to ground.
Figure 4. Example 1: each string is a 300 Ω resistor and three red LEDs from +12 V to one drain. About 19.7 mA per string, and 0.018 W in the chip with all eight lit.

2. A 12 V relay (TPIC6B595)

Example input, not a datasheet value: a 12 V relay with a 400 Ω coil.

  • Coil current: 12 ÷ (400 + 5.7) = 29.6 mA
  • Voltage lost in the chip: 0.17 V
  • Heat in the chip: 0.005 W

The relay connects between +12 V and a DRAIN pin, with no transistor and no base resistor. When the output turns off, the coil's kick-back drives the drain up until the built-in 50 V clamp catches it, and the coil's stored energy turns into heat inside the chip. TI rates one avalanche pulse at 30 mJ. A small relay is far below that, but if a relay or solenoid switches often, our practice is to add a diode across the coil anyway, so the energy goes back into the coil instead of the chip.

A 74HC595 needs help here: it would drive a transistor or a driver IC such as the ULN2003A, which TI rates at 500 mA per output and 50 V. That pairing works, but it is two chips and the ULN2003A has seven channels, so one of the 595's eight outputs is left without a driver. The ULN2003 vs L293D page shows that chip on a relay.

TPIC6B5953 SER IN13 SRCK12 RCK10 GND4 DRAIN02 VCC5 V micro-controllercommon ground+5 V+12 Vcoiloptionaldiode400 Ω coil: 12 ÷ 405.7 Ω = 29.6 mA, 0.005 W in the chipclamp: 50 V, 30 mJ
Figure 5. Example 2: the relay coil from +12 V to DRAIN0 (pin 4), the logic side on 5 V. The dashed diode is optional: it takes the switch-off energy away from the chip's clamp.

3. How much current with all eight on? (TPIC6B595)

TI rates 150 mA per output, all outputs on, with the case held at 25 °C. On a real board the case runs hotter. Example inputs: 40 °C air, and we keep the junction at 125 °C or below, which is our margin under TI's 150 °C absolute maximum. Use the hot on-resistance, 9.5 Ω.

  • Heat allowed, PDIP (57 °C/W): (125 − 40) ÷ 57 = 1.49 W, or 0.186 W per output
  • Current per output: √(0.186 ÷ 9.5) = 140 mA
  • Same sum for the SOIC (75.3 °C/W): 1.13 W in all, 122 mA per output

At the full 150 mA on all eight, the chip makes up to 1.71 W hot, which would put a PDIP junction near 137 °C and a SOIC near 169 °C in 40 °C air. The SOIC case is over the limit. So read 150 mA as a ceiling, plan for about 120 to 140 mA when all eight run continuously, and give the GND pins (10, 11, 19) plenty of copper. If only a few outputs are on at once, each one can carry more.

00.5 W1 W1.5 W2 WSOIC 1.13 WPDIP 1.49 W8 × 100 mA0.76 W8 × 120 mA1.09 W8 × 140 mA1.49 W8 × 150 mA1.71 W
Figure 6. Example 3: heat in a TPIC6B595 with all eight outputs at 100 to 150 mA (hot on-resistance 9.5 Ω), against what each package can shed at 40 °C air with a 125 °C junction.

4. A 3.3 V board (ESP32, Raspberry Pi Pico)

Neither chip lists a 3.3 V-input mode, so check the logic-high threshold.

  • TPIC6B595: logic high is 0.85 × VCC. Its VCC must be 4.5 V to 5.5 V, so it needs at least 3.82 V (at 4.5 V) or 4.25 V (at 5 V). A 3.3 V pin is below both. It will not read reliably, and TI says nothing works below 4.5 V of VCC.
  • 74HC595 on 5 V: TI asks for 3.15 V at VCC 4.5 V. A 3.3 V pin clears that by only 0.15 V, and the requirement rises with VCC (4.2 V at 6 V).
  • 74HC595 on 3.3 V: it runs from 2 V to 6 V, so power it from 3.3 V and it reads 3.3 V logic. Its outputs then swing to 3.3 V, which suits LEDs and logic at 3.3 V.

The fix for the TPIC6B595 on a 3.3 V board is a level shifter or buffer powered from 5 V whose input threshold accepts 3.3 V. Check that part's own datasheet for its logic-high figure. The logic levels lesson explains the thresholds.

Worked example in numbers

12 V string current
19.7 mA
Relay coil current
29.6 mA
All-on limit, PDIP at 40 °C
140 mA
TPIC6B595 logic high at 5 V
4.25 V

What happens if you swap them

They don't share a footprint (16 pins against 20), so you can't swap them by mistake on a socketed board. On a breadboard, the two traps are polarity and voltage. An LED wired from a 74HC595 output to ground does nothing on a TPIC6B595 because the drain can only pull down; rewire it from the supply to the drain. And a load on a 12 V supply connected to a 74HC595 pin breaks TI's rule that outputs are never pulled above VCC.

Pin numbers as on the DIP top view, notch at the top.
PartPinsVerdict
TPIC6B595 for a 74HC595different pinout (20 pins against 16)Not in the same socket. Rewire every load from its supply to a drain, and feed it 5 V logic.Texas Instruments TPIC6B595 Power Logic 8-Bit Shift Register (SLIS032D), p. 3; Texas Instruments TPIC6B595 Power Logic 8-Bit Shift Register (SLIS032D), p. 4
74HC595 for a TPIC6B595different pinout (16 pins against 20)Only for loads on the chip's own supply under a few mA each; a 12 V load on its pins breaks TI's rule.Texas Instruments SNx4HC595 8-Bit Shift Registers With 3-State Output Registers (SCLS041J), p. 14
74HC595 + ULN2003Atwo chipsDoes the TPIC6B595's relay and 12 V job, with seven driven channels instead of eight.Texas Instruments SNx4HC595 8-Bit Shift Registers With 3-State Output Registers (SCLS041J), p. 14
Advertisement

Which to buy

  • Buy the 74HC595 if you are adding outputs to a microcontroller for indicator LEDs, a seven-segment display at a few milliamps per segment, or the inputs of other chips. It works from 2 V to 6 V, so it also runs straight from a 3.3 V rail.
  • Buy the TPIC6B595 if the load has its own supply above 5 V or needs tens of milliamps or more, such as 12 V LED strings, relays and solenoids. It replaces a 74HC595 plus a driver chip and handles relay kick-back by itself. Its logic side needs a 5 V supply and 5 V logic.
  • If you already have 74HC595s and a ULN2003A in the parts box, the pair does the TPIC6B595's job for relays and 12 V loads. Expect one more chip and seven driven channels instead of eight.

Tips and checks

  • Pulse SRCLR low at power-up. TI suggests clearing the TPIC6B595 during start-up, and there it clears every register. On the 74HC595, SRCLR clears only the shift register, so follow it with one RCLK pulse to copy the zeros to the outputs.
  • Hold G (or OE) high until your first byte is latched, then pull it low. On the TPIC6B595 this keeps every load off while the microcontroller boots. On the 74HC595 the outputs float instead, so add a pull-down resistor on any output whose load must stay off.
  • Use G for dimming. TI notes that a PWM signal on the TPIC6B595's G pin dims all eight outputs together.
  • Check the pin number for SRCK yourself. The TPIC6B595 datasheet's pin table lists SRCK as pin 15, but its pinout drawing, logic symbol and test circuit all show pin 13 (pin 15 is DRAIN5). Pin 13 is correct.
  • Put a 0.1 µF capacitor at VCC on every chip in a chain. TI's 74HC595 sheet recommends it and its TPIC6B595 example uses it too.

What we'd do

For indicator LEDs and logic on a 3.3 V or 5 V board we'd use the 74HC595 and keep each output to a few milliamps. For anything on 12 V or 24 V, or any relay, we'd fit a TPIC6B595 on a 5 V logic rail, add a diode across coils that switch often, and plan for about 122 mA per output when all eight stay on.

Where to go next

The 74HC595 page has the full pin table, the resistor for eight LEDs and the cascade wiring. The TPIC6B595 page works TI's 12 V car LED panel and the relay kick the clamp absorbs. The MOSFET as a switch lesson explains what sits behind each TPIC6B595 drain, and driving a relay covers the coil kick-back from the inside.

Advertisement

One email a month from the bench

New circuits, lessons, part guides and calculators, on the first Sunday of each month.

We'll send one email to confirm. Every email has a one-click unsubscribe. Privacy policy

Used in these lessons

Lessons that go deeper

Datasheets this page was checked against

Makers revise datasheets. If the copy you download has a newer revision and a number here disagrees with it, the datasheet wins, and we would like to hear about it.