We may be able to check if T0CON_PSA is defined to find the lowest 
possible T0CON_T0PS prescaler ratio

Matt.

On Saturday, January 23, 2016 at 4:20:23 PM UTC-5, RobH wrote:
>
>
> Hi Matt, 
>
> On 01/23/2016 09:50 PM, Matthew Schinkel wrote: 
> > Some midrange PICs have the option of choosing 16 bit instead of 8 bit 
> > on timer0 
> I could only find this with the 16f183xx and 16f188xx 
> > 
> > I've found a difference in the prescaller for some timers. Timer 0 on 
> > both PICs have a 1:2 lowest prescaller ratio, where other timers are 
> > 1:1. This explained my trouble with TIMER0 in 16 bit mode on 18f4620. 
> > You should use timer1/2 
> > 
> > How can the timer lib know what the ratio is without programming every 
> > PIC into the servo lib? Is it enough to go by type? 
> Maybe it is possible to select by core (PIC_14/14H/16), or by a 
> declaration of a specific SFR or bit in the device files. Needs some 
> analysis/verfication. 
> > 
> > If your timer1 sample works, add it to jallib. 
> I'll experiment a little more, but if it works properly I'll add it. 
>
> Regards, Rob. 
>
> -- 
> *Rob H*amerling - http://www.robh.nl 
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to