Hi....I m new in microcontroller..As a starter i m tring to compile a simple program to turn a led on and off......But everytime i try to build a project it fails...I m following the steps as follows...selecting the device then project wizard>select the device>select the language tool>create a new project>addexisting files (both the asm and linker file)>finish...And after that whenever i go to 'build all' step it fails to build the project....M i doing anything wrong?...I m using MPLAB version 8.00 and this is my program and i m using PIC 16F84.....Can someone help me out here please...thanx a lot
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
COUNT1 equ 08h
COUNT2 equ 09h
;****Set up the port****
bsf STATUS,5
movlw 00h
movwf TRISA
bcf STATUS,5
;****Turn the LED on****
Start movlw 02h
movwf PORTA
;****Add a delay
call Delay
;****Delay finished, now turn the LED off****
movlw 00h
movwf PORTA
;****Add another delay****
call Delay
;****Now go back to the start of the program
goto Start
;****Here is our Subroutine
Delay
decfsz COUNT1,1
goto Loop1
decfsz COUNT2,1
goto Loop1
return
;****End of the program****
end
;##############################

STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
COUNT1 equ 08h
COUNT2 equ 09h
;****Set up the port****
bsf STATUS,5
movlw 00h
movwf TRISA
bcf STATUS,5
;****Turn the LED on****
Start movlw 02h
movwf PORTA
;****Add a delay
call Delay
;****Delay finished, now turn the LED off****
movlw 00h
movwf PORTA
;****Add another delay****
call Delay
;****Now go back to the start of the program
goto Start
;****Here is our Subroutine
Delay
decfsz COUNT1,1
goto Loop1
decfsz COUNT2,1
goto Loop1
return
;****End of the program****
end
;##############################