I have the following problem, P0.23 and P0.24 are Select as AD0.0 and AD0.1, when I read of the channels, they have the same Voltage as AD0.2 on P0.25, but nothing stands in the schematics of P0.23 and P0.24, they are not connected or am I wrong?
"I checked the source code again with debuging, and its correct!"
Are you saying that the code you checked is not the same as the code you posted?
Because the code you posted assigns the ADC value to one variable (dac_Vin). But uses a completely different variable (adc_Ain) for converting from ADC ticks into voltage.
If you never assign a new value to adc_Ain - how can you then use it to represent the new ADC value?
I checked the source code with debuging, after i correct the source code!
and so must it be the connecting that are not be writen in the schematics!
etc.:
I work on a MCB1760 evaluation board, and on the schematic pdf of MCB1760, the P0.23 and P0.24 are not connected to anything, but if I have the pins as described above as AD0.0 and AD0.1 select, they get the same voltage as AD0.2 select???
Don't try to measure voltages for unconnected pins.
When used as digital inputs, they normally have a weak pull-up enabled (unless you disable the pull-up or switches it to pull-down).
But what holds the pins at a known state when you change them to ADC inputs, if you haven't connected any external signals to the pins?
Nonsense!