Download PropBASIC here... 00.01.14 LAST VERSION FOR BST
Bean
Posts: 8,129
First of all go here http://www.fnarfbargle.com/bst/Latest/
and get the latest version of BST. The .exe version is for windows, Linux for linux and osx for macintosh.
Then go here http://www.fnarfbargle.com/PropBasic/
and make sure you get the latest version of PropBASIC for BST. Version 00.01.14 is the latest version.
Extract both files.
Run the bst file. When it launches, from the menu choose:
Tools->IDE Preferences->PropBASIC click Browse and find the PropBASIC-BST file that you just extracted.
You are now ready to use PropBASIC.
Documentation and demos are available at the bottom of this post.
As well as the PASD debugger (for windows only sorry).
======================================================================
I'm hoping you guys will try it out and let me know about any bugs you find.
I figured most people havea lot of time off work with the holidays, so I wanted to get this out there so you could play around with it.
Make sure you run the PropBASICIDE program. This is the front-end / editor for propbasic.
With in the editor you can select "Compile" this compiles and opens the .spin file in the Propeller Tool.
Select "Run", this uses propellent to compile and run the program from RAM.
Select "EEPROM" to burn the program into the EEPROM so it will run at power-up.
Sorry about the limited documentation, Jon (Jonny Mac) is working on some much better documentation.
P.S. Make sure to check out the demo programs in the demos folder.
If you have any questions please ask.
Thanks,
Bean.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/forums/default.aspx?f=25&p=1&m=412552
March 2010 Nuts and Volts articlehttp://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [RUSH - Freewill]
Post Edited (Bean) : 7/21/2010 9:37:08 PM GMT
and get the latest version of BST. The .exe version is for windows, Linux for linux and osx for macintosh.
Then go here http://www.fnarfbargle.com/PropBasic/
and make sure you get the latest version of PropBASIC for BST. Version 00.01.14 is the latest version.
Extract both files.
Run the bst file. When it launches, from the menu choose:
Tools->IDE Preferences->PropBASIC click Browse and find the PropBASIC-BST file that you just extracted.
You are now ready to use PropBASIC.
Documentation and demos are available at the bottom of this post.
As well as the PASD debugger (for windows only sorry).
======================================================================
I'm hoping you guys will try it out and let me know about any bugs you find.
I figured most people havea lot of time off work with the holidays, so I wanted to get this out there so you could play around with it.
Make sure you run the PropBASICIDE program. This is the front-end / editor for propbasic.
With in the editor you can select "Compile" this compiles and opens the .spin file in the Propeller Tool.
Select "Run", this uses propellent to compile and run the program from RAM.
Select "EEPROM" to burn the program into the EEPROM so it will run at power-up.
Sorry about the limited documentation, Jon (Jonny Mac) is working on some much better documentation.
P.S. Make sure to check out the demo programs in the demos folder.
If you have any questions please ask.
Thanks,
Bean.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/forums/default.aspx?f=25&p=1&m=412552
March 2010 Nuts and Volts articlehttp://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [RUSH - Freewill]
Post Edited (Bean) : 7/21/2010 9:37:08 PM GMT
Comments
Now the PropbasICIDE name has gone, this lame joke is meaningless.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Post Edited (Toby Seckshund) : 4/10/2010 7:44:48 AM GMT
Hopefully in your future version of the IDE, you might have a tally of how many cogs are being used, along with ram usage. I have not coded a program just yet, but it feels familiar. I am sure I will have more questions. Looks good so far Bean.
Ray
None of the commands use another cog. Everything is done in-line.
Only TASKs that are started with COGSTART or COGINIT run in another cog.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropBASIC home page www.propbasic.com
·
WELL DONE.....this should be a GREAT addition to the Propeller especially for people
who come from the BS2 side....good stuff.
I also LOVE the PASM side by side to the BASIC code.....this should make for a GREAT
PASM educational tool...wonderful.
Samuel
I am getting ready to do some testing of the SD card that I have, what would be the recommended way of setting up a program to accomplish this. Since the existing code is an object, propBASIC is not capable of handling existing objects, or is it?
Have you considered adding an ADC command? I have another test scenario where I want to check the charge level of a battery. I am thinking of a 'voltage divider' setup, and an ADC command that would use only one pin for the incoming data.
Ray
The goal is to create a nice document that you can use as a PDF or trot over to a print shop and have spiral-bound (so that it lays flat).
Happy Holidays!
[noparse][[/noparse]Edit] Updated 01-18 (note: still a work in progress and compiler is still in beta)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
Post Edited (JonnyMac) : 1/18/2010 10:12:43 PM GMT
Very nice manual - congratulations!
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
You've actually jammed a whole bunch of questions into one -- I can help (a little). With SERIN and SEROUT you can presently use a variable pin but you need to use a constant for the Baud (mode and speed) setting -- for most programs this will be fine. It would take a redesign of the SERIN/SEROUT code to support a variable baud, and I think it would generate more code, perhaps significantly more.
For the time being, you can do something like this:
This lets you direct your output to any pin -- given a fixed Baud setting. Again, Baud represents bot the mode (T, N, OT, or ON) and the speed (bps).
You could create tasks to handle serial IO that buffer the data; I would suggest one per device. Still, you could use some cute trickery with hub variables to control where a task sends something (I think it would create more problems than solve, however).
SD card support requires a significant chunk of code; have a look at the FSRW object for Spin to see for yourself.
Bean wrote a demo (that's in his ZIP) that demonstrates using one of the counters as an ADC -- have a look at sndmeter.pbas
Ray
I downloaded PropBasic and ran through most of the demos in less than 5 minutes. Setup was a breeze (there wasn't any). I glanced through the manual that comes with the package, but it really wasn't necessary because the thing is virtually self-documenting. IDE simple, clean, completely intuitive. And the Pbasic syntax is quite easy to digest anyway. The in-line basic-to-PASM conversion is really neat, a great way to bust down that PASM learning curve barrier. Not to mention this should be handy for whipping up quickie assembly routines for inclusion into other Spin projects.
And this thing is FREE!?
If you look at the Mouse_to_PC demo, I took the existing mouse object and modified it slightly to work with PropBASIC.
PASM code will need slight modifications, spin code will need to be completely re-written.
The best present I could get right now is some cool PropBASIC programs. Or believe it or not some bugs discovered (I know there are some in there).
Jon needs to be commended on his dedication to the documentation. He is not being paid for all his hard work, and I kept changing/adding features on him.
I know I should have waited until his documentation was completed, but I really wanted the bugs to be found sooner rather than later.
And this is the best time of year to check members with lots of free time being off work for a couple days.
My hope is that the compiler will be useful enough to warrent inclusion in the Propeller tool.
We shall see, I just need to get Ken and some of the Parallax employees hooked on it.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropBASIC home page www.propbasic.com
Post Edited (Bean (Hitt Consulting)) : 12/24/2009 12:58:50 AM GMT
PropBASIC.EXE "C:\completepath\myfile.pbas" /p
The /p means to pause on errors.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropBASIC home page www.propbasic.com
·
I know this has been a huge undertaking and I want to personally thank both of you for this. From what I have tried, it works great!
As for presents, I have a few SX28 Dip chips to give you, (since they are out of stock), but I'm sure Ken keeps both of you in SX happy land.
Merry Christmas,
Jim
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Thanks
Merry Xmas to everyone!
Merry Xmas back to you!
· Use mode 72 (POSFB). You'll need to use two pins.
· Look at the sndmeter demo program and the demo board schematic.
· It uses microphone built into the demo board and samples it.
· The demo board uses P8 for the feedback pin, and P9 for the output pin.
· You would keep the 100K resitor, and the two 1nF caps. And connect the output of your voltage divider to the point where all three come together (so you'll have 6 leads together).
· You may need to adjust the values of your voltage divider (keeping the ratio the same) to get a good voltage range when you read it.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropBASIC home page www.propbasic.com
Post Edited (Bean (Hitt Consulting)) : 12/24/2009 5:34:07 PM GMT
-- www.parallax.com/tabid/442/Default.aspx
See page 17 for ADC circuitry and warnings (some components must be placed very close to the Propeller).
Could there be a workaround - however rough - that would enable one to include the functionality of some of our favorite Obex utilities?
Perhaps a template written in Spin to behave as the 'wrapper'; calling in a variety of Spin objects from the Obex, including of course the compiled output of the main application written in PropBASIC?
It may be inelegant, but it would be a very useful kludge.
T o n y
There has been some threads about starting a spin cog from PASM.
That would probably allow some of the object to work, but I haven't explored it yet.
If anyone has knowledge of how to do this, please try get it working.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropBASIC home page www.propbasic.com
·
Bean·and JonnyMac,·· YEEEEAAAAAHHHH!!!
Can't thank you enough for the Propbasic project!!···I just downloaded the zip files and just printed the documentation, but haven't read it yet. I'm looking forward to trying it out over the next week.· I have plenty of Pic Basic Pro code that I didn't want to rewrite.·· I imagine there will be some rewriting to port the PBP to PropBasic, but hoping that it would minimal.· But thanks, just having PropBasic will be a big help in using the Prop, learning Spin and even a big help in learning PASM.
Scanning the documentation .pdf it looks a lot like SX/B which I'm glad to see!
My beginning experience has been on the SX and this makes a great transition to the Propeller that I just received.
Alex
Since Editplus has the ability to run external programs, you can even set it to to build the pbas file using the Propbasic.exe and deploy the resultant file to a connected propeller using Propellent.exe!·
To set it up, make sure the user toolbar is showing (View-> Toolbars -> User Toolbars) and add two new custom buttons to the tool bar.· Point the first one at the propbasic.exe with this argument.· "$(FilePath)"
Point the second button to the Propellent.exe with this argument $(FileDir)\$(FileNameNoExt).spin
Now build and compile is just two clicks and integrated into an ide with syntax highlighting!
I hope I get skilled enough with the prop to someday contribute something as nice as this.
Bean, fantastic. I can see this taking off.·· Jon, ·your work to date on the docs looks great.
This effort will draw more users to Prop. Those·who may have otherwise been put off by the idea of learning Spin. (fear of the unknown)
Query
Can more than 7 tasks be declared at compile time ?·Being able to·take advantages of the various external memory schemes that are floating around (i.e Hydra and the HX512k card in my case) is really appealing.
Regards
Ron