Serial to digial?
I'm not really sure of the term, but i'm looking for something to translate a serial signal (from a stamp or pc) to digital outputs high/low and possibly some high/low inputs. It would be great of they were addressable and could daisy chain them together also. Any suggestions?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
A serial to parallel shift register will probably do what you want. Just make sure not to exceed the output pin current rating. One SHIFTOUT (clk line + data line) can control up to 8 devices, but they can be cascaded.
I hope that's what you were looking for.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
any experience with the ti 74ALS164A?
http://www.alldatasheet.com/datasheet-pdf/pdf/28280/TI/SN74ALS164AD.html
At the Stamp end of things your serin would recieve the value 5 in a variable say "sData", if your outputs were P0 P1 P2 and P3 then to activate the outputs you would do OUTA=sData which would set P0 and P2 high and P1 and P3 low.
Back at the PC if you pressed button 1 a second time it would subtract the value 1, 5-1=4 or binary %0100, send that information down the line and you set P2 high and P0 P1 and P3 low. etc etc.
Jeff T.
experiment #23 and #24 on the stamp works text version 2.1 ... look at that...
thanks guys!
http://www.parallax.com/Portals/0/Downloads/docs/books/sw/Web-SW-v2.1.pdf
http://forums.parallax.com/showthread.php?p=641605