difference between basic satmp and sx\b
Hello,
I read a lot the last days about the sx processor and programming it in basic.
so everything till now is clear but I like to know how I must see the speed diference when the program is runnening between a bs2sx and a sx in basic.
I 'm search to find it but I can't find anything.
so can someone tell me where i can find it or what the diference is.
I'm ussing now the bs2sx but like to have more I/O's and speed.
best regards Erik
·
I read a lot the last days about the sx processor and programming it in basic.
so everything till now is clear but I like to know how I must see the speed diference when the program is runnening between a bs2sx and a sx in basic.
I 'm search to find it but I can't find anything.
so can someone tell me where i can find it or what the diference is.
I'm ussing now the bs2sx but like to have more I/O's and speed.
best regards Erik
·
Comments
Using SX/B with an SX processor is much faster and makes available more than the normal 16 I/O pins of a BS2sx. The SX can execute as much as 50 million instructions a second although the instructions don't usually do as much as the BS2sx interpretive instructions. SX/B is a compiler for a version of Basic that's deliberately very similar to the Basic used by the Stamps. It's not identical and there's a lot you would have to learn about using SX/B that's different from the BS2sx Basic, but there are some excellent texts and magazine columns available for downloading from Parallax to help you with that.
Thanks for your answer.but·I was looking for me info about the sx using it with sx/b.I read the sevarel colums for jon and his manual·but there isn't much about what will be the major reason to go using the sx with basic.
so do you know where I canfind more info or must we us the sx manuals and work with that or is it different when you ussing the basic languea
Thanks for your time.
I·will look to the·coloms again, I·saw that hittconsulting make the compiler they talk about the speed of thesxwith basic
thanks best regards Erik
·
BTW, I'm not the only one writing about SX/B. Robert Doerr, a forum regular, has written some really great articles for Servo having to do with a robotics project in which he uses SX chips. I've found bits of his code very useful in my own projects.
In the end, and while not perfect, the SX/B help file is your best source of information for SX/B. It goes into good detail on all the instructions and has several example programs that will get you up to speed. To be candid, you'll probably never be spoon-fed SX/B like Parallax did with PBASIC, but you can learn it with a little bit of effort -- and you'll have a really good time, I promise. If it wasn't for SX/B I probably wouldn't be using the SX as much as I do.
thanks for your answer so we go further with the sx.I was trying to get an better idea if the sx is a good processor·to invest more time. I like the stamp and·other idea's from parallax , so we go test some programs that we use on the stamp and make them ready for the sx.
best regards Erik·
That there are people to help me with my problems and that the products are trustfull is for me a reason to try to stay at the products off parallax.we going for the next step the sx and thanks for the last push in the right direction.
best regards Erik
And as all programmers know, interrupt management is a concept that MUST be grasped to proceed farther down the pipe.
Interrupts allow the programmer to interact with the real world VERY FAST, AT RANDOM.
They let the programmer create code that will run a "shell" (user interface, display, etc) and still respond to stimuli that comes at RANDOM.
The BS2 is mainly a single process device.
When I had a bs2 I was doing some pretty deep things with it, and kept finding myself running into blocks that required interrupts, more ram, faster speeds, etc...
The SXB language allowed me to keep my basic programming structure and keep on going with new features and possibilites.
It really is like a SUPER BS2+++ or something.
If you have built a BOE-BOT or similar Parallax project, and even modified it a bit..
You are ready for the SX.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Meh. Nothing here, move along.
It's good to hear to invest time in·the sx isa right choose??
Erik