ADCON0 |= (channel & 0x07) << 2;
#else /* all other devices */
ADCON0 |= (channel & 0x07) << 3;
#endif
/* setup fosc */
ADCON0 |= (channel & 0x07) << 2;
#else /* all other devices */
ADCON0 |= (channel & 0x07) << 3;
#endif
/* setup fosc */
ADCON2 |= (config & ADC_FRM_RJUST);
#else /* all other devices */
ADCON1 |= (config & ADC_FRM_RJUST);
ADCON2 |= (config & ADC_FRM_RJUST);
#else /* all other devices */
ADCON1 |= (config & ADC_FRM_RJUST);