hi,can someone tell me how to use timer0 in pic16f628 as a counter.an example like counting the pulses of an inputed puls signal using timer0.
thank you.
hi,can someone tell me how to use timer0 in pic16f628 as a counter.an example like counting the pulses of an inputed puls signal using timer0.
thank you.
I'm on cellphone, can't post details.
Search here for DT INTERRUPTS, use that to make a 1 second timer, then count how many times the input pin goes high.
Robert
EDIT: For better sampling, use 60 sec timer and divide by 60.
Last edited by Demon; - 2nd May 2012 at 20:50.
code example, search for frequency counter, pulse counter, olympic timer etc.... even of grandpa 16f84 template are still valuable...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks