74HC165 Shift Register to Read 8 Buttons or Switches With Only 3 Pins

Rs. 35 - Out of stock - SKU ABH-ICS-0142 - Brand Generic

The 74HC165D is an 8-bit parallel-in, serial-out shift register in an SOP-16 package. It lets a microcontroller read 8 inputs, such as buttons, switches or DIP settings, using just 3 pins, and can be chained for more.

Delivery anywhere in Pakistan for a flat Rs. 250 paid in advance, product price Cash on Delivery. 7-Day Checking Warranty.

Key features

Specifications

Part number74HC165D
Function8-bit PISO shift register
Supply voltage2-6V
Max clockapprox. 25MHz at 4.5V
PackageSOP-16
Operating temperature-40 to 85 C

What's in the box

Use cases

Description

Overview

The 74HC165 is the input counterpart of the famous 74HC595. It captures 8 parallel inputs at once and shifts them out serially. Chain several chips and you can read 16, 24 or even 64 inputs with the same 3 pins.

How it works

  1. Pull SH/LD low to load all 8 inputs
  2. Set SH/LD high
  3. Clock out the bits on QH with CLK

Arduino's `shiftIn()` function or SPI can read it quickly.

Uses

Tips

Add 10k pull-up or pull-down resistors on each input so they never float. Tie CLK INH low if you are not using it.

Package

This is the SOP-16 (SMD) version. For breadboards, use the DIP-16 74HC165N or an SOP-to-DIP adapter.

Frequently asked questions

What is the difference between 74HC165 and 74HC595?

The 74HC165 adds inputs (parallel in, serial out). The 74HC595 adds outputs (serial in, parallel out).

Can I chain several 74HC165 chips?

Yes. Connect QH of one chip to the SER input of the next.

Does it work with ESP32 at 3.3V?

Yes. It runs from 2-6V.

In-stock alternatives and related products

All Integrated Circuits (ICs)