Comparision between SX and BS
Jim McCorison
Posts: 359
I've started learning about microcontrollers and hom to interface them to the world using a BS2 with the WAM and BAAD Stamps in Class programs. I'm moving along pretty good. But the more I learn, and the more I read about the SX chips, I wonder if my project should be done using the instead. And now with the release of SX/B (my assembler is 25 years old, very very rusty, and for a IBM 370) I'm wondering even more.
Before I do up a comparision sheet between the various BS and SX chips, I thought I'd post and see it somebody has already done that.
Thanks,
Jim
Before I do up a comparision sheet between the various BS and SX chips, I thought I'd post and see it somebody has already done that.
Thanks,
Jim
Comments
Main advantages of the SX are: Execution speed, price, true interrupts.
Be aware that there are different versions of both the Stamp and the SX.
Bean.
I'd only go to the SX/B if you really need the speed and interrupts.
I don't think anyone has done the comparison sheet between the SX and BS2 yet. Since the SX runs at 50 MIPS, and the BS2 runs at 4 KIPS, it might be a difficult comparison to make.
A BS2 costs $50
A SX is less than $5
·· In all fairness, 50MIPS VS. 4KIPS isn't really a valid (Apples to Apples) comparison in my eyes.· For each instruction the BS2 executes (At 4 KIPS) the SX would need several instructions to do the same work, since we're comparing high-level instructions against individual machine-code instructions.· Somewhat trivial, I know, but the bottom line is that to do something useful, the SX will require several instructions.· Peace!·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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
·
Yes the sx requires more instructions to do the same work as a BS2. However, running an SX with a 50 MHz clock, the BS2 cannot come close to achieving the same speed as an SX.
Example, measuring pulse width with 1 uS resolution can easily be done with the SX, and that cannot be done on a BS2.
I completely understand your point though. I think part of the comparison comes down to....what is your time worth? Writing a simple program for the SX can easily take 10 times as long as the same on a BS2 (I have not tried using the SXB compiler yet)
ken
Although if I knew for sure that I'd get to the point of production I'd go ahead and take advantage of the current web specials on OEM modules at $30/each and buy a bunch. But that's down the road. I've still got some learning to do, make prototype, see what the intended users think of it, yadda, yadda, yadda.
Jim
Paul
Thanks for the feedback. I'd kind of been thinking about that possibility which is why I was wondering about a comparison.
There are lots of educational pieces available for the BS, like WAM, BAAD, and others from Parallax, as well as Matt Gilliland's Cookbooks. Not to mention the invaluable forums here. The BS seems like an excellent learning platform. And you're right, once you have a functional prototype, translating it to a similar platform wouldn't be too hard, as long as you didn't build the prototype around a specific feature of the proto platform. I guess I'll keep on the original plan with the BS, but keep an eye on the SX with the thought that is is the final target.
Cheers, and a Happy New Year to all,
Jim
Paul
By "create your own", you mean drop down to assembler. I may end up doing that if necessary.
At this point I'm still a ways away from even considering moving over to the SX. I still have little pesky things to do, like learn enough to figure out how to a masure a voltage difference of only a few millivolts between two 12vdc lines. That side is the challenging part for me. The software part is the fun side, not that the hardware isn't fun, just a bit of a learning curve.
Thanks,
Jim
Post Edited (Paul Baker) : 1/4/2005 3:48:33 PM GMT