I never had any luck with DEFINE ADC_BITS 8 it allways wanted to work in 10 bit. But if you only need 8 bit, do an ADCIN with DEFINE_BITS 10 to a word variable then divide the answere by 4.