I've added to Github experimental device files for the 16[l]f18313/323, just to show the differences in naming conventions of the ADC pins (compared to the 'old' naming) and how these device files may provide working aliases for the ADC libraries. Hopefully someone has time to have a look and comment.....
Rob.

On 2015-07-24 17:22, Rob Hamerling wrote:

Hi guys,

In the datasheet of the 16f18313/23 I found that ADC pins are
differently named/numbered than before (ANx aliases are not anymore
sequentially named). For example with the 16f18323 AN3 is not present
while AN4 and AN5 are. AN6 to 15 are not present while AN16 to 21 are
present.
Note that the aliases in are in the datasheet really named ANAx and
ANCx, corresponding the port/pin.

In the part we adopted  "JANSELx" alias naming of the ADC pins
corresponding to the channel number. If we want to continue this we
would get in this case JANSEL0,1,2,4,5 and JANSEL16,17,18,19,20,21.
Seems the way to go, but I do not know if the ADC libraries would work
this way for these PICs.

Comments and suggestions  are welcome!

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 http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to