Pages: [1]   Go Down
Author Topic: [SOLVED]Shift Register  (Read 1053 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone, i come from electricians world. This question may sound stupid for you all, but when i try to start here i need to understand some things. 1st one is to know exactly what things can a shift register do and not do with an arduino in particular, so here is the question.

¿Do communicate in both directions, i mean, is it possible to get more inputs and outputs with a shift register or just only outputs?


Thanks for your time.
« Last Edit: February 17, 2011, 07:15:20 am by Artai Esculta » Logged

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

Quote
is it possible to get more inputs and outputs with a shift register or just only outputs?
You can do both but not with the same chip.

SRs (normally) take 8 inputs and shift them out serially one bit at a time, OR they accept 1 serial input and present the data as 8 outputs.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17262
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on the specific shift registers you select. Most are either serial in/parallel out for providing more digital output pins. Others are parallel in/serial out for providing more digital input pins.

There were older TTL chips avalible that could do both if wired and controlled correctly, but most only held 4 bits per package and not really that easy to work with for arduino projects.

Logged

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

Reading these should sort you out
http://arduino.cc/en/Tutorial/ShiftOut

http://arduino.cc/en/Tutorial/ShiftIn
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot mates!
Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11672
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
There were older TTL chips avalible that could do both if wired and controlled correctly, but most only held 4 bits per package and not really that easy to work with for arduino projects.

The 74HC299  8-bit SR can shift either way and has parallel load and parallel tri-state output, so its pretty flexible.  However it doesn't have latches like the 74HC595 (which is only serial->parallel).
Logged

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

Pages: [1]   Go Up
Jump to: