sky60717
Newbie level 3
how to use TMR0 to generate precise 1ms delay? in assembly
dear all wanna ask about how to use TMR0 to get precise 1ms?
TMR0 rate is
1:2
1:4
1:8
1:16
1:32
1:64
1:128
1:256
and its working with 4MHZ(must)
what i know now is 4MHZ/4= 1000000
1000000/256=3906.25
1/3906.25=0.000256s
but how can i get 1ms?
plz give me some example and tell me how to set for tmr0
from my lecture notes: i should use banksel option?
is that rite?
thank you very much!
dear all wanna ask about how to use TMR0 to get precise 1ms?
TMR0 rate is
1:2
1:4
1:8
1:16
1:32
1:64
1:128
1:256
and its working with 4MHZ(must)
what i know now is 4MHZ/4= 1000000
1000000/256=3906.25
1/3906.25=0.000256s
but how can i get 1ms?
plz give me some example and tell me how to set for tmr0
from my lecture notes: i should use banksel option?
is that rite?
thank you very much!