74HC595 Shift Register: 6 Essential Pins Explained Clearly

Share:
Digital Electronics
74HC595 Shift Register: 6 Essential Pins Explained Clearly

Three wires from a microcontroller can drive dozens of LEDs or relays, thanks to one small serial to parallel chip.

Serial In Parallel Out Latch Daisy Chaining Output Expansion

The 74HC595 shift register receives data one bit at a time and presents it on eight parallel outputs. Its built in latch lets all outputs change together, and chips can be chained for more outputs.

Hello everyone, today we are going to learn how the 74HC595 shift register works, what each control pin does, and how to chain several chips while staying inside safe current limits.
74HC595 shift register

What Is the 74HC595 Shift Register?

The 74HC595 shift register is an 8 bit serial in, parallel out logic IC with a separate storage register and three state outputs. It is built from the same flip flops described in flip flop types.

Data enters one bit per clock pulse, shifting along an internal chain of eight stages. A second clock then copies the whole byte into an output latch in one step.

Pinout diagram of an 8 bit serial in parallel out shift register IC
Image credit: Last Minute Engineers

Because the outputs update only when the latch clock arrives, LEDs or relays never show half shifted patterns. That is the key advantage over simpler shift registers.

The idea is the same as the software shift instructions in PLC shift registers, but done in hardware at very high speed.

6 Essential Pins and Their Jobs

1
SER
Serial data input where each new bit enters.
2
SRCLK
Shift clock, moves data one stage on each rising edge.
3
RCLK
Latch clock, copies the shift register to the outputs.
4
OE
Output enable, active low, turns all outputs on or off.
5
SRCLR
Clear, active low, resets the shift register to zero.
6
QH Prime
Serial output that feeds the next chip in a chain.

In many simple projects, OE is tied to ground and SRCLR to the supply, leaving just SER, SRCLK and RCLK. That is how three microcontroller pins control eight outputs.

Driving OE with PWM dims all outputs together, a handy trick for LED displays. Pulling SRCLR low clears the internal register, but outputs change only after the next latch pulse.

How Data Moves Through the Chip

Set SERPlace the next bit on the data pin
Pulse SRCLKBit shifts into stage 1, others move along
Repeat 8 TimesFull byte now in the shift register
Pulse RCLKByte copied to the output latch
Outputs UpdateQA to QH change together

This is a classic sequential circuit, where each clock edge moves the state forward. The first bit sent ends up on QH, and the last bit sent sits on QA.

On Arduino, the shiftOut function handles the clock and data sequence. Other controllers use SPI hardware, which is a natural fit for this kind of serial communication.

Update Time and Current Formula

Bits = 8 × Number of chips
Update time ≈ Bits ÷ Clock frequency
Total current = Outputs on × Current per output

Worked example:
3 chained chips = 24 outputs
Clock = 1 MHz, update time ≈ 24 µs plus latch pulse
8 LEDs on one chip at 10 mA each = 80 mA
80 mA exceeds the 70 mA package limit, so use 5 mA LEDs or drivers

The TI datasheet gives an absolute maximum of about 35 mA per output and 70 mA through the supply or ground pin. Designing near those numbers shortens chip life.

For relays, motors or bright LEDs, add transistor or MOSFET drivers on each output. Our LED working principle guide shows how to pick series resistors.

Daisy Chaining the 74HC595 Shift Register

Connect QH prime of the first chip to SER of the second and share SRCLK and RCLK between all chips. Now 16 bits must be clocked in before the latch pulse.

Each added chip gives eight more outputs without using extra microcontroller pins. Long chains simply take a little longer to update.

Keep clock lines short and add a decoupling capacitor near every chip. Noisy clocks cause random bits to shift, which shows up as flickering outputs.

74HC595 vs Other Output Expanders

OptionInterfaceOutputsBest For
74HC5953 wire serial8 per chip, chainableLEDs, displays, simple outputs
I2C expander2 wire I2C8 or 16Shared bus, fewer wires
Decoder ICParallel addressOne active outputSelecting one line at a time
LED driver ICSerial16 or more with current controlLarge LED matrices

A decoder activates just one output at a time, as explained in encoder vs decoder. The shift register can turn on any combination.

For inputs, the matching part is a parallel in, serial out register such as the 74HC165.

Typical 74HC595 Shift Register Uses

LED Bar Graphs
Level indicators and meters.
Seven Segment Displays
Driving digits with few pins.
Relay Boards
Through transistor drivers.
LED Matrices
Row or column drive in cubes and signs.
Status Panels
Many indicator lamps from one controller.
Education Kits
Learning serial to parallel conversion.

Pairing a microcontroller with these chips is one of the first expansion tricks students learn.

For industrial outputs, use proper driver ICs or relay modules with isolation rather than driving loads directly.

Chain and Current Calculator

Outputs, Update Time and Current
Result
24 outputs, 24.0 µs update, 80 mA per chip, above 70 mA limit

Reduce LED current or add drivers until the result stays within the limit. Check the exact values in your supplier datasheet.

Advantages
  • Many outputs from three pins.
  • Latched, glitch free updates.
  • Easy daisy chaining.
  • Low cost and widely available.
Limitations
  • Limited output current.
  • Serial update adds small delay.
  • No built in current control for LEDs.
  • Needs drivers for heavy loads.

SN74HC595 Datasheet PDF

PDF
SN74HC595 8 Bit Shift Register Datasheet
Texas Instruments datasheet with timing, pinout and absolute maximum ratings

Shift Register Explained Video

74HC595 Shift Register FAQ

What does the 74HC595 shift register do?
It converts serial data into eight parallel outputs with a latch.
How many pins does it need from a microcontroller?
Usually three, data, shift clock and latch clock.
What is the latch for?
It updates all outputs together so no partial patterns appear.
Can I chain several chips?
Yes, by connecting QH prime to the next SER.
How much current can it supply?
About 35 mA per pin and 70 mA per chip as absolute maximums.
What does OE do?
It enables or disables all outputs, and can be used for PWM dimming.
What chip reads many inputs?
The 74HC165 parallel in, serial out register.

Related Articles

External References

What We Learn Today

  • Serial bits shift in on SRCLK and appear together on the outputs after RCLK.
  • Chaining chips adds eight outputs each without extra controller pins.
  • Respect the per pin and total current limits or add drivers.
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!

Leave a Reply

Your email address will not be published. Required fields are marked *