Pages: [1]   Go Down
Author Topic: About 74HC595 Shift Register  (Read 336 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 100
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

On a 74HC595 Shift Register is it mandatory to use the latchPin??
On the examples it says that you need to put it LOW so the output doesnt changes while you are sending info on it.

Code:
    // take the latchPin low so
    // the LEDs don't change while you're sending in bits:
    digitalWrite(latchPin, LOW);
    // shift out the bits:
    shiftOut(dataPin, clockPin, MSBFIRST, numberToDisplay); 

    //take the latch pin high so the LEDs will light up:
    digitalWrite(latchPin, HIGH);
but what if I don't care about sending gibberish until the last byte has been sent? Could I set the latch PIN on the Shift Reg to +5v so it is always receiving data? Would that work?
« Last Edit: August 16, 2012, 05:25:41 pm by Pancra85 » Logged

Offline Offline
Faraday Member
**
Karma: 65
Posts: 2523
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the RCLK, or "latch", is edge-triggered.
It doesn't have latched and unlatched states.
When it gets a low to high (transition), the shift register contents are then transferred to the output/s.

Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Offline Offline
Full Member
***
Karma: 0
Posts: 100
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, so three pins is obligatory
Thanks!
Logged

Pages: [1]   Go Up
Jump to: