Yup, i had an answer from Charles that confirm a issue of those 16F88x serie. He suggest this work around
Code:
DEFINE ADC_BITS 8 ' ADCIN resolution (Bits)
DEFINE ADC_CLOCK 0 ' Work around that sets Vref bits in ADCON1
DEFINE ADC_SAMPLEUS 50 ' ADC sampling time (uSec)
ADCON0=ADCON0 | %11000000 ' Work around that sets ADCS in ADCON0
i've tested it here, and it's working. So now, you have 2-3 different way to make it work.
Last edited by mister_e; - 14th June 2007 at 19:14.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks