Escrito originalmente por Sispic
Que raro ....
Te dejo una imagen de como lo tengo yo , y no tengo problemas .
http://miarroba.com/foros/ver.php?foroid=132119&temaid=1290765
Pero por defecto pbp usa el assembler pm no mpasm , tenlo en cuenta.
Los errores te salen compilando con el MicroCode Studio ??
nos cuentas .
Hola, Yo lo tengo igual que tú pero me crea errores a la hora de compilar, por ejemplo elarchivo BLINK.asm que viene como ejemplo me genera el siguiente asembler:
******************************************
; PicBasic Pro Compiler 2.42, (c) 1998, 2002 microEngineering Labs, Inc. All Rights Reserved.
PM_USED EQU 1
INCLUDE "16F76.INC"
; Define statements.
#define CODE_SIZE 8
RAM_START EQU 00020h
RAM_END EQU 001EFh
RAM_BANKS EQU 00004h
BANK0_START EQU 00020h
BANK0_END EQU 0007Fh
BANK1_START EQU 000A0h
BANK1_END EQU 000EFh
BANK2_START EQU 00110h
BANK2_END EQU 0016Fh
BANK3_START EQU 00190h
BANK3_END EQU 001EFh
R0 EQU RAM_START + 000h
R1 EQU RAM_START + 002h
R2 EQU RAM_START + 004h
R3 EQU RAM_START + 006h
R4 EQU RAM_START + 008h
R5 EQU RAM_START + 00Ah
R6 EQU RAM_START + 00Ch
R7 EQU RAM_START + 00Eh
R8 EQU RAM_START + 010h
FLAGS EQU RAM_START + 012h
GOP EQU RAM_START + 013h
RM1 EQU RAM_START + 014h
RM2 EQU RAM_START + 015h
RR1 EQU RAM_START + 016h
RR2 EQU RAM_START + 017h
_PORTL EQU PORTB
_PORTH EQU PORTC
_TRISL EQU TRISB
_TRISH EQU TRISC
INCLUDE "BLINK.MAC"
INCLUDE "PBPPIC14.LIB"
LABEL?L _loop
HIGH?C 000h
PAUSE?C 001F4h
LOW?C 000h
PAUSE?C 001F4h
GOTO?L _loop
END?
END
****************************************
Esto está bien? a ti te lo crea igual.
Y el MPASM con los errores:
****************************************
Error[105] C:PBP16F76.INC 14 : Cannot open file (Include File ""M16F7x.INC"" not found)
Warning[207] C:PBP16F76.INC 15 : Found label after column 1. (DEVICE)
Error[122] C:PBP16F76.INC 15 : Illegal opcode (PIC16F76)
Warning[207] C:PBP16F76.INC 16 : Found label after column 1. (XALL)
Error[115] C:PBPBLINK.ASM 38 : Duplicate label ("_PORTL" or redefining symbol that cannot be redefined)
Error[113] C:PBPBLINK.ASM 39 : Symbol not previously defined (PORTC)
Error[113] C:PBPBLINK.ASM 40 : Symbol not previously defined (TRISB)
Error[113] C:PBPBLINK.ASM 41 : Symbol not previously defined (TRISC)
Error[105] C:PBPBLINK.ASM 42 : Cannot open file (Include File "BLINK.MAC" not found)
Warning[207] C:PBPBLINK.ASM 46 : Found label after column 1. (LABEL?L)
Error[122] C:PBPBLINK.ASM 46 : Illegal opcode (_LOOP)
Warning[207] C:PBPBLINK.ASM 47 : Found label after column 1. (HIGH?C)
Error[108] C:PBPBLINK.ASM 47 : Illegal character (0)
Warning[207] C:PBPBLINK.ASM 48 : Found label after column 1. (PAUSE?C)
Error[108] C:PBPBLINK.ASM 48 : Illegal character (0)
Warning[207] C:PBPBLINK.ASM 49 : Found label after column 1. (LOW?C)
Error[108] C:PBPBLINK.ASM 49 : Illegal character (0)
Warning[207] C:PBPBLINK.ASM 50 : Found label after column 1. (PAUSE?C)
Error[108] C:PBPBLINK.ASM 50 : Illegal character (0)
Warning[207] C:PBPBLINK.ASM 51 : Found label after column 1. (GOTO?L)
Error[122] C:PBPBLINK.ASM 51 : Illegal opcode (_LOOP)
Warning[207] C:PBPBLINK.ASM 52 : Found label after column 1. (END?)
****************************************************
He probado ya todo, los directorios los tengo igual que tú,incluso
a la hora de compilar
PBP -aMPASM BLINK y genera el.hex, peroluego lo introduzco para programarlo y me dice quehay errores.
Por favor necesito HELP.
Prueba por favor a ver que te genera a ti el BLINK con tu PBP
U saludo.