4electros
New Member
I was trying to compile this code in MPLAB program but it in formed me that some errors occured during the process...
PROCESSOR 16F84
#INCLUDE "p16f84.inc"
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & XT_OSC
;**** declaration and variables*****
cblock 0x0c
endc
org 0x00
goto Main
org 0*04
goto Main
Main
banksel TRISB
CLRF TRISB
banksel PORTB
movlw 0xff
movwf PORTB
LOOP goto Loop
End
and the error message is:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "E:\science\Microcontroller\PIC\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p16F84 "BLINK.asm" /l"BLINK.lst" /e"BLINK.err"
Warning[205] E:\PIC\BLINK.ASM 2 : Found directive in column 1. (PROCESSOR)
Error[113] E:\PIC\BLINK.ASM 5 : Symbol not previously defined (XT_OSC)
Warning[205] E:\PIC\BLINK.ASM 10 : Found directive in column 1. (cblock)
Warning[205] E:\PIC\BLINK.ASM 11 : Found directive in column 1. (ENDC)
Warning[205] E:\PIC\BLINK.ASM 13 : Found directive in column 1. (org)
Warning[203] E:\PIC\BLINK.ASM 14 : Found opcode in column 1. (goto)
Warning[205] E:\PIC\BLINK.ASM 16 : Found directive in column 1. (org)
Warning[203] E:\PIC\BLINK.ASM 17 : Found opcode in column 1. (goto)
Error[118] E:\PIC\BLINK.ASM 17 : Overwriting previous address contents (0000)
Error[118] E:\PIC\BLINK.ASM 17 : Overwriting previous address contents (0000)
Warning[205] E:\PIC\BLINK.ASM 20 : Found directive in column 1. (banksel)
Warning[203] E:\PIC\BLINK.ASM 21 : Found opcode in column 1. (CLRF)
Message[302] E:\PIC\BLINK.ASM 21 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[205] E:\PIC\BLINK.ASM 23 : Found directive in column 1. (banksel)
Warning[203] E:\PIC\BLINK.ASM 25 : Found opcode in column 1. (movlw)
Warning[203] E:\PIC\BLINK.ASM 27 : Found opcode in column 1. (movwf)
Error[113] E:\PIC\BLINK.ASM 29 : Symbol not previously defined (Loop)
Warning[205] E:\PIC\BLINK.ASM 32 : Found directive in column 1. (End)
Error[173] E:\PIC\BLINK.ASM 33 : source file path exceeds 62 characters (E:\SCIENCE\MICROCONTROLLER\PIC\MPLAB IDE\MCHIP_TOOLS\P16F84.INC)
Halting build on first failure as requested.
BUILD FAILED: Mon Sep 19 21:06:04 2005
Please help!! thanks in advance!!
PROCESSOR 16F84
#INCLUDE "p16f84.inc"
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & XT_OSC
;**** declaration and variables*****
cblock 0x0c
endc
org 0x00
goto Main
org 0*04
goto Main
Main
banksel TRISB
CLRF TRISB
banksel PORTB
movlw 0xff
movwf PORTB
LOOP goto Loop
End
and the error message is:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "E:\science\Microcontroller\PIC\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p16F84 "BLINK.asm" /l"BLINK.lst" /e"BLINK.err"
Warning[205] E:\PIC\BLINK.ASM 2 : Found directive in column 1. (PROCESSOR)
Error[113] E:\PIC\BLINK.ASM 5 : Symbol not previously defined (XT_OSC)
Warning[205] E:\PIC\BLINK.ASM 10 : Found directive in column 1. (cblock)
Warning[205] E:\PIC\BLINK.ASM 11 : Found directive in column 1. (ENDC)
Warning[205] E:\PIC\BLINK.ASM 13 : Found directive in column 1. (org)
Warning[203] E:\PIC\BLINK.ASM 14 : Found opcode in column 1. (goto)
Warning[205] E:\PIC\BLINK.ASM 16 : Found directive in column 1. (org)
Warning[203] E:\PIC\BLINK.ASM 17 : Found opcode in column 1. (goto)
Error[118] E:\PIC\BLINK.ASM 17 : Overwriting previous address contents (0000)
Error[118] E:\PIC\BLINK.ASM 17 : Overwriting previous address contents (0000)
Warning[205] E:\PIC\BLINK.ASM 20 : Found directive in column 1. (banksel)
Warning[203] E:\PIC\BLINK.ASM 21 : Found opcode in column 1. (CLRF)
Message[302] E:\PIC\BLINK.ASM 21 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[205] E:\PIC\BLINK.ASM 23 : Found directive in column 1. (banksel)
Warning[203] E:\PIC\BLINK.ASM 25 : Found opcode in column 1. (movlw)
Warning[203] E:\PIC\BLINK.ASM 27 : Found opcode in column 1. (movwf)
Error[113] E:\PIC\BLINK.ASM 29 : Symbol not previously defined (Loop)
Warning[205] E:\PIC\BLINK.ASM 32 : Found directive in column 1. (End)
Error[173] E:\PIC\BLINK.ASM 33 : source file path exceeds 62 characters (E:\SCIENCE\MICROCONTROLLER\PIC\MPLAB IDE\MCHIP_TOOLS\P16F84.INC)
Halting build on first failure as requested.
BUILD FAILED: Mon Sep 19 21:06:04 2005
Please help!! thanks in advance!!