Pages: [1]   Go Down
Author Topic: Updating one shift register in a daisy chain  (Read 631 times)
0 Members and 1 Guest are viewing this topic.
France
Offline Offline
Edison Member
*
Karma: 37
Posts: 1005
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello smiley

I'm trying to write a "more efficient" library for the 74HC595 shift registers.

I was trying to make a function "update( device )" which would update only the byte of the specified shift register. But I feel that, by design, the shift registers do not allow that, and that I'm forced to update the bytes of every registers in the chain, even if I just change a single bit of a single shift register.

Am I right assuming I can't update a single shift register?

Note: I don't totally understand how those shift registers work, I'm just rewritting an existing library smiley
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 533
Posts: 26951
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You are correct.  Use SPI, blast the whole chain out really quick.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 145
Posts: 5460
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to write a "more efficient" library for the 74HC595 shift registers.
...
Note: I don't totally understand how those shift registers work

It might be a good idea to find out...

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

France
Offline Offline
Edison Member
*
Karma: 37
Posts: 1005
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks smiley
Logged

Pages: [1]   Go Up
Jump to: