Try changing the ADC_CLOCK to 2 or 3.
FOSC/8 is too fast for 20mhz.
Datasheet says max of 5mhz OSC with FOSC/8.
FOSC/32 (ADC_CLOCK 2) should work at 20Mhz.
But, FRC (ADC_CLOCK 3) will work at any OSC.
HTH,
Try changing the ADC_CLOCK to 2 or 3.
FOSC/8 is too fast for 20mhz.
Datasheet says max of 5mhz OSC with FOSC/8.
FOSC/32 (ADC_CLOCK 2) should work at 20Mhz.
But, FRC (ADC_CLOCK 3) will work at any OSC.
HTH,
DT
Bookmarks