Hi Joep,

2010/9/25 Joep Suijs <[email protected]>

> Hi Seb,
>
> Could you comment on:
>
> 2010/9/20 Joep Suijs <[email protected]>:
> > Below seems to be related to the compiler. But there is also an issue
> > with library: no_vref should be 2 for 5/0, not 9.
>

Does it work with 9 ? I'm asking because 9 would give 6 analog pins, since
16f876a has only 5 analog pins, I was wondering if it'd work (5 analogs
being included in 6). In this case, 0 would have been another "good" answer
too (8 analogs, amongst 5 included).

This also explains the behavior. ADC lib generator/template is tricky about
this, when multiple PICs with different analog pins number. I'll try to fix
this to get a proper code. But which would it be ? Consider table page 128,
datasheet 39582. ADC lib template actually consider all possibilities, one
possibility overwriting the prior one. So when deciding which config bits it
should keep for 5 analogs and 0 vref, it has considered 0b000, then replaced
it with 0b0010 (the one you'd like), then 0b1001.


Cheers,
Seb

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