BS2Sx commands faulty for PBP 2.40/2.46 ?


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2022
    Posts
    51

    Default BS2Sx commands faulty for PBP 2.40/2.46 ?

    Good evening to the Community.

    Developing lately with Picaxe in Basic, I'm back to my old love (BS2sx compiled to PIC16F84A / 16F628A).

    However, it seems to me that the following loop commands are not recognised by PBP2.40/2.46.

    Can you confirm this?

    DO ... LOOP
    DO { WHILE | UNTIL Condition(s) }
    Statement(s)
    LOOP { WHILE | UNTIL Condition(s) }

    Yes, You can replace a simple DO...LOOP loop with a "Loop:" start tag and end the loop with a "goto Loop".
    Although I'm allergic to "Goto" but hey ...
    It seems to be a must here.

    On the other hand, to replace the Do While/Until and Loop While/Until, it seems to me a little more complicated!
    Do you have a solution ?

    Thanks already.

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    You have access to a Product -- PBP3. This Product has a very comprehensive user guide -- PBP3 Reference Manual. In this Manual, 5.17 (page 136 in my copy) spells out "DO" usage. To help, here are a couple examples:
    Code:
    DO
     some code
    LOOP
    
    DO
      some code
    LOOP UNTIL PORTA.4 = 1

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    DO LOOP was added in version 2.60, together with ARRAYREAD, ARRAYWRITE, ELSEIF, EXIT, ON GOSUB and ON GOTO back in 2009.

  4. #4
    Join Date
    Feb 2022
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    Hello everyone,
    I suspect that the latest version (PBP3) is more complete and includes looping commands.
    But buying this product at 270$ just for a small hobby is a bit out of my price range
    So, where can I still find a 2.60 version?
    Thank you.

  5. #5
    Join Date
    Feb 2022
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    Hi,
    And What are the conditions and formalities for obtaining a Non-Commercial Student PBP v.3?
    Thanks.

  6. #6
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    Here is the link to the ME Labs PBP3 page. From there you can find the answers:

    http://pbp3.com

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    For specific PIC chips it is free of charge.

    For 2.4/2.6 upgrade to 3.1 it is $100 (you need proof of purchase).

    Ioannis

  8. #8
    Join Date
    Feb 2022
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    Thank you. I'll try the Student pack first.
    The PICs offered are limited but nevertheless interesting.
    Is there also a limit to the length of the code?

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default Re: BS2Sx commands faulty for PBP 2.40/2.46 ?

    AFAIK no, there is not. On Melabs site there is no reference on that either.

    Ioannis

Similar Threads

  1. Speed of commands
    By mpgmike in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2017, 14:24
  2. Safe usage of PBP commands within ASM ISR
    By sougata in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 10th November 2011, 12:35
  3. Writing PBP Commands/macros
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th May 2010, 16:05
  4. X10 commands and PBP
    By aratti in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 15th November 2009, 13:55
  5. At commands
    By jam547 in forum GSM
    Replies: 3
    Last Post: - 1st April 2006, 16:52

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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