BS2 Output pin internal register
skylight
Posts: 1,915
Does the Basic Stamp control the output pins using internal registers the same way·like PLC's do? Reason i ask is that i'd like to do integer maths up to 8 bit and have the result entered into the output register so that it shows up as binary on pins P0 to P7 for example, without the need to have lookup tables or DATA statements holding the bits for each binary number up to 255 (too much typing) I have successfully achieved this with PLC's using simple instructions such as load binary result into memory address of output pin0's register and all the other binary bits set the corresponding output pins high/low,so wondered if the same was possible with a BS2 and how it would be achieved ie what is the memory address for Pin0?
Thanks in advance
Post Edited (skylight) : 4/5/2007 9:15:17 PM GMT
Thanks in advance
Post Edited (skylight) : 4/5/2007 9:15:17 PM GMT
Comments
Jeff T.
Jeff T.
Just a small correction. OUTS = P0-P15 (16 Ports).
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔