Hi
Thanks to all professioanls over here,
i have made this program to have 5 sec. delay to on and off LED. but it is not working properly. Any suggestion
;*******************************************************************************
;Equates
TMR0 equ 01h
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
OPTION_REG equ 81h
COUNT1 equ 08h
COUNT2 equ 09h
;*******************************************************************************
bsf 03h,5
movlw b'00010'
movwf 85h
bcf 03h,5
movlw b'00000111'
movwf 81h
movlw 01h
start xorwf 05h
call delay
goto start
delay
loopA clrf TMR0
movf 01h
sublw .160
btfss 03h,2
goto loopA
retlw 0
return
end