On Apr 10, 12:15 pm, William <[email protected]> wrote:
>
> If my back-of-envelope calculations are correct, with a 20MHz crystal,
> and timer0 in 8-bit mode, the longest period (timer overflow) is 13mS,
> and with the other timers: 1,2,3, the biggest prescaler is only 8, so
> I can only get about 100mS period. If timer0, in 16-bit mode with 256
> prescaler really works, I should be able to get almost 3.5 seconds
> before overflow.  I'll give it a try.
>

I tried the 16-bit mode and it seems to work as expected - but the
init routine doesn't allow for sub-Hz rates, so I added some optional
constants that allow finer control.  I haven't done any testing with
16F devices yet.

Feedback welcome!

William

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to