Basic Compiler
Basic Jim
Posts: 106
Hello all,
I have been self teaching myself the BS2 for the last three months and I am getting ready to dive into some real projects. Although I love the BS2 for developing a project it would be too expensive to include it in every widget I build. From what I understand, and please let me know If I'm wrong. I could buy a basic compiler like the one being sold on ebay right now·at·http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=7508634509&rd=1&sspagename=STRK%3AMEWA%3AIT&rd=1
And I could then purchase a bunch of·SX chips for a couple bucks each and program them to do the job my pricey BS2 was doing. I don't know assembly language and I would preffer not to spend a lot of time to learn it. (unless parrallax sells a learning assembly for dummies kit.)
1. Now, If I'm right where the program is already compiled and the SX chip runs at 20 mhz the program should execute faster?
2. Would the SX chip require external hardware to work unlike the BS2 that has everything self contained? reading the description it sounds like it does.
Whats the best way for a newbie to break into the SX world?
Thanks,
Jim W.
I have been self teaching myself the BS2 for the last three months and I am getting ready to dive into some real projects. Although I love the BS2 for developing a project it would be too expensive to include it in every widget I build. From what I understand, and please let me know If I'm wrong. I could buy a basic compiler like the one being sold on ebay right now·at·http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=7508634509&rd=1&sspagename=STRK%3AMEWA%3AIT&rd=1
And I could then purchase a bunch of·SX chips for a couple bucks each and program them to do the job my pricey BS2 was doing. I don't know assembly language and I would preffer not to spend a lot of time to learn it. (unless parrallax sells a learning assembly for dummies kit.)
1. Now, If I'm right where the program is already compiled and the SX chip runs at 20 mhz the program should execute faster?
2. Would the SX chip require external hardware to work unlike the BS2 that has everything self contained? reading the description it sounds like it does.
Whats the best way for a newbie to break into the SX world?
Thanks,
Jim W.
Comments
I would highly recommend buying it directly from the source, and make sure you register immediately it as well:
http://www.melabs.com/
I DIDN'T heed that advice, and thought I could save myself a few bucks by purchasing what was an "opened box" product. Once I went to purchase the next update, I found out how WRONG I WAS! There some rather strict proof of ownership restrictions, and rightfully so, since it is a propriety product. I just wish I'd known that at the outset and hadn't tried to cut corners. Mine was a legitimate copy, but it was unfortunately a return which was then re-packaged apparently.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ken
Having gone to the web site It is only $10.00 more to buy from the company. So, If I go that way I'll get it directly from them.
I take it you can progran the SX line of chips using this compiler?
Jim W.
http://www.parallax.com/sx/sxb.asp
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ken
Don't forget to buy a buy a resonator/oscillator for the SX48/SX52 Prototype boards (unless you want to run them on the internal 4 MHz clock).
Forrest already pointed out our SX48/52 Proto Boards. These boards are very well designed with lots of customer input and they're very low cost at $10.00 each. I don't think you could find a surface-mounted microcontroller on a development board elsewhere for this cost. Maybe this is because we have a silly marketing policy on this product (it is a treat for our customers!).
If you feel that 48/52 pins is too many, then you can use the SX Tech Tool Kit's SX28AC/DP SX Tech Board. This is like the Board of Education you've already used with the BASIC Stamp.
The SX/B compiler supports all SX chips.
I built my first SX/B project on the SX Tech Board. It's a simple input/output project with a piezo sensor and a blue seven-segment LED. Each "flick" of the film would increment the seven-segment LED once. I didn't use the SX's interrupts or run at 50 MIPS, but that's beside the point. I was just seeing how a Stamp user could do a simple project with SX/B. And it was a success. I'd post my code, but it's buried somewhere in another forum·(our forum search engine stinks).
From my standpoint·the SX is·a general purpose controller made easy to use with great tools from Parallax. Parallax support is one reason to use the SX. The SX/B compiler·has most all the·commonly used Stamp commands, except where SX architecture dictates a different approach or involves features not present in a BASIC Stamp.
Once you get to the SX forum you'll find lots of really skilled SX programmers for assistance, along with a handful of SX/B gurus. Also, read past postings from BASIC Stamp programmers who are in the same position as you.
And if it doesn't work out then simply return the SX Tech Tool Kit to Parallax.
Sincerely,
Ken Gracey
Parallax, Inc.
If you purchased PICBasic, you'd STILL need some programming board, and some programming interface, to actually put your program into a PIC chip. And THEN you'd still need the support circuits (resonator, capacitors, a pull-up resistor for reset, a MAX-232 chip for communication). Other's have done this, and it's not too hard nor too expensive.
However, if you can do all of the above with an SX, with a $100 programmer and board, with the SX/B language, AND have $10 target boards -- well, go for the SX, I say.
If I had just bought the Picbasic compiler alone it would have cost me $249.00 without any hardware at all. Thanks to all of you for your inputs. I'm confident I made the best decision. Now I won't be able to sleep until the UPS truck comes around.
Best Regards,
Jim W.
http://www.parallax.com/detail.asp?product_id=45300
http://www.parallax.com/detail.asp?product_id=45304
Thanks,
Jim W.
See this thread about halfway down:
http://forums.parallax.com/showthread.php?p=541373
Also,·consider "hanging out" in the SX forum. It's an eclectic, die-hard group as well as a bunch of newbies.
Sincerely,
Ken Gracey
Parallax, Inc.