timothyjackson
New Member
Hello. I'm trying to understand nigels delay routine (still new to pic's). Is some able to explain whats happening here in baby language for me please? its a 250ms delay routine, used in pulsing led's on and off.
Delay movlw d'250'
movwf count1
d1 movlw 0xC7
movwf counta
movlw 0x01
movwf countb
Delay_0
decfsz counta,f
goto $+2
decfsz countb,f
goto Delay_0
decfsz count1,f
goto d1
retlw 0x00
end
many thanks.
Delay movlw d'250'
movwf count1
d1 movlw 0xC7
movwf counta
movlw 0x01
movwf countb
Delay_0
decfsz counta,f
goto $+2
decfsz countb,f
goto Delay_0
decfsz count1,f
goto d1
retlw 0x00
end
many thanks.