PBP and PBPL


Closed Thread
Results 1 to 40 of 46

Thread: PBP and PBPL

Hybrid View

  1. #1

    Default PBP and PBPL

    Hi again

    Noticed that when you have PBP v.2.50 you also have PBPL !

    So I tried it with/via Microcode Studio v.3.0.0.5 but run directly to an error:

    ERROR: Macro DIV32?CW not found in macro file.

    As I just struggled out from previous problem (with the kind help from Darrel) and this one sounds like a big fight ahead...
    however, hope not!

    Suspecting that some data is in a wrong place, but what is there? No idea...

    So, the question is, what all should one do before adopting the PBPL?
    Should you move some files from one location to another? Or something else?

    The software that I try to compile with PBPL is in the same directory as PBP and PBPL, that is C:\PBP...

    Thank you in advance

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    PBPL has LONG (double-words) as a new data type. You don't need DIV32 when using PBPL. Just define your variables as LONGs and do the division.
    Charles Linquist

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    PBPL has LONG (double-words) as a new data type. You don't need DIV32 when using PBPL. Just define your variables as LONGs and do the division.
    Thanks Charles!

    Yes I had one DIV32, commented it at got a bunch of errors (126) and warnings (220), 4 errors and 16 warnings . The errors:
    Error[126] \PBP\PBPPI18L.LIB 722 : argument out of range (34218 not between 0 and 32767)
    and the warnings (two kinds, for .LIB and .MAC):
    Warning[220]\PBP\PBPPI18L.LIB 788: address exceeds maximum range for this processor.
    Warning[220] c:\pbp\godiam.mac 1414: Address exceeds maximum range for this processor.

    This processor is PIC18F4550.

    So, what should I try next????

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by keymuu View Post

    So, what should I try next????
    Get rid of the DIV32 or do not use PBPL.
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Get rid of the DIV32 or do not use PBPL.
    Ok, that would of course solve the situation

    However, I have routines that need precise calculation where ... well 16 bit is not enough, I would need about 24 bits to calculate what I need to calculate.

    So, if Microchip provides a LONG variable for v2.50 users it should also work... or?

    What is wrong when getting those errors an warnings? Please help!

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,651


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by keymuu View Post
    So, if Microchip provides a LONG variable for v2.50 users it should also work... or?

    What is wrong when getting those errors an warnings? Please help!

    IF you use PBPL ...

    May be you should declare your DIV relevant vars as LONG ... no ???

    IF you use DIV32

    May be you've noticed it's ( ONLY ? ) a 31 x 15 bits operation ... Manual $ 4.17.8

    that need precise calculation
    This sentence always make me laugh !!! may we know about those calculations ???


    Alain

    PS:

    So, what should I try next????
    To re-arrange your program not to exceed the 32k limit ... probably some redundant or overkilling calculations ...
    BTW ... I remember Skimask ( Wish you a happy new year ,Ski ! ) wrote an interesting paper about that on this Forum ...
    Last edited by Acetronics2; - 15th January 2009 at 09:42.
    ************************************************** ***********************
    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. PbP usable releases ???
    By Acetronics2 in forum General
    Replies: 2
    Last Post: - 15th July 2009, 13:12
  2. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  3. IF..AND/OR..THEN and PBPL
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th January 2008, 16:45
  4. PBP 2.50 pbpw vs pbpl .exe
    By Archangel in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st September 2007, 15:28
  5. MCS+ with PBP 2.50
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st September 2007, 05:52

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