74HC165 parallel-in shift register
Reads 8 buttons using three pins. Chain them for more.
Function8-bit parallel-in, serial-out shift register
Supply voltage2 to 6 V
Inputs and outputs8 inputs
PackageDIP-16
Integrated CircuitsReviewedMPN SN74HC165NUsed in 5 projects
In short
What is the 74HC165 parallel-in shift register and what is it used for?
Reads 8 buttons using three pins. Chain them for more. Makers use it for many buttons on few pins.
How it works
Eight flip-flops load in parallel, then shift out one bit per clock.
Key specifications
| Integrated circuit spec | Value |
|---|---|
| Function | 8-bit parallel-in, serial-out shift register |
| Supply voltage | 2 to 6 V |
| Inputs and outputs | 8 inputs |
| Package | DIP-16 |
Pinout
1SH/LD, LOW loads the inputs
2CLK
3to 6Inputs E, F, G, H
7QH inverted output
8GND
9QH serial output
10SER serial input for chaining
11to 14Inputs A, B, C, D
15CLK INH, tie LOW
16VCC
How to use it
Pulse SH/LD LOW to capture all eight inputs, then read QH and pulse CLK eight times with shiftIn(). Give each button a 10 kΩ pull-up. Chain chips by connecting QH to the next chip's SER.
Applications
Many buttons on few pins
Builds that use it
Alternatives
- 74HC595 Shift RegisterOutput version
- MCP23017 16-bit I/O expanderI2C inputs with interrupts
Common questions
What is the 74HC165 parallel-in shift register used for?
In maker projects: many buttons on few pins.
How does the 74HC165 parallel-in shift register work?
Eight flip-flops load in parallel, then shift out one bit per clock.
What voltage does the 74HC165 parallel-in shift register need?
2 to 6 V.
What can I use instead of the 74HC165 parallel-in shift register?
74HC595 Shift Register and MCP23017 16-bit I/O expander.
