Hi.
I need read the external voltage in input P030, and the battery backup voltage in P031.
If I read using only one channel, the P030 (AIN6 ) the value that show is correct 3625 mv (external voltage), and the value is the same like the multimeter measuring the input pin.
If I read using only one channel, the P031 (AIN7 ) the value that show is correct to 2600 mv (backup battery voltage) , and the same in multimeter.
The problem occurs when I want to take the reading of both inputs in two channels at the same time, in the while(true) loop. It shows the value of pin P031 on both channels, 2650 mv. But in the circuit when I measure the voltage , por example in P030 = 10 mv (without external power) , and P031 2650 mV the value of the battery, But the channel 0 and channel 1 has the same value.
The configuration in nrf52dk_nrf52832.overlay file is
The example was taking from the intermediate course ADC Lession 6
*********************************************************************************
the main.c file is
Thank you in advance