Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Can somene please explain the procedure to initialize timers in 16f micro series.
For example a 4mhz clock with internal freq of 1mhz. And if i need a 10msec timer0 interrupt, what value do i need to put in tmro?
I dont have a code yet, but i got this
; 1 msec = 1000 pulses,1000/8=125 and it will fit into single byte
; so prescaler will be set AT 8 and assigned to TMR0,and TMR0 will be
; pre loaded with 131; (256-131)*8 =1000.
now assuming the above is right, how do we do a 10 msec interrupt?
10000 pulses is 10msec, if prescaler set at 64
so 10000/64=157 and it will fit into single byte
so prescler will be 64? assigned to tmr0 so preloaded with 99?so (256-99)*64=10,048(approx)
So jitter is ok? Do you know what jitter means?