Sending Info from one Pin to another
Palastine
Posts: 12
Is there a command that take the output from one·pin in the propeller chip·and send to another pin in the propeller chip·to act as an output
for example i want to·take the·input from pin #1 and send it to pin 7 to produce the output.
Please help, thanks
for example i want to·take the·input from pin #1 and send it to pin 7 to produce the output.
Please help, thanks
Comments
In assembler you would so something like this
Thanks
If you wanted to get tricky and you can work with the signal being inverted, you could do something using one of the Counters.
All you have to do is run this once, and as long as the COG is kept alive doing other "stuff" the Apin will read the input value of the pin you assign, while the Bpin will reflect the INVERTED result of the value read·by the Apin.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I like·Beau's suggestion for another·reason:· This would really be useful if I needed an inverter or two and didn't want to add an inverter·chip or transistors to my design just for one or two inverters.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Post Edited (Ken Peterson) : 4/21/2008 1:55:19 PM GMT