I will try that yeh.
dont why its rejecting the TRISB TRISC etc
Am using the MPASM that came with PBP 2.45, mate.
cheers
Woodzy
I will try that yeh.
dont why its rejecting the TRISB TRISC etc
Am using the MPASM that came with PBP 2.45, mate.
cheers
Woodzy
euh... as far as i remind, MPASM don't comes with PBP 2.45 (or i miss something in the past)
Download the latest version from Microchip Website.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
MPASM = my mistake.
I just use the assembler supplied with PBPro 2.45
cheers
Mister-E,
Took your advice, here is the test program i tried;
------
'e:\plc\pbp245\PBPW.exe -p18f452 e:\2005\FZ4\452LED.bas
ALED var portb.0
high ALED
pause 1000
low ALED
end
------
and now the associated compilationerror messages.
-------------------
Error E:\PLC\PBP245\452LED.ASM 44 : [225] Undefined Symbol 'TRISB'
Error E:\PLC\PBP245\452LED.ASM 45 : [225] Undefined Symbol 'TRISC'
Error PBPPIC18.LIB 156 : [225] Undefined Symbol 'PORTB'
Error PBPPIC18.LIB 187 : [225] Undefined Symbol 'PORTC'
Error PBPPIC18.LIB 362 : [225] Undefined Symbol 'PORTA'
Error PBPPIC18.LIB 368 : [225] Undefined Symbol 'PORTA'
Error PBPPIC18.LIB 380 : [225] Undefined Symbol 'PORTB'
Error PBPPIC18.LIB 1153 : [200] Instruction Restricted to 14-Bit Core
Error PBPPIC18.LIB 1153 : [218] Address Limit of FFFFh Exceeded
Error PBPPIC18.LIB 6215 : [200] Instruction Restricted to 14-Bit Core
Error PBPPIC18.LIB 6215 : [218] Address Limit of FFFFh Exceeded
Error PBPPIC18.LIB 6216 : [200] Instruction Restricted to 14-Bit Core
Fatal PBPPIC18.LIB 6216 : [300] Too Many Errors
PicBasic Pro Compiler 2.45, (c) 1998, 2004 microEngineering Labs, Inc.
All Rights Reserved.
--------------------------
You dont think there may be errors in the .ASM or .LIB files listed above??
I was of the assumption that both the 16F877and the 18F452 were both 14bit devices.
any help from any one would be greatly appreciated.
cheers
Woodzy
Woodzy,
You have to use MPASM for the PIC18-series chips. Not the PM assembler (PBP standard). If you're using MicroCodeStudio goto View/Compile and Program Options, select the Assembler tab and make sure that the box use MPASM is ticked. If you don't have MPLAB/MPASM installed you can download it from Microchips site.
If you're not using MicroCodeStudio you need to figure out how to invoke MPASM instead of PM.
/Henrik Olsson.
Last edited by HenrikOlsson; - 10th November 2006 at 07:26.
Or plug PBP in MPLAB... but i prefer MicroCode Studio
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks