1. Using the following code, I would like to know if using a higher ADC_SAMPLEUS will make adcin with more stable/accurate result?
2. How about the min delay before executing adcin again?
Code:DEFINE OSC 20
Define ADC_BITS 10 ' Set number of bits in result
Define ADC_CLOCK 3 ' Set clock source (3=rc)
Define ADC_SAMPLEUS 50 ' Set sampling time in uS
ADCON1= %00001001
loop:
ADCIN 0, adval ' Read channel0 RA.0
ADCIN 1, adval2 ' Read channel1 RA.1
pauseus 100
goto loop