Quote Originally Posted by lerameur View Post
ok, but what about this loop here, can i do that, having multiple a/d conversion on one chip ?

loop:
ADCON0 = %10000001 ' Configure and turn on A/D Module
ADCIN porta.0, input1
pause 50

ADCON0 = %10001001 ' Configure and turn on A/D Module
ADCIN porta.1, input2
pause 50

From the definition of ADCON0, I can only choose one pin for A/D conversion. Maybe thats why it get mixed up .
You can do A/D on more than one pin, just not at the same time. I'm not sure why it didn't work for you in the one post. Maybe not waiting long enough between conversions and/or long enough between switching A/D channel assignment. I think you have to wait awhile, not only after the last conversion, but after you switch the channel, which ADCIN does for you. So, again, not sure. I'll think on it. Until then, double check your configuration, TRIS assignments, ADCON setup, etc.etc.
And you shouldn't have to use more than one channel for your project, unless I missed something there too...