What Is the 74HC165? Parallel-to-Serial Shift Register (Input) and Uses
The 74HC165 is an 8-bit shift register that converts parallel inputs to a serial output (PISO). It is used to read many buttons/switches/digital inputs with few microcontroller pins. It is the inverse of the 74HC595: the 595 expands outputs, the 165 expands inputs. First LOAD latches the inputs, then clock reads them serially; unused inputs need a pull-up/pull-down.
The 74HC165 is a shift register that converts parallel inputs to a serial output (PISO — parallel-in, serial-out). It is used to read many digital inputs (buttons/switches) with few microcontroller pins. For the concept, see what is a shift register.
What is the 74HC165 used for?
Reading many buttons/switches/digital sensors with few pins. It is the inverse of the 74HC595: the 595 expands outputs (SIPO), the 74HC165 expands inputs (PISO). Chained, 8, 16, 24… inputs are read over a single SPI-like line.
Specifications
| Parameter | Value |
|---|---|
| Type | Parallel-in → serial-out shift register (PISO) |
| Width | 8-bit (chainable) |
| Interface | Serial (load/clock/data) — SPI-like |
| Supply | 2 – 6 V (HC family) |
Watch out
First a LOAD (PL) pulse latches the parallel inputs into the register, then they are read serially by clock. Unused inputs must not be left floating (pull-up/pull-down); otherwise random values are read. The HC family is CMOS; mind input levels and ESD.
Equivalents
- 74HC595: the inverse function (output expansion, SIPO).
- CD4021: a similar PISO shift register (CMOS).
- MCP23017: an I²C GPIO expander (input+output).
Find it in our catalog
Use the 74HC165 search.