Pappee
New Member
Hi All!
I would like to make a led flasher. I read a source code, what includes the light-time of led.It is:
Please help me to understand this code...
Could someone tell me, how can i calculate the lighting time of the led when i use a 10Mhz oscillator?
Please write someone a sort source, that drives a led for example:
500 ms ON
1 s OFF
Thanx a lot:
Pappee
I would like to make a led flasher. I read a source code, what includes the light-time of led.It is:
Code:
t1m movlw d'2'
movwf cnt1m
tm1lp1 movlw d'249'
movwf cnt500u
tm1lp2 nop
nop
decfsz cnt500u,f
goto tm1lp2
decfsz cnt1m,f
goto tm1lp1
return
Could someone tell me, how can i calculate the lighting time of the led when i use a 10Mhz oscillator?
Please write someone a sort source, that drives a led for example:
500 ms ON
1 s OFF
Thanx a lot:
Pappee