Cover image for Shift Registers

Shift Registers

Shift registers are a type of sequential logic circuit used to store and transfer data. They are often used to reduce the number of GPIO pins needed from a Microcontroller, such as the Arduino or Raspberry Pi Pico to control another device, such as a keyboard or keypad.

Robot Tips Shift Registers SN74HC595 How it works

18 January 2023 by Kevin McAleer | Share this article on


Shift registers are a type of sequential logic circuit used to store and transfer data. They are often used to reduce the number of GPIO pins needed from a Microcontroller, such as the Arduino or Raspberry Pi Pico to control another device, such as a keyboard or keypad.

They are typically composed of a number of flip-flops, each of which is capable of storing a single bit of data. The data is transferred in and out of the register through a series of clock pulses. Each pulse shifts the data one bit at a time, either to the left or right, depending on the type of register used.

Shift registers are commonly used in communication and audio/video systems to store and transmit data in a serial format. They can also be used to convert parallel data into serial data and vice versa.

SN74HC595

This SN74HC595 is common shift register that takes a serial input (SPI) of 1 byte (8 bits) and then output those digital bits onto 8 pins. They can be chained together, for example, putting three in a row with the serial output of one plugged into the serial input of another to make 3 x 8 = 24 digital outputs.


Video

In this video I show you how to use shift registers to reduce the number of pins required to control several seven segment displays.


Did you find this content useful?


If you found this high quality content useful please consider supporting my work, so I can continue to create more content for you.

I give away all my content for free: Weekly video content on YouTube, 3d Printable designs, Programs and Code, Reviews and Project write-ups, but 98% of visitors don't give back, they simply read/watch, download and go. If everyone who reads or watches my content, who likes it, helps fund it just a little, my future would be more secure for years to come. A price of a cup of coffee is all I ask.

There are a couple of ways you can support my work financially:


If you can't afford to provide any financial support, you can also help me grow my influence by doing the following:


Thank you again for your support and helping me grow my hobby into a business I can sustain.
- Kevin McAleer