On 03/25/10 12:35 pm, Sebastien Lelong wrote:
                                        So the idea is users just
have to tell which ADC channel (where x means pin ANx from datasheet)
they want to activate/deactivate. If user says "set_analog_pin(5), then
it should act on pin AN5 (not RA5 for instance).

Agreed!

The question now is: what if there's no AN5 pin?

No pin_AN5 on the particular PIC then you cannot use ADC channel 5.

I think what you've done must actually be k.
> Normalization is now in device files for these PICs, so my
normalization step in ADC libs is now wrong, you were right, I read all
of this too fast.

In my view it has always been like this (except that I made mistakes with the numbering of the JANSEL_ANS bits). This is confirmed by my doc (devicefiles.html) which hasn't changed on this point for some time. But when I read it now I think the example and text need improvement and a better example (showing gaps and irregularities, e.g. with the 16F722).

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