Quote Originally Posted by mitchf14 View Post
Define ADC_BITS 10 ' Set number of bits in result
Define ADC_CLOCK 0 ' Set clock source
Define ADC_SAMPLEUS 50' Set sampling time in uS
With ADC_CLOCK 0 (2TOSC), the maximum device frequency is 1.25 Mhz

With a 20 Mhz OSC, you need to use ADC_CLOCK 2, 6 or 3.

2 is the fastest (32TOSC).

hth,