when writting the main source code is it possible to know what ADC channel ( ADC0....ADCn ) GPIO input is connected to a voltage source ?
On the ADuC702x parts you can use the PLA-Inputs to generate a interrupt or the External Interrupt Inputs directly - on the newer parts like ADuC7023, ADuC7121/22 and ADuC7124/26 also edge triggered.
For the ADC there is only one input - to the comparator - which can be used to generate a interrupt on a rising/falling input level.Otherwise you only can check in a periodic cycle the input levels on digital and analog inputs - possibly in a timer interrupt.
In particular for the shown diagram - where you want to use P1.0, you can use the PLA to generate a interrupt - take look into the help file on how to generate i.e. a edge triggered interrupt with the PLA.
Sorry I do not understand this question - normally this under your control how you connect the signals and than how you configure the I/Os.
I want to execute a process when a voltage source arrives on P1.0 for example.
if ( signal arrives on P1.0) // i need the syntax to check this condition.
if( signal arrives on P1.x ) //
in sum when data is written on Gpxdat i want to know from which channel it comes from ... // same situation on ADC chanel ..
Retrieving data ...