On the ADuC7061 for the auxiliary ADC the ADC6, ADC7, ADC8 & ADC9 inputs do not work as expected. The other channels ADC2 to ADC5 are working as expected. Is there something wrong with the chip?
Due to the limited number of pin's (32) on a ADuC7061 the ADC6, ADC7, ADC8 & ADC9 inputs on the auxiliary ADC are multiplexed with the GPIO's P0.0 to P0.3. To select the analog input functionality on this 4 pin's, GP0CON1 need to be be set as outlined in the data sheet (REV. B) on page 102.
Have you every tried it with actual chip?
I can not write GP0CON1=1
Attached a simple project for the ADuC7061 MiniKit just tested again to be working. Measuring the uni-polar voltage on ADC6 input.
ADC5 = AGND
ADC6 = 0.1V to 1.2V (Vref)
Output @ 9600 Baud via UART => on the MiniKit's virtual USB-COM-port
Output is the HEX-ASCII-String for the raw ADC-Value and the calculated Voltage.
Retrieving data ...