Hi!
I am trying (and failing) to make my first shift register (74hc595) work. I've used a circuit on this page to connect it to my 20X2:
http://www.arduino.cc/en/Tutorial/ShiftOut
I think I've correctly connected it:
RCK to C.0 (clock)
RSCK to C.1 (latch)
SER to C.2 (data)
QA,QB and QC are connected to LEDs through 470 ohm resistors.
E is connected to ground and SRCLR (clear) to +5V.
Here is the code I am using:
What am I doing wrong?
I am trying (and failing) to make my first shift register (74hc595) work. I've used a circuit on this page to connect it to my 20X2:
http://www.arduino.cc/en/Tutorial/ShiftOut
I think I've correctly connected it:
RCK to C.0 (clock)
RSCK to C.1 (latch)
SER to C.2 (data)
QA,QB and QC are connected to LEDs through 470 ohm resistors.
E is connected to ground and SRCLR (clear) to +5V.
Here is the code I am using:
Code:
output dataPin
output latchPin
output clockPin
setfreq m8
main:
for b0=0 to 255
low latchPin
pause 10
shiftout clockPin,dataPin,5,(b0)
high latchPin
pause 1000
next b0
pause 1000
goto main