Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: some thought of sn74hc595  (Read 1452 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So im reading the datasheet and im slightly confused about the two registers and usage, am I right in thinking the first register(rclk) would cycle in the new data without disrupting the outputs, then I hit the srclk and the 8bit output would be updated with the status of the first register?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 654
Posts: 35023
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes that is how it works. But the other way round srclk clocks the serial data and rclk clocks the data latch register.
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah ok, so if I wanted to only change one bit id clock the updated byte with sclk then hit rclk to actually set it up
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it easily possible to use a shift register like this without an mcu? Like a few buttons, rclk,sclk,ser maybe a switch on oe
I guess a 1uf or .1uf cap as a hardware debounce mainly the clk buttons
also if I set an arduino pins to input on those control lines do I need to have pull downs?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 131
Posts: 8690
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes it doesn't matter what you use to toggle the pins, switches are just fine as long as they are debounced as you say.

Quote
if I set an arduino pins to input on those control lines do I need to have pull downs?
Not really, but at power up there may be transient pulses on the pins so you may have to do a write to the SR to ensure it is in a known state.

If this is a problem you could also control the OE pin and not allow any hard outputs on the SR until you have initialised it. You could also have pullup/dn resistors on the SR outputs to cause a known state at power up.

______
Rob
« Last Edit: June 02, 2012, 12:52:17 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 654
Posts: 35023
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You also have the option of using the shift register clear input to put it into a known state after power up.
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, thx guys
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 654
Posts: 35023
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
if I set an arduino pins to input on those control lines do I need to have pull downs
My advice is never to use pull down resistors only pull ups.
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why is that? Is it more reliable or something?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 654
Posts: 35023
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My thinking on this is explained here:-
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That makes sense, thx
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 48
Posts: 2964
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is one thought left... By All Means Use A Pull-Down, only when it is needed directly...

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Define needed directly?
Logged

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: