Components / Integrated circuits / 74HC595 Shift Register

74HC595 Shift Register

Serial-to-parallel output shift register.

Function8-bit serial-in, parallel-out shift register with latch
Supply voltage2 to 6 V
Inputs and outputs8 outputs, about 6 mA each comfortably (35 mA absolute max, 70 mA total)
SpeedClocks above 20 MHz at 5 V
Integrated CircuitsReviewedMPN SN74HC595NUsed in 13 projects
74HC595
In short

What is the 74HC595 Shift Register and what is it used for?

Serial-to-parallel output shift register. Makers use it to control multiple indicator LEDs.

In the real world

Extending digital output control

How it works

Integrated circuits combine multiple circuit functions. Always check the exact package, supply rails, pinout and operating conditions.

Key specifications

Integrated circuit specValue
Function8-bit serial-in, parallel-out shift register with latch
Supply voltage2 to 6 V
Inputs and outputs8 outputs, about 6 mA each comfortably (35 mA absolute max, 70 mA total)
SpeedClocks above 20 MHz at 5 V
PackageDIP-16 or SOIC-16
Watch out forTotal package current limit: do not drive 8 LEDs at 20 mA each

Pinout

15, 1 to 7Outputs QA (15), QB to QH (1 to 7)
8GNDGround
9QH'Serial out, to the next chip's DS
10SRCLRClear, tie HIGH
11SRCLKShift clock
12RCLKLatch clock
13OEOutput enable, tie LOW
14SERSerial data in
16VCCSupply

How to use it

Adds 8 outputs using 3 pins; chain more chips for 16, 24 and so on. Put a 100 nF capacitor across pins 16 and 8.

const int DATA = 11, LATCH = 8, CLOCK = 12;
void setup() { pinMode(DATA, OUTPUT); pinMode(LATCH, OUTPUT); pinMode(CLOCK, OUTPUT); }
void loop() {
  for (int i = 0; i < 8; i++) {
    digitalWrite(LATCH, LOW);
    shiftOut(DATA, CLOCK, MSBFIRST, 1 << i);
    digitalWrite(LATCH, HIGH);
    delay(150);
  }
}

Applications

Alternatives

Buy at

Common questions

What is the 74HC595 Shift Register used for?

In products: extending digital output control. In maker projects: control multiple indicator LEDs.

How does the 74HC595 Shift Register work?

Integrated circuits combine multiple circuit functions. Always check the exact package, supply rails, pinout and operating conditions.

What voltage does the 74HC595 Shift Register need?

2 to 6 V.

What can I use instead of the 74HC595 Shift Register?

CD4017 Counter.