PDA

View Full Version : BS2xx on BOE



Johnny-5
11-28-2006, 03:58 PM
will all the BS2 family stamps work with the BOE?

Zoot
11-28-2006, 09:54 PM
Yes, except the BS2p40 which has too many pins to fit in the socket on the BOE. Don't forget to change your timings in your programs or use conditional compilations (the time values for PULSOUT, PULSIN, FREQOUT, etc. are different from Stamp to Stamp).

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST

Johnny-5
12-01-2006, 02:23 AM
wouldnt u just use {$STAMP BS2p} or what ever stamp it is?

Chris Savage
12-01-2006, 02:31 AM
Johnny-5,

You would of course need to change the Stamp Directive for your programs based on which module you have, but other changes may need to be made to existing code depending on the module as well. For example, if you have BS2 code and you use a BS2p, just changing the directive won’t make the code work properly. Some timing dependant commands have different values for certain parameters. For example, PULSOUT values will be different and have to be adjusted for the BS2p. I hope this helps. Take care.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support

Tom Walker
12-01-2006, 02:46 AM
..as always, the parameter changes can be handled by smart (symbolic) coding and using the conditional compilation framework that Jon Wiliams published. Sorry, I don't have a link handy, but if you do a search on "conditional compilation", I'll bet it pops up...using the google search, of course.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...

Chris Savage
12-01-2006, 06:21 AM
Tom,

In most cases you’re correct. There are a few small cases where changing the BASIC Stamp Model requires more than just changing parameters and constants, especially if the code is based on the resolution or range of those values and they change significantly. For example, notice that the PULSIN command on the BS2 can measure a pulse width up to 131.07 mS, but the BS2sx, BS2p and BS2px can only measure up to 52.428 mS. I hope this information helps. Take care.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support