Hi Sebastien,

Maybe will help if you can add on your tutorial an analogy with a
linear potentiometer, having two "gradations". On top, pins involved,
and bellow, the number of analog channels required. The linear
potentiometer is moving from right to left (as in datasheet) to a
desired number of analog channels (ADC_NCHANNEL) and we can see on top
which physical pins are involved.

This can be made on a html page on justanotherlanguage.org site...
maybe something graphical and interactive using processingjs? (http://
processingjs.org)

Vasi(funlw65)

On Jan 8, 8:54 am, Sebastien Lelong <[email protected]>
wrote:
> Hi Wayne,
>
> I'm afraid I'm not sure to understand the problem.
>
>
>
> > The question is:  If enabling digital io disables the ADC and vice-versa
> > what is the suggested jallib way to accomplish my goal?
>
> What is the "vice-versa" ? When "enabling_digital_io()", *all* pins becomes
> digital. When you setup ADC, then call "adc_init()", only those configured
> as ADC becomes analog, other remains digital. So you should be able to
> configure one pin as ADC, and use one remaining digital for your LCD.
>
> About ADC, an important thing to know is some PICs have their ADC pin
> independent (from all available ADC pins, you can choose the ones you want,
> whatever the order), and some PICs have their ADC pins dependent (you can
> only select some kind of preconfigured ADC channels, eg RA0, RA1 and RA2 for
> 3 ADC, but you can't select RA0, RA1 and RA5).
>
> This post may help you, this is not a tutorial, and information may be
> outdated, but worth reading I guess...:
>
>    http://jallib.blogspot.com/2009/07/using-new-adc-libraries.html
>
> (well, it might be considered as a tutorial, I may need to put it in the
> DITA book).
>
> Hope it helps.
>
> Cheers,
> Seb
> --
> Sébastien Lelonghttp://www.sirloon.nethttp://sirbot.org
-- 
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