I wrote the following cording in MPLAB and created the .HEX file.
and i used PICprog4u to program the IC.
;*****Set up the Constants*****
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
CounterL equ 0Dh
CounterH equ 0Eh
;*****Set up the port*****
bsf STATUS,5
bcf TRISA,0
bcf STATUS,5
;*****Turn the LED on*****
Start bsf PORTA,0
;*****Delay loop1*****
Loop1 decfsz CounterL,1
goto Loop1
decfsz CounterH,1
goto Loop1
;*****Turn the LED OFF*****
bcf PORTA,0
;*****Delay loop2*****
Loop2 decfsz CounterL,1
goto Loop2
decfsz CounterH,1
goto Loop2
goto Start
end
but when i open this .HEX file in the above PIC programming software it gives the warning " configuration word was not in the HEX file ! "
and the PIC doesn't work.
please help me to come up with this problem, because I'm new to this field..
THANK YOU !!
and i used PICprog4u to program the IC.
;*****Set up the Constants*****
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
CounterL equ 0Dh
CounterH equ 0Eh
;*****Set up the port*****
bsf STATUS,5
bcf TRISA,0
bcf STATUS,5
;*****Turn the LED on*****
Start bsf PORTA,0
;*****Delay loop1*****
Loop1 decfsz CounterL,1
goto Loop1
decfsz CounterH,1
goto Loop1
;*****Turn the LED OFF*****
bcf PORTA,0
;*****Delay loop2*****
Loop2 decfsz CounterL,1
goto Loop2
decfsz CounterH,1
goto Loop2
goto Start
end
but when i open this .HEX file in the above PIC programming software it gives the warning " configuration word was not in the HEX file ! "
and the PIC doesn't work.
please help me to come up with this problem, because I'm new to this field..
THANK YOU !!