Hi and thanks for the quick answer,
so i have to initialize the ADC again, after each channel is convertet?
if(channel1_flg)
{
AdcPin(pADI_ADC1,ADCCON_ADCCN_AIN0,ADCCON_ADCCP_AIN1);
AdcGo(pADI_ADC1,ADCMDE_ADCMD_SINGLE);
}
if(channel2_flg)
{
AdcPin(pADI_ADC1,ADCCON_ADCCN_AIN0,ADCCON_ADCCP_AIN2);
AdcGo(pADI_ADC1,ADCMDE_ADCMD_SINGLE);
}
And in the interrupt set some flag to controll the initialisation.
thanks alot
Phil