ashwini jayaraman
Member level 2
Code:
This is the program:
Delay = 1 seconds
; Clock frequency = 11.0592 MHz
; Actual delay = 1 seconds = 2764800 cycles
; Error = 0 %
cblock
d1
d2
d3
endc
Delay
;2764795 cycles
movlw 0xDA
movwf d1
movlw 0x07
movwf d2
movlw 0x07
movwf d3
Delay_0
decfsz d1, f
goto $+2
decfsz d2, f
goto $+2
decfsz d3, f
goto Delay_0
;1 cycle
nop
;4 cycles (including call)
return