![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
My code Code: ;*************************************************************************************************** Processor 16F877A include <P16F877A.INC> __config _HS_OSC & _WDT_OFF & _PWRTE_ON ;*************************************************************************************************** ; VARIABLE STORAGE cblock 0x20 ;Start of gernal purpose Register BSF STATUS, RP0 ;Select Bank 1 BCF STATUS, RP1 MOVLW B'00000000' ;Set PortB All output MOVWF TRISB BCF STATUS, RP0 ;Select Bank 0 ;************************************************************************************************** ; PROGRAM CODE START MOVLW B'10101010' MOVWF PORTB NOP MOVLW B'01010101' MOVWF PORTB NOP End Code: Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F877A "Led.asm" /l"Led.lst" /e"Led.err" /o"Led.o"
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 14 : Illegal label (BSF STATUS)
Error[115] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 14 : Duplicate label ("RP0" or redefining symbol that cannot be redefined)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 15 : Illegal label (BCF STATUS)
Error[115] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 15 : Duplicate label ("RP1" or redefining symbol that cannot be redefined)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 16 : Illegal label (MOVLW B'00000000')
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 17 : Illegal label (MOVWF TRISB)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 18 : Illegal label (BCF STATUS)
Error[115] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 18 : Duplicate label ("RP0" or redefining symbol that cannot be redefined)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 24 : Illegal label (MOVLW B'10101010')
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 25 : Illegal label (MOVWF PORTB)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 26 : Illegal label (NOP)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 27 : Illegal label (MOVLW B'01010101')
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 28 : Illegal label (MOVWF PORTB)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 29 : Illegal label (NOP)
Error[121] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 31 : Illegal label (End)
Error[129] E:\PROJECTS\PIC\LED FLASHING\LED.ASM 32 : Expected (END)
Halting build on first failure as requested.
BUILD FAILED: Fri Dec 22 23:59:52 2006
i am learning from Nigel Goodwin's tutorials but i have PIC 16F877A I have some questions Q NO:1- Why these errors??? Q NO:2- It is necessary to add "P16F877A.INC" file in ur "***.mcp" window under the header button??? Q NO:3- It is necessary to add "16f877a.lkr" file in ur "***.mcp" window under the linker scripts button?? Q NO:4- Is the both files("P16F877A.INC"..."16f877a.lkr") should be in our working directory??? Thanks Last edited by Ayne; 22nd December 2006 at 07:17 PM. | |
| |
| | #2 |
|
add an endc command after cblock also indent the last END statement. You also don't need the (Q3) Linker Script or (Q2) Include file in the screenshot, you alread have them defined in the program. Code: ; VARIABLE STORAGE
cblock 0x20 ;Start of gernal purpose Register
endc
__________________ Bill Home of the Firefly PIC Tutor Inchworm ICD2 http://www.blueroomelectronics.com Last edited by William At MyBlueRoom; 22nd December 2006 at 10:52 PM. | |
| |
| | #3 |
|
Problem Solved, Thank u. But Q4 remaining | |
| |
| | #4 | |
| Quote:
| ||
| |
|
| Tags |
| build, error, needed, pic |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| SMPS power suply modify or build plss | Raducu | General Electronics Chat | 12 | 9th February 2006 01:53 AM |
| Innovative New Headphone Amp Help Needed. | raid517 | Electronic Projects Design/Ideas/Reviews | 20 | 1st December 2005 12:38 PM |
| help needed on telephone related project | nivvy | Electronic Projects Design/Ideas/Reviews | 0 | 9th October 2005 03:45 PM |
| Massive ERRORS in program. URGENT HELP NEEDED. | davepusey | Micro Controllers | 8 | 18th May 2004 05:13 AM |
| To design and build a 6V NiMH 9000mAh battery charger | kiwibikey | Electronic Projects Design/Ideas/Reviews | 1 | 28th March 2004 06:58 PM |