Hi,

>The rest of code is :

Is it? You're calling VolDn but I don't see that in the code but I guess there's nothing to do with the ADC there?

Anyway, have you tried using ADCIN just to see if the message from ISIS goes away then?
I'm asking beacuse the DEFINE ADC_SAMPLUS 50 is for use with the ADCIN command I don't think it does anything for you when you run the ADC "manually". Alternativaly, whenever you're doing a converstion try:
Code:
ADCON0 = %10001001    ' Right justify, VRef=Vdd, select AN2, enable ADC.
PAUSEUS 100     
ADCON0.1 = 1          ' Start conversion
WHILE ADCON0.1 = 1 : WEND
adval.HighByte = ADRESH
adval.LowByte = ADRESL
In this case I don't think anything of it really matters since you're always sampling the same channel but it might be worth a try just to see if ISIS stops generating the message.

Finally, you're doing DEFINE ADC_CLOCK 3 but then you're overriding that by manually setting ANSEL to %00010100 which will set the ADC Clock to FOsc/8 instead of FRC. I don't think that's a problem in this case though.

/Henrik.