Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Re: ADuCM360 ADC Question

$
0
0

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


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>