...
• On Products Compliant to MIL-PRF-38535, All Parameters Are Tested Unless Otherwise Noted. On All Other Products, Production Processing Does Not Necessarily Include Testing of All Parameters.
Pins
Pin | Description |
---|---|
QA-QH | Data Output |
SER | Serial Data Input |
OE | Output Enabled (Active Low) |
RCLK (Latch) | Register Clock Input |
SRCLK (Clock) | Shift Register Clock Input |
SRCLR | Shift Register Clear (Active Low) Set High for normal Operation. |
Arduino Example Code
Code Block | ||
---|---|---|
| ||
//Define PinModes
pinMode (latchPin,OUTPUT);
pinMode (dataPin, OUTPUT);
pinMode (clkPin, OUTPUT);
pinMode (oePin, OUTPUT);
//disable output on SR
digitalWrite(oePin,HIGH);
//define data
byte data = 0;
//set or clear bits in our byte variable data
bitSet(data,bitToSet);
bitClear(data,bitToClear);
//write out to SR
digitalWrite(latchPin,LOW);
shiftOut(dataPIn,clockPin,LSBFIRST,data);
digitalWrite(latchPin,HIGH);
//Enable output on SR
digitalWrite(oePin,LOW);
|
Wiring
Add pull-ups to:
OE
SRCLK (Clock)
Add pull-downs to :
RCLK (Latch)
References
Reference | URL |
---|---|
Datasheet | http://www.ti.com/lit/ds/symlink/sn74hc595.pdf |
Shift Register Tutorial | https://learn.sparkfun.com/tutorials/shift-registers?_ga=2.36116968.935449524.1518383708-1496492250.1516240716 |
...