Hi I am using th internal adc of the 8051 mcu . I need to use all the pins of port 1 as adc. But for a specific function I need to use pin 1.1 , for another function ,pin 1.2 ......
Is there any code to initialize each pin as an internal adc ??
According to the uC data sheet here under (page 87) "The channel select bit in ADCF register define which ADC channel/port1 pin will be used as ADCIN. The remaining ADC channels/port1 pins can be used as general purpose I/O"