Shift out with 74HC595
Sabai
Posts: 27
I need help, I cannot get a simple thing to work.
This is my sub to shift out.
Out_595:
DEBUG CRSRXY, 10, 2, BIN8 pattern
SHIFTOUT SerData, ClockB, MSBFIRST, [noparse][[/noparse]pattern] ' send pattern to '595
PULSOUT Latch, 5
INPUT SerData ' latch outputs
RETURN
I call the sub with this.
pattern = %00000001
GOSUB Out_595
Nothing is happening what do I do wrong here???
B
This is my sub to shift out.
Out_595:
DEBUG CRSRXY, 10, 2, BIN8 pattern
SHIFTOUT SerData, ClockB, MSBFIRST, [noparse][[/noparse]pattern] ' send pattern to '595
PULSOUT Latch, 5
INPUT SerData ' latch outputs
RETURN
I call the sub with this.
pattern = %00000001
GOSUB Out_595
Nothing is happening what do I do wrong here???
B
Comments
What you've posted looks like it should work. Check your connections
LOW Latch
pattern = %00000001
GOSUB Out_595
If I run example 25 is it working so I guess all conections are correct.
B
What do you mean by "working" or "not work"?
Like I said, what you've shown looks like it should work. There must be something else you're not showing us that's not working.