i have a project that im working on that requires 5bit bi-directional databus (parallel) and a 5 bit address bus.. to make matters worse I need to generate a strobe to say "data valid" when you read or write, and of course a r/w line..
I think that I can use a few pins to do data out via a 74ls595 shift register for my address bus.. (just hook up the first 5 bits)
DS (pin 14) to Ardunio Digital Pin 12
SH_CP (pin 11) to Ardunio Digital Pin 11
ST_CP (pin 12) to Ardunio Digital Pin 10
and then use 5 digital pins for my databus they are called A - E
A to Ardunio Digital Pin 0
B to Ardunio Digital Pin 1
C to Ardunio Digital Pin 2
D to Ardunio Digital Pin 3
E to Ardunio Digital Pin 4
RW to Ardunio Digital Pin 5
ST to Ardunio Digital Pin 6
a write from the Arduino to 'Scanner':
shift out address via pins 10, 11, 12
output 5bits word via pins 0, 1, 2, 3, 4
output W (low) via pin 5
output ST (low) via pin 6
a read should be the same thing but out W (high)
Comments Please
Cris H.
btw Im going to trigger a Schmidt Trigger do generate the strobe.. 8)