LabWired The easy way to build hardware
SPI device

74HC165 Shift Register

The 74HC165 Shift Register is an SPI device in the LabWired part catalog. Its catalog type is sn74hc165. It connects to the MCU over SPI. It has 13 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

Key facts

CategorySPI devices
Catalog typesn74hc165
InterfaceSPI
Pins13
DatasheetTexas Instruments SN74HC165 datasheet

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

74HC165 Shift Register pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
CLK Input SPI clock (SCK)
QH Output SPI data into the MCU (MISO)
SH_LD Input SPI chip select (CS)
D0 Input —
D1 Input —
D2 Input —
D3 Input —
D4 Input —
D5 Input —
D6 Input —
D7 Input —

How to simulate the 74HC165 Shift Register in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the 74HC165 Shift Register (catalog type sn74hc165).
  3. Connect VCC and GND to the supply and ground of the board.
  4. Connect CLK and QH to the SPI pins of the board.
  5. Connect SH_LD to the chip-select pin of the board, or to a free GPIO.
  6. Connect D0, D1, D2, D3, D4, D5, D6 and D7 as your circuit needs.
  7. Run the firmware. It selects the part and moves bytes over the simulated SPI bus as on hardware.

Related SPI devices

All SPI devices · All parts

Modelled from Texas Instruments SN74HC165 datasheet.