Help a nubie


Closed Thread
Results 1 to 3 of 3

Thread: Help a nubie

  1. #1
    Join Date
    Apr 2008
    Location
    Illinois, USA
    Posts
    2

    Red face Help a nubie

    I am a frustrated nubie, I upgraded a few years ago from Picbasic to Picbasic Pro and got it to program my Pic16F84 's only after using the DOS version.
    Recently I ran out of program space and decided to move up to the Pic16F628. I was unable to get the PicBasic Pro compiler to work right so I upgraded to version 2.50 and I still have problems getting the complier to work right. I have tried the windows version and the dos version with -pic16f628 -v -e options. I can NOT get the compiler to work and I keep getting these errors regardless of what I put on lines 39, 45,51,69, 75, or 81. The patch for 2.50 from Melabs says everything is up to date.

    Error c:\pbp\pbppic14.lib 39:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 39:[201]')'Expected
    Error c:\pbp\pbppic14.lib 45:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 45:[201]')'Expected
    Error c:\pbp\pbppic14.lib 51:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 51:[201]')'Expected
    Error c:\pbp\pbppic14.lib 57:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 57:[201]')'Expected
    Error c:\pbp\pbppic14.lib 63:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 63:[201]')'Expected
    Error c:\pbp\pbppic14.lib 69:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 69:[201]')'Expected
    Error c:\pbp\pbppic14.lib 75:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 75:[201]')'Expected
    Error c:\pbp\pbppic14.lib 81:[226] Numeric Constant or Symbol Name Expected
    Error c:\pbp\pbppic14.lib 81:[201]')'Too Many Errors

    This happens no mater what program I try to compile using the PBP compiler. Even with this short program I still get the same error messages.

    @ device pic16F628, ec_osc, wdt_off, pwrt_on, mclr_off, lvp_off, protect_off
    DEFINE OSC = 20
    CMCON = 7 'PortA = digital I/O
    DATA2 VAR BYTE
    DATA1 VAR BYTE
    FOR DATA1 = 1 TO 250
    DATA2 = DATA1
    NEXT
    END

    This program does not even have 81 lines.

    What am I doing wrong? If I try DOS
    PBP pic16F628 ape.txt -v -e
    I still get the same errors.

    Please help.

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    change this

    Code:
    DEFINE OSC = 20
    to this

    Code:
    DEFINE OSC  20
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Apr 2008
    Location
    Illinois, USA
    Posts
    2


    Did you find this post helpful? Yes | No

    Smile Thank you, thank you

    It works! One = equals so much time.
    Thank you.

Similar Threads

  1. Nubie - 2 Pics doing the same thing
    By sparky88 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th February 2008, 01:07

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