Hi William,

On 04/09/10 11:11 pm, William wrote:

Now my next issue-- is there a portable way to detect that for this
chip, the timer0 is 16-bit capable?  I was thinking of checking
whether T08BIT is defined, but is there a cleaner way?

As far as I know of all baseline and midrange PICS Timer0 is 8-bits and (only) of the 18Fs Timer0 is 16-bits.

Timers are binary fields and have no bit enumeration in the device files, so you won't find T08bit or something alike.

When Timer0 is 16-bits you will probably find TMR0, TMR0L and TMR0H.

You could analyse the device files (grep TMR0) to check these 'assumptions'.

Regards, Rob.

--
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--
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