Datasheet

133
A/T89C51CC01
4129N–CAN–03/08
// clear the field SCH[2:0]
ADCON and = F8h
// Select the channel
ADCON | = channel
// Start conversion in precision mode
ADCON | = 48h
Note: to enable the ADC interrupt:
EA = 1