Moving from Basic Stamp and MIKROE basic to PicBasic PRO


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    I believe, it's my duty, to warn others about the bad product, being falsely advertised as good one.

    And the errors I've listed above, has nothing to do with my knowledge of MCUs. It's totally fault of that IDE developers.

    At the same time, I'm checking picbasic pro. And also, this IDE seems to be written upside down. Why no ability to configure default path for output .hex files? There are couple of other bugs, too. I'll list them later.

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    If you feel most things are upside down then you probably live on the Southern hemisphere.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Here's my first code with picbasic pro up and running. It does output variable PWM which I use for led dimming.

    Sure, code is written really bad, but, at least it works. I've used included BUTX3 sample as basis:

    Code:
       CMCON = 7          ' PORTA to digital
        OPTION_REG = $7f   ' Enable PORTB pull-ups
        TRISB = %11001111  ' Set PORTB.4,5 (LEDs) to output, rest to input
    A var byte   
    mainloop:
       PORTB = 0           ' Turn off LEDs
    
       ' Check any button pressed to toggle on LED
       If PORTB.7 = 0 Then ' If 1st button pressed...
          PORTB.5 = 1      ' Turn on 1st LED
          A=A+1
          if a=255 then a=a-1
                HPWM 1,A,1000
       Endif
       If PORTB.6 = 0 Then ' If 2nd button pressed...
          PORTB.4 = 1      ' Turn on 2nd LED
          a=A-1
          if a=1 then a=a+1
                HPWM 1,a,1000
       Endif
    
       Pause 15             ' Pause 2mS
       Goto mainloop       ' Do it forever
    
       End
    I believe, first two lines of code are irrelevant for PIC16F628A, but at least it works...

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Quote Originally Posted by Jumper View Post
    If you feel most things are upside down then you probably live on the Southern hemisphere.
    Excellent ...

    I would have written it with ... lots less humour !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Quote Originally Posted by Jumper View Post
    If you feel most things are upside down then you probably live on the Southern hemisphere.
    Well said - that is very funny

  6. #6
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    There are a lot of books available for picbasic, but very few for picbasic pro.

    Is there anywhere information of side to side comparison of these two BASICs? I found that pro has hardware pwm, interrupts and some other features, but I'd like to see the complete list.

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Hi,
    There are several flavours of "PIC BASIC" from different vendors and manufacturers. This forum, as you know, is really only targeting the compilers from MicroEngineering Labs. So when you see a reference to "PIC Basic" on the net or in a book, make sure you understand which manufacturers compiler they are really talking about.

    If you're talking about comparing the features of the original PIC BASIC Compiler from MELABS to the PRO version of the same compiler I don't see the purpose since the old version is discontinued. Besides, if you think PBP is complicated you wouldn't want to use PBC.

    If you want to compare the three different version of PBP3 then you can do so here. As far as I know all commands are available in all versions, however the experimenter and silver edition is limited in the number of supported devices. The silver edition, for example, does not support 18F series and therefor you can't use LONG variables.

  8. #8
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Yes, I meant melabs products.

    There are a lot of books for projects and general design for picbasic on amazon, but almost none for picbasic pro.

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Quote Originally Posted by CuriousOne View Post
    , but I'd like to see the complete list.
    just download the PBP3 Manual ... if you dare reading it, of course !
    http://pbp3.com/downloads/PBP_Reference_Manual.pdf

    Alain
    Last edited by Acetronics2; - 5th March 2013 at 12:31.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  10. #10
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    I'm asking document like this:

    http://www.google.com/url?sa=t&rct=j...BgQKNzcUaRCACg

    side by side comparison.

  11. #11
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    YESS ...

    This document is a commercial add published by Mikroelektronika years ago ... ( I have already shown this sheet here ...) . note here ee = i
    It has made laugh loudly this forum guys as it's:

    1) False ... ( just verify by yourself if you do not believe it ! )
    2) Totally out of date
    3) It does not take into account PBP is delivered with FREE Microcode Studio as an IDE, or MPLAB ( also FREE ) ...

    n-1) They do not tell you MkB produced code is much larger than PBPro produced
    N) They do not tell you there's one release every ~ 3 Month ( YESS Free ! ) supposed to correct previous bugs and introducing new ones ...
    N+1) They do not tell you you have to reconfig your IDE @ each new release ....

    do you still want to go on being ridiculous, having every thing ready cooked ... ???

    Let's go ... here we have lots of humour !!! ( British forum ... )
    Last edited by Acetronics2; - 5th March 2013 at 18:54.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Pic Basic pro code Compiling help!
    By JeromyJones in forum mel PIC BASIC
    Replies: 3
    Last Post: - 20th February 2013, 13:14
  2. Yet another SERIN2 problem - Conversion from Basic Stamp
    By Fanias in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 24th October 2012, 07:08
  3. PicBasic Pro to Basic Stamp conversion?
    By Kirk Fraser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2011, 06:49
  4. Basic Stamp BS2 replacement?
    By tenaja in forum Schematics
    Replies: 5
    Last Post: - 17th November 2009, 17:27
  5. Basic Question about PICBASIC
    By zonkwilliams in forum General
    Replies: 1
    Last Post: - 10th March 2005, 21:55

Members who have read this thread : 0

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