Shift Register Question
![Spragmatic](https://forums.parallax.com/uploads/userpics/667/nGXST42NL48C7.jpg)
Wondering if anyone has an example code for adding a shift register to a project I'm building.· I'm using it to control some L.E.D.'s.·
I see there is an example code for the Basic Stamp in the StampWorks manual, but not sure if it's the same on the SX using SX/B?
Thanks!!· Greg
I see there is an example code for the Basic Stamp in the StampWorks manual, but not sure if it's the same on the SX using SX/B?
Thanks!!· Greg
Comments
Readup on PULSOUT (for your latch) and SHIFTOUT in the SX/B help. The hook up and use is essentially the same as the '595 examples and such for the Stamps.
Note that the SX has one bonus -- you can up the clock rate on SHIFTIN/SHIFTOUT -- if you are sending lots of data to the shift registers you can make it blazingly fast compared to the (relatively) slow Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Post Edited (JonnyMac) : 8/24/2008 2:09:33 AM GMT