Pbasic
Brian B
Posts: 31
i am working on a project and naad more i/o pins. do both the bs2 and propeller chip use PBASIC?
Comments
The propeller uses SPIN, a custom language for the propeller - it also uses objects included in the IDE for lots of functions such as tv display, serial communications, or whatever. The propeller object exchange includes a PBASIC library that makes the PBasic to SPIN transition easier. If you do want to try the propeller, get the propeller demo board.
Another Basic Stamp solution for more output is to use serial shift registers or other IC chips. I recommend the 'Microcontroller applications cookbook' by Matt Gilliland for more information on this.
I don't know if you are bread boarding or what but obviously the 40 pin version is not pin compatible as with the rest of the BS2 family. The only real advantage of the 40 pin chip is that it does use PBASIC which you may know enough now. The propeller is in so many ways more powerful (somewhat like eight stamps that operate separately but in conjunction with each other. The downside is that you would have to learn the SPIN programing language. It may be worth the time though as the propeller is an amazingly powerful processor.
You can add shift registers to your project to increase the number of I/Os needed.
'
Take a look at the 74xx595 and the 74xx165. (Example 74HC595N)
'
You can find code for these shift reg's for both BS2xx's and the Propeller.
'
Hope this helps.
There is also PropBasic available at this thread: Prop Basic by Bean
Don't be intimidated! The Prop is THE way to go, and MUCH less expensive, and MUCH more powerful, than any STAMP. Think 8 Stamps in one chip, and if get the above Prop Education kit, you'll learn how to set up a prop circuit for additional projects for $24.99 - or less - see the Propeller DIP Plus Kit