Sebastien Lelong 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.

Oh, it does. I 'thought' I had read another useful ADC doc but was unable to find it. I have not been able to get to the Blog site and thought it had been taken down.

Thank a lot for the link.

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