+ Reply to Thread
Page 1 of 42 1234511 ... LastLast
Results 1 to 20 of 834

Thread: Download PropBASIC here... 00.01.14 July 27, 2011

  1. #1

    Bean's Avatar
    Location
    Near Harrisburg PA
    Posts
    7,383
    Blog Entries
    2

    Default Download PropBASIC here... 00.01.14 July 27, 2011

    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/de...1&m=412552
    March 2010 Nuts and Volts articlehttp://www.parallax.com/Portals/0/Do...p/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
    Attached Files Attached Files
    Last edited by Bean; 08-03-2011 at 09:28 PM.

  2. #2

    Default

    The name makes it seem that we should be realy nasty to PropBASs



    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  3. #3

    Default

    For those that have their own favorite text editor, you can use that, too. I have been using EditPlus to write, compile, and download my PropBASIC programs (downloading handled by connecting to Propellant).
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  4. #4

    Default

    I have a question about the serin/serout commands, does it use a cog to accomplish the deed. I can visualize a program where I might be using two 'task's, and each 'task' would be be using separate sets of pins for the serin/serout commands. So, how many cogs would be involved? A general question would be, are there any commands that use a cog(s), in order to work?

    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  5. #5

    Bean's Avatar
    Location
    Near Harrisburg PA
    Posts
    7,383
    Blog Entries
    2

    Default

    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
    ·
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  6. #6

    Default

    Looks GREAT....will definitely be playing with it soon.

    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  7. #7

    Default

    Another serin/serout question, can the 'pin', and 'baud' values be variables? So, you have something like 'serin inpin, baudrate, inbyte', in a function or a subroutine. If I have a UART subroutine or function, using the serin/serout commands, will I be able to call the UART from within TASK's, with each TASK using a different set of pins, and only using the one subroutine/function? I am wondering if there will be a collision, if the TASK's try to run the UART subroutine/function at the same time?

    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  8. #8

    Default

    As Bean mentioned earlier we are working on formal docs -- since the cat is out of the bag I thought I should post a preview. Keep in mind this is just a preview and while it shows the syntax of all commands, it doesn't fully explain them (we're about 15% complete on this). Use the PDF included in Bean's ZIP and demo programs for the time being. And... if you think you have a great idea/demo to submit for the official help document, by all means do.

    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!

    [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
    Attached Files Attached Files
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  9. #9

    Default

    Hi Bean,

    Very nice manual - congratulations!

    Ross.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Catalina - a FREE C compiler for the Propeller - see Catalina
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  10. #10

    Default

    Rsadeika said...
    Another serin/serout question, can the 'pin', and 'baud' values be variables? So, you have something like 'serin inpin, baudrate, inbyte', in a function or a subroutine. If I have a UART subroutine or function, using the serin/serout commands, will I be able to call the UART from within TASK's, with each TASK using a different set of pins, and only using the one subroutine/function? I am wondering if there will be a collision, if the TASK's try to run the UART subroutine/function at the same time?

    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
    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:

    Code:
    ' Use: TX_BYTE txpin, byteout
    ' -- shell for SEROUT
    ' -- allows selection of TX pin for multiple devices
    ' -- Baud is set as program constant
    
    SUB TX_BYTE
      SEROUT __param1, Baud, __param2
      ENDSUB


    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  11. #11

    Default

    That is what I was referring to, the FSRW object, that could be be a major project in itself, to convert it to propBASIC. The other major project could be, some propBASIC code for the use of the upcoming Memory Expansion Board. Hopefully propBASIC will be able to handle the expanded memory capabilities. Or will it? If we have to start rewriting all the existing object code to propBASIC, isn't that going backwards? And, in that case, will there be a propBASIC section in the object exchange?

    Ray
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  12. #12

    Default

    Bean, Jon: Wow! VERY nice work! My Prop demo board suddenly looks like a stamp on steroids.

    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!?
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  13. #13

    Default

    Bean and I are open to Christmas presents!
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  14. #14

    Bean's Avatar
    Location
    Near Harrisburg PA
    Posts
    7,383
    Blog Entries
    2

    Default

    PropBASIC cannot run spin code. So the existing objects cannot be used as is.
    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  15. #15

    Bean's Avatar
    Location
    Near Harrisburg PA
    Posts
    7,383
    Blog Entries
    2

    Default

    If you do want to use a different editor when you call PropBASIC.EXE to compile the code, you need to use

    PropBASIC.EXE "C:\completepath\myfile.pbas" /p

    The /p means to pause on errors.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PropBASIC home page www.propbasic.com
    ·
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  16. #16

    Default

    Jon and Bean,

    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

    JonnyMac said...
    Bean and I are open to Christmas presents!
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  17. #17

    Default

    Bean has done the heavy lifting, creating the compiler and putting up with my "suggestions."
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  18. #18
    Cluso99's Avatar
    Location
    Sydney/Brisbane Australia or 'sailing on the high seas'
    Posts
    7,712

    Default

    Congratulations! Great work guys

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  19. #19

    Default

    Thank you very much . I just bought a Chameleon PIC system with PIC24 and Propeller from XGS and this is the cherry on top .
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

  20. #20

    Default

    I have a question about the COUNTERA/COUNTERB command, which mode would I use to check the values of a voltage divider? I set up a little test to check the charge level of a battery (9V), in this case. The battery is at 6.76V, and with my voltage divider the value is 2.83V, I am using 10K resistors to achieve this. There are a lot of 'mode' selections, and I am not sure what they all mean, like 'POS', is that 'point of sale' LOL. I guess I need a mode that would give me the value, that would make sense, in the program, for checking the charge level.

    Thanks
    Merry Xmas to everyone!
    Last edited by ForumTools; 09-30-2010 at 05:18 AM. Reason: Forum Migration

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts