Taking pin high and low
dev/null
Posts: 381
I have a 74HC595 shift register. To prevent the latches from flickering at startup, I need a pull-up on the enable pin on the IC.
I set all latches to low, and then enable the IC.
This works, but I am wondering if the schematic is OK? (I'm newbie at eletronics)
I tried this circuit and it works. Code looks like this
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I set all latches to low, and then enable the IC.
This works, but I am wondering if the schematic is OK? (I'm newbie at eletronics)
I tried this circuit and it works. Code looks like this
HCBits = 0 ' Set all latches to low SHIFTOUT pHCIO, pHCCLK, MSBFIRST, [noparse][[/noparse]HCBits] ' Send the bits. LOW 12 ' Enable the 74HC595 PULSOUT pHCLtc, 1 ' Transfer to outputs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Your initialization "glitch" is better handled by using the /RESET line which will set all the outputs to zeros. Normally the /OE line is left with just the 10K pullup to Vdd.
If you have access to the reset pin on the Stamp, you would connect the /RESET line there so the 74HC595 would be reset whenever the Stamp is reset. The Stamp reset pin already has a pullup.
Post Edited (Mike Green) : 7/12/2009 2:57:26 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy