Basic X .v.s. Basic Stamp II->
DiablodeMorte
Posts: 238
Hey, THis isn't really a sand box question just a general question but..
Anyways. I was wondering how BASIC X's compare to the basic stamp line by parallax. I know basix X support multitasking but i don't know of many other things....
Oh, and on a lighter note. is Parallax thinking of coming out with multitasking basic stamps?
Anyways. I was wondering how BASIC X's compare to the basic stamp line by parallax. I know basix X support multitasking but i don't know of many other things....
Oh, and on a lighter note. is Parallax thinking of coming out with multitasking basic stamps?
Comments
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
Rick
I hate it when you people hint like this...
(Not really...)
Either you've heard something like the BasicX is going out of production, or better, they're buying their chips from you... Or, you're about to launch the fabled BS3...
If it's the BS3, get it out there already, you're losing the Xmas sales!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
"Don't always think outside the box, sometimes thinking inside the box is more practical and simple."
·
Personally have always come back to Stamps because who needs a VB implementation on a simple control project? . Also found compiling and debugging more cumbersome than PBASIC.
But, live and let live.
Now if Parallax came out with a StampX that used a newer version of Pbasic, that would be sweet. Hint hint,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
"Don't always think outside the box, sometimes thinking inside the box is more practical and simple."
·
In my opinion BasicX has a great advertising department and nearly no support.·The literature has never been corrected or updated in any reasonable fashion.· If you love Visual Basic, you might find it easy going, but the Yahoo site can be quite grumpy.
In the beginning I ordered from Parallax but got impatient with a backorder. So I cancelled my order and ordered BasicX as a second choice.· Having spent $700USD on an array of there devices, I have never gotten anywhere near the support, satisfaction,·or pleasure that I have from Parallax.
Incidentally, Parallax mistakeningly shipped that cancelled backorder.· When they notified me, they reduced the price to what seemed like their cost as an apology rather than have me refuse delivery.·
In turn, I·refused to accept the full·reduction as it would have seemed that all I cared about was price.· Instead, we met half-way.· I wanted the support as much as the product.
Everyone makes mistakes, but real people correct their own.
Still, I do read the BasicX·web site as I have all their stuff that one day I might put to use. I have my doubts about their speed claims.· If it sounds too good to be true, it probably is.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Since Parallax had so many examples floating around on the website and a very active forum, I knew this was the place that I could learn to do what I want to do. All the other sites I researched prior to my first purchase,·made me·uncomfortable with the lack of examples and support. None of them offered a "getting started" kit as easy and simple as the Homework board.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
"Don't always think outside the box, sometimes thinking inside the box is more practical and simple."
·
Seeing your post about SX/B documentation shows your already thinking about it, a book is in the works and there is a pdf "Exploring the SX Microcontroller with Assembly and BASIC Programming" that does side by side assembly and SX/B, but you've likely looked at it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 11/16/2005 7:31:39 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 11/19/2005 4:30:21 PM GMT
I think you are partly right that small micros like the SX lend a restrictive architecture to a multi-tasking environment, but if one is prepared to compromize a bit, then it is quite achievable.
For many years now I have used a very simple minded co-operative (non-preemptive) multi-tasking system, and until recently it has formed the backbone template of almost every bit of code I write.
It readily permits the (apparent) simultaneous operation of serial I/O, I2C, LED multiplexing, I/O bit scanning, push-button monitoring, or what ever. All it requires is a dozen or two lines of code and a few registers, and......writing your application code in a manner such that no task hogs the processor. Using state machines, code can be easily written to accommodate this need, and the results are marvelously simple; VERY little overhead.
For the Parallax contest I decided to expand on the RTOS, and wrote a fully premptive O/S. It was a little buggy at first as there were some aspects about the "secret" instructions I had to find out the hard way. Subsequently it had a major overhaul, and it is very solid now, and I was able to get it down to 99 bytes of code to-boot. Unfortunately, and here is where you are right on your issue, it uses 7 registers to save the processor state for each of the up-to-8 time tick (task) levels.
That said, it still is very useful, as I can write multi-thread code without thought of how the timing of one thread affects another. They are independent entities; the O/S provides that isolation. Time overhead is typically well less than 1 uSec for a task switch.
So yes, it is a little tight in an SX, but adequate and great for most applications, and because it is multitasking it easily accommodates external serial RAM for applications requiring more than what remains in the SX.
To get application timing right, I have NEVER had to use a "delay" loop yet; I squirm every time I see code where the processor has to hang around looping for time to pass.
Enough rambling about my passion.......
Cheers,
Peter (pjv)
Still, I would absolutely, absolutely, love to see a BasicStamp that can juggle like that.
My waryness has a source. It is just that 'multi-tasking' is a buzz word that came out of the early PC days. First there was MS-DOS and everytime you wanted a program to change, you had to load a new one. Then there was the 'terminate, but stay resident' revolution. Actually, I like it in some ways better than Windows as you know one thing is operating at one time. Finally, we have our WindowsXP which make programming look like a troupe of juggling octapuses. I suspect your are n a 'terminate, but stay resident' mode.
As you can see, the expectations of what multi-tasking can do, have grown.
Nevertheless, the joy and reality of microcontrollers is in their inherent compact size and comprehensive control. RISC provides freedom from a lot of addressing [noparse][[/noparse]which I never could seem to learn between the PORTS and the MEMORY MAP and much more]. A lot of things and concepts just seem to be absurd in transfer. This is one of them.
Another is the whole idea of 'portablility' by using a language such as C, Forth, and even Basic. While it is very nice to use a high level language to quickly develop micro-controllers, the high level languages tend to not be portable in any sense that was the original dream. In fact, portablity is somewhat of a dying issue as the herd has thinned to Apple [noparse][[/noparse]using Intel no less!], Microsoft [noparse][[/noparse]Intel's old buddy], and Sun[noparse][[/noparse]whatever].
So it seems a lot of begineers, including myself try to buy the most bang for their buck, but really are buying an illusion due to history and their lack of knowlege.
It is nice that Parallax doesn't promote the illusion, just the education of what really is.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan