
Originally Posted by
bbarney
I only seen the 6 cause I know Darrel doesn't miss anything

Uht-Oh, I'm getting a reputation. 

Originally Posted by
manjero
I changed my code to this: ...
That's getting closer, but Wait, there's More.
The Latch Pin should start out LOW.
Then after the SHIFTOUT, the data gets latched by toggling it High/Low.
The pause only adds up to about 6000 (6 seconds).
For 60 Seconds, you need 60,000.
And the 595 is a really fast chip. pause 10 and Pulsout aren't needed.
Code:
bvar = 255
LOW LPIN ; Latch Idles LOW
' Shift out 32 - 1's to 74HC595's
Shiftout DPIN, CPIN, MSBFIRST,[bvar, bvar, bvar, bvar]
HIGH LPIN ; Latch data to 595's outputs
LOW LPIN
Low DPIN ; Set Data to 0
Main:
pause 60000 ; Wait 1 minute
HIGH CPIN ; clock in a 0
LOW CPIN
HIGH LPIN ; Latch data to 595's outputs
LOW LPIN
GOTO Main
hth,
Bookmarks