help on using different BS2 models
I'm considering switching from my BS2 to a "BS2p 40pin" and i have a few questions.
1. I know the BS2p is faster; so how would i go about converting "PULSOUT" commands
like "PULSOUT 750" to "PULSOUT ???"
2. The BS2p 40pin has more IO pins; so how would i go about using one of those AUX pins?
Thanks,
Miles
1. I know the BS2p is faster; so how would i go about converting "PULSOUT" commands
like "PULSOUT 750" to "PULSOUT ???"
2. The BS2p 40pin has more IO pins; so how would i go about using one of those AUX pins?
Thanks,
Miles
Comments
2) Read the descriptions of the AUXIO and MAINIO statements. Essentially, the BS2p40 has two banks of 16 I/O pins and one bank can be accessed at a time using the standard I/O pin numbering using 0-15. The default bank is selected by using MAINIO and the other bank is selected by using AUXIO.
2. I looked up AUXIO in my "Basic Stamp Syntax and Reference manual" and found info on "Page 129-131" and now i fully under stand.
Thanks Mike,
your ALL WAYS a great help [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Some of the Stamp statements that use timing, like PAUSE, are independent of the Stamp model used because the time is stated in milliseconds.
Most of the Stamp statements that use timing use an arbitrary unit which is 2us on the BS2, BS2e, and BS2pe and 0.8us on the BS2sx, BS2p, and BS2px. You have to adjust the numbers that you use for these statements to fit the unit used. I showed how you'd change a PULSOUT statement. The same would hold true for a PULSIN statement which sets its variable to the number of units that the input pulse takes. A 1ms input pulse would produce a value of 500 on a BS2. It would produce a value of 1250 on a BS2p40.