Загрузка страницы

The 74HC595 shift register

A quick demo on how to hook up a shift register, and how to daisy-chain it. I realize there is some information missing, so look below.

Models: 74HC595 54HC595

Pin information
QA - QH: Data pins with resistor and LED
QH' : Bit to fall off

VCC, SRCLR: +5V
GND, OE: 0V

SER: Data pin
RCLK: Latch pin
SRCLK: Clock pin

Arduino code:
#define DATA_PIN 11
#define LATCH_PIN 12
#define CLOCK_PIN 13

void setup() {
pinMode(DATA_PIN, OUTPUT);
pinMode(LATCH_PIN, OUTPUT);
pinMode(CLOCK_PIN, OUTPUT);
}

// To push a byte (8bits) out
digitalWrite(LATCH_PIN, LOW);
shiftOut(DATA_PIN, CLOCK_PIN, MSBFIRST, value);
digitalWrite(LATCH_PIN, HIGH);

Видео The 74HC595 shift register канала krakkus
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
3 июня 2023 г. 0:21:09
00:02:19
Яндекс.Метрика