Migrating designs from Stamp P24 to SX/28
geekything
Posts: 53
Hi all...
For my first 'real' product design, I've chosen to prototype using the Stamp 2P24 and then migrate the hardware and software to run on the SX/28 (using the SX/B Compiler, of course). I *think* this is relatively sensible as I have a Stamp 2P24 already and am now familiar with getting that to do what I want, but I'm open to heckles on this plan
My first question is what pitfalls might I encounter? I understand that SX/B creates inline assembly rather than bytecode, and that's actually preferable to me. I understand that there's only a subset (currently) of PBASIC commands. But is there anything that's relatively trivial in PBASIC that becomes a huge challenge requiring much assembly coding in SX/B?
Thanks in advance.
-marc
For my first 'real' product design, I've chosen to prototype using the Stamp 2P24 and then migrate the hardware and software to run on the SX/28 (using the SX/B Compiler, of course). I *think* this is relatively sensible as I have a Stamp 2P24 already and am now familiar with getting that to do what I want, but I'm open to heckles on this plan
My first question is what pitfalls might I encounter? I understand that SX/B creates inline assembly rather than bytecode, and that's actually preferable to me. I understand that there's only a subset (currently) of PBASIC commands. But is there anything that's relatively trivial in PBASIC that becomes a huge challenge requiring much assembly coding in SX/B?
Thanks in advance.
-marc
Comments
Can you tell a little about what the controller will be doing ?
Bean.
Seriously, though...it's a pretty simple design/application. A character LCD controller, SIRCS IR receiver (might implement RC5, too), some digital/analog I/O and USB communications via an FTDI USB chip to a host system. You can probably guess what it's for.
No DEBUG I can work around. EEPROM isn't a concern for me. And true interrupts would definitely assist this app, and I'd even break-out the assembly programming manual for that.
-marc
Bean.
Thanks for your input.
-marc
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
The project files include the schematic and board files for ExpressPCB, but instead of ordering boards yourself you can get a full kit for the project from Parallax in December.· The kit will include a production board (silkscreen and solder mask) and all the parts -- you supply a soldering iron and about 30 minutes of labor.
The code is entirely SX/B -- no assembly was required, and the board is able to have bi-directional communications with the BASIC Stamp.· Once the article is out I will attached the code to this post.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Is there a document that lists the specs for the AppMod protocol so that designers can use it when designing new AppMods?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
1) Uses open-true baudmode so that modules can be bussed without danger
2) Header starts with "!" -- this is used by some modules for auto-baud rate detection
3) Rest of header is usally two or three characters, sometimes with a module ID number.
For example, the line follower uses "!SLF" as the header. I just finished an LED multiplexer that uses "!SS8" as the header. The LED multiplexer will be publisehd in the January issue of Nuts & Volts. It uses an ISR to receive and buffer incoming serial data, as well as multiplex the LEDs (I used an 8-digit, 7-segment display).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·