The 74HC165 is an 8-bit parallel-in, serial-out shift register used to expand microcontroller input pins. With just 2–3 signal lines, you can read 8 (or more, daisy-chained) digital inputs.
| Pin | Name | Function | Type |
|---|---|---|---|
| 1 | SH/LD | Shift or load select | I/O |
| 2 | CLK | Clock input | BUS |
| 3 | E | Parallel input E | I/O |
| 4 | F | Parallel input F | I/O |
| 5 | G | Parallel input G | I/O |
| 6 | H | Parallel input H | I/O |
| 7 | QH_bar | Complementary serial output | I/O |
| 8 | GND | Ground | GND |
| 9 | QH | Serial output | BUS |
| 10 | SER | Serial input for daisy-chain | BUS |
| 11 | A | Parallel input A | I/O |
| 12 | B | Parallel input B | I/O |
| 13 | C | Parallel input C | I/O |
| 14 | D | Parallel input D | I/O |
| 15 | CLK_INH | Clock inhibit, hold HIGH to stop | I/O |
| 16 | VCC | Supply voltage | PWR |