PICs in BASIC vs SX/B / PBASIC - good story
I decided last week to just look at and try out·(not really abandon the great SX products) PICs in BASIC programming and see how they·compare to SX/B and PBASIC. I bought an EasyPIC 4 development board from a US distributor from MikroElektroniks - which also wrote MikroBasic for PIC. I also looked at Swordfish Basic (limited to 18F PICs only). I quickly found out how limited that PIC BASICs are. There are no READ / DATA statements and very limited on keyword statements. They did have some good libraries of external commands but I was not impressed and got lost easily trying to go through it all. I was not able to find any information about TRISA, TRISB ect. as I would expect some kind of reference to it since their example programs used it. Of course they had a flashing LED example program but no real lead in on how to get started and how to reference their very limited keyword command set. This is where Parallax shines in their reference help guides!
One forum member stated that MikroBasic for PIC is more like a "warmed up" Pascal with some C and far from any real BASIC that he (or I) grew up with.
SX/B and PBASIC is free and yes PIC basics like MikroBasic for PIC and Swordfish have free but·limited versions (full versions are $150).·Another PIC·Basic·I saw was $250. Well that was not going to happen!
With all of this said, I·am returning·everything (with no problems from the distributor) and going back to the great SX/B and PBASIC that I am comfortable with and find it is so much more complete than anything I found on the PIC.
I may still have a ways to go in learning more and more about the "growing" SX/B and PBASIC but it is much better than anything I found for the PIC in a BASIC language.
I'm back to stay!
One forum member stated that MikroBasic for PIC is more like a "warmed up" Pascal with some C and far from any real BASIC that he (or I) grew up with.
SX/B and PBASIC is free and yes PIC basics like MikroBasic for PIC and Swordfish have free but·limited versions (full versions are $150).·Another PIC·Basic·I saw was $250. Well that was not going to happen!
With all of this said, I·am returning·everything (with no problems from the distributor) and going back to the great SX/B and PBASIC that I am comfortable with and find it is so much more complete than anything I found on the PIC.
I may still have a ways to go in learning more and more about the "growing" SX/B and PBASIC but it is much better than anything I found for the PIC in a BASIC language.
I'm back to stay!
Comments
How much is the cost of one comparable PIC chip with one SX28AC/DP?
I noticed Digikey selling some 28 pin DIP PICs for only USD 0.65 each.
I also heard that some recent PIC chips can now execute 1 instruction per cycle.
Is it true?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
But in terms of having learning and development working in harmony, the SXes really are the best value. I suspect that if I had commited entirely to PICs, I would still be struggling to grasp concepts and ideas that Parallax brings forth in a much more supportive educational environment.
It really is about two different corporate attitudes - educational vs. industrial.
Microchip and the PIC just expect you to have already gotten your P.E. in Electronics before you fool with them. On the other hand, Parallax is leading the pack in terms of providing a high quality knowledge base and community that helps you get going and keep going.
There is a lot of unfinished software that is sold and never really finished. But, the vendor keeps grinding out ads and promises that the next version will come any day now. With PBasic, SX/B, and Spin, bugs just are not allowed to survive very long and new features are provided without costly updates.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything in the world is purchased by labour; and our passions are the only causes of labor." -- David·Hume (1711-76)········
An alternative that I've used in several designs where size is an issue and/or an A/D converter is needed is the Atmel AVR, specifically the ATTINY13. This is an 8-pin device available in an SOIC that has an internal 9.6MHz clock. It sells for $0.81 in hundreds. Although programming is done through three port pins, plus the reset pin, the serial algorithm is very simple. I use a BASIC Stamp to program these parts once they're on board, via a short cable and a spring-loaded test clip to grab the AVR from both sides. An AVR is nothing like a PIC or SX, though. The instruction set and architecture take some getting used to.
-Phil
JonnyMac,
Do you plan to do this conversion entirely by hand, line by line or will you use some form of limited automation such as a utility that converts add, increments, rotations, and conditional tests, etc.?
- Sparks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
-Phil
And cost probably IS the reason Parallax uses the SX28 [noparse];)[/noparse]
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My goal is to live forever...Or die trying.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·