PDA

View Full Version : BS2Sx commands faulty for PBP 2.40/2.46 ?



zorgloub
- 1st February 2022, 23:33
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.

mpgmike
- 2nd February 2022, 00:10
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:


DO
some code
LOOP

DO
some code
LOOP UNTIL PORTA.4 = 1

HenrikOlsson
- 2nd February 2022, 06:13
DO LOOP was added in version 2.60, together with ARRAYREAD, ARRAYWRITE, ELSEIF, EXIT, ON GOSUB and ON GOTO back in 2009.

zorgloub
- 3rd February 2022, 11:12
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.

zorgloub
- 3rd February 2022, 11:28
Hi,
And What are the conditions and formalities for obtaining a Non-Commercial Student PBP v.3?
Thanks.

mpgmike
- 3rd February 2022, 19:38
Here is the link to the ME Labs PBP3 page. From there you can find the answers:

http://pbp3.com

Ioannis
- 4th February 2022, 17:31
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

zorgloub
- 8th February 2022, 09:56
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?

Ioannis
- 8th February 2022, 12:49
AFAIK no, there is not. On Melabs site there is no reference on that either.

Ioannis