SX28 Programming with Basic Language
DigitalDj
Posts: 207
Hello All,
Yes i finally did it!
I purchased the SX Development Board and SX Key. Here is my problem, I am trying to learn SX basic programming from the Exploring the SX Microcontroller with Assembly and Basic Programming Book and find it somewhat confusing at times because references to the programming are usually made at the assembly instead of both.
What is best to learn with the SX, assembly or basic?
If basic is there any other books available?
Paul and I are working with a new pwm circuit and i believe the plan is to use basic for the SX. Correct me if I'm wrong on this Paul!
Thanks,
Kevin
·
Yes i finally did it!
I purchased the SX Development Board and SX Key. Here is my problem, I am trying to learn SX basic programming from the Exploring the SX Microcontroller with Assembly and Basic Programming Book and find it somewhat confusing at times because references to the programming are usually made at the assembly instead of both.
What is best to learn with the SX, assembly or basic?
If basic is there any other books available?
Paul and I are working with a new pwm circuit and i believe the plan is to use basic for the SX. Correct me if I'm wrong on this Paul!
Thanks,
Kevin
·
Comments
S/X BASIC is far easier to learn but can be a bit slower running than S/X Assembly. Depending on the application, it may not be an issue with speed.
Since I have some BASIC STAMP II variations·and SX-28s, I usually write programs for the BASIC STAMP II first and then convert that to S/X BASIC and if possible, sometimes convert some of the S/X BASIC into S/X Assembly. But I like many others shy away from S/X Assembly because it is alot harder to grasp and S/X BASIC is much easier and faster to learn.
For S/X BASIC, use the HELP information in the S/X Key v3.1x editor and this forum has SEARCH features for specific commands.
Thanks.
Post Edited (Lead Test Engineer) : 4/1/2006 10:39:01 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
6+6=10 (Long live the duodecimal system)
It seems that the pace at Parallax has quicken and waiting for a book might slow you down with outdated info.
Take a look at the 'stickies' above for the latest version. Improvements are shown there immdiately as the come out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Post Edited (Kramer) : 4/3/2006 3:01:07 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
this may be a stupid question but is the stickies in blue above the forum posts? What is the latest version? Is there a release date on the new version?
Thanks for the response,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
6+6=10 (Long live the duodecimal system)
Get the latest version of the SX-Key IDE from our web site, then update the SX/B compiler from the sticky post above.· SX/B has been pretty fluid, so we don't create a new SX-Key installer for every SX/B update.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Since i now have·an older version what do i need to do to update? Do i need to uninstall old version or will it update upon install?
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
from here:
http://forums.parallax.com/showthread.php?p=517621
You don't need to uninstall the preloaded version 1.42.
Thanks.
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks,
Kevin
I'll second the talk that Parallax has in the pipeline more materials on SX/B. At least one project for beginners is being written and tested as we speak. It will use the new version of the compiler that includes WORD vars.
Another good source, in the interim, are the half dozen sample projects available for d'load from PArallax SX pages. These are particularly good if you have various components around (DS 1620 temp sensor, several 7 seg displays, serial LCD display) that are parts of the projects.
Another good code sample to study is available with Terry Hitt's digital display module at
product: http://www.hittconsulting.com/ scroll down and click on the digital display link.
code: http://user.pa.net/~bean/hc4led/HC4LED.SXB
Also the source-code for both video modules is freely available and is mostly SXB.
I'd say this forum is the best place to get info. Usually in less than a hour.
I know of two people working on beginner SXB books, so just hang in there.
Like Jon stated, the next version of SXB has quite few new features, so there is no sense creating hard documentation for a language that is evolving as quickly as SXB.
The best advise I can give is "Use the template that Jon provides in the help file".
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module"·available from Parallax for only·$49.95 http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com
"I reject your reality, and substitute my own." Mythbusters
Post Edited (Bean (Hitt Consulting)) : 4/3/2006 11:22:20 AM GMT