This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Shift Registers

Read from and write to shift registers connected to Arduino® hardware

Shift registers are used to add additional inputs or outputs to an Arduino board. You can use the serial-in/parallel-out shift registers to control multiple outputs, or the parallel-in/serial-out shift registers to gather multiple inputs using one pin on an Arduino board. For example, you can control multiple LED lights using a single pin on an Arduino board. You can use the shift register functions to read or write serial data. The following shift registers are supported:

Create an Arduino object using arduino before you use shift register functions. See Connect to Arduino Hardware for more information.

Functions

shiftRegisterConnection to shift register on Arduino hardware
readRead data from shift register
writeWrite data to shift register
resetClear all outputs of shift register

Topics

Push Button Control with 74HC165 Shift Register

This example shows how to use the MATLAB® Support Package for Arduino® Hardware to collect large number of push button states with a 74HC165 8-bit parallel-in-serial-out shift register.

Control 7-Segment Display with 74HC595 Shift Register

This example shows how to use the MATLAB® Support Package for Arduino® Hardware to control a 1-Digit 7-Segment display with a 74HC595 8-bit serial-in-parallel-out shift register.

Control LEDs with 74HC595 Shift Register

This example shows how to use the MATLAB® Support Package for Arduino® Hardware to control multiple LEDs with two 74HC595 8-bit serial-in-parallel-out shift registers.