hi! i'd lik to use a 1s delay! can anybody help me? this is what i'v done so far
delay
movlw D'333333'
movwf count1
loop
decfsz count1,1
goto loop
return
end
i got the value 333333 using this formula: XX= (TD-5us)\3
xx is the value to decrement
TD is the required time delay
but this is not working! the led is constantly on. i know that the max value i can use is 255(11111111), but i need 1s delay! with 6MHZ XT.
can anybody help with a formula or method wich i can use for any delay?
thanx
delay
movlw D'333333'
movwf count1
loop
decfsz count1,1
goto loop
return
end
i got the value 333333 using this formula: XX= (TD-5us)\3
xx is the value to decrement
TD is the required time delay
but this is not working! the led is constantly on. i know that the max value i can use is 255(11111111), but i need 1s delay! with 6MHZ XT.
can anybody help with a formula or method wich i can use for any delay?
thanx