Pages: [1]   Go Down
Author Topic: Parallel In Serial Out Diasy Chaining  (Read 646 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So for my engineering design project, I have to read in 12 buttons using just 4 arduino pins. I know it's possible to do it using 2 Parallel In Serial Out Registers, but I have no idea how to daisy chain them together. Can someone help me? Also, how would the code work?
Logged

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12525
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In brief:

Serial out from one chip into serial in of the other, parallel the other control signals, parallel-load then clock for twice as many pulses...
Logged

[ I won't respond to messages, use the forum please ]

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

Or use a MCP23S17 or a better yet with only 2 pins a PCF8575.
Logged

Pages: [1]   Go Up
Jump to: