PDA

View Full Version : Help a nubie



nonsquid
- 12th April 2008, 03:50
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.

paul borgmeier
- 12th April 2008, 06:03
change this


DEFINE OSC = 20

to this


DEFINE OSC 20

nonsquid
- 12th April 2008, 06:13
It works! One = equals so much time.
Thank you.