Hi,
I'm planning on using the hardware timer to genrate a clock, freeing up the chip to do other things.
I had been planning that whenever the timer overflowed (on a 16F768), a service routine would be called that would incremement a counter. This counter would be constantly polled in the main program, and when it reached some value, anther counter could be incremented, and the first reset (because I can only count up to 256 in one variable), and so on ...
I'm planning t generate a clock at betweeen 1Hz-->10Hz.
Does this sound reasonable?
I've come across Prescalers in some literture as well, but it is all a bit confusing - how are they used, and how can I calculate interrupt period ...?
Bookmarks