74LS165 8-bit parallel-in, serial-out shift register

The 74LS165 is an 8-bit shift register that loads eight bits at once from A–H and then shifts them out one at a time on QH. With SH/LD′ low it loads; with SH/LD′ high, each rising clock edge shifts the bits one place toward QH, bringing SER in at the other end.

74LS165 pinout

VCCSH/LD′CLK INHCLKDECFBGAHSERQH′QHGND1611521431341251161079874LS165

Top view of the 16-pin DIP package. Pin 1 is at the bottom left, beside the notch, and the numbers run anticlockwise. Power is on pin 16 (VCC, +5 V) and pin 8 (GND).

PinNameTypeWhat it is
1SH/LD′InputInput, active-low
2CLKInputInput
3EInputInput
4FInputInput
5GInputInput
6HInputInput
7QH′OutputTotem-pole output, active-low
8GNDGround0 V
9QHOutputTotem-pole output
10SERInputInput
11AInputInput
12BInputInput
13CInputInput
14DInputInput
15CLK INHInputInput
16VCCPower+5 V supply

74LS165 function table

74LS165 function table
SH/LD′CLK INHCLKWhat happens
0XXLoad A–H at once
11XHold
10↑Shift one place toward QH, SER in at A
100Hold

↑ is the clock's rising edge. CLK and CLK INH are interchangeable: either can be the clock while the other is held low.

What the 74LS165 is used for

  • Reading eight switches or buttons with three wires
  • Parallel-to-serial conversion
  • Expanding the inputs of a microcontroller, several chips chained through SER

Electrical summary

Package16-pin DIP
Supply voltage5 V (4.75 V to 5.25 V)
Output typeTotem-pole — drives both high and low
Output current, lowsinks up to 8 mA
Output current, highsources up to 0.4 mA
Input current, low0.4 mA out of each input held low
Fan-outone output can drive about 20 LS inputs

Typical figures for quick reference when planning a board. Check the manufacturer's datasheet for limits and timing before committing a design. The 74HC165 and 74HCT165 use the same pin numbers, with different electrical values.

The 74LS165 and the Breadboard Simulator

The 74LS165 is not in the Breadboard Simulator's parts library yet — this page is a reference. The simulator seats the gates, decoders, multiplexers, adders and buffers marked on the chips page, so the logic around a 74LS165 can be planned and wired there.

Related chips

Build it before you build it.

Seat real 74-series chips on a virtual breadboard, wire them and probe every pin.