Quantcast
Channel: EngineerZone : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 51060

ADuCM360 ADC

$
0
0

hello!

 

I have two problems:

     -I can not put my ADC unipolar (whenI try toputinunipolar,ADCnotconverted)

     -my conversion rate is really slow (I want to take a square signal 30Hz and above 1Hz ADC does not follow the signal)

 

Here is how I initialize my ADC:

 

void ADC1INIT(void)

{

   AdcMski(pADI_ADC1,ADCMSKI_RDY,1);              // Enable ADC ready interrupt source        

   AdcFlt(pADI_ADC1,124,14,FLT_NORMAL|ADCFLT_NOTCH2|ADCFLT_CHOP);

   AdcRng(pADI_ADC1,ADCCON_ADCREF_INTREF,ADCMDE_PGA_G4,ADCCON_ADCCODE_INT); // Internal reference selected, Gain of 4, Signed integer output

   // Turn off input buffers to ADC and external reference    

   AdcBuf(pADI_ADC1,ADCCFG_EXTBUF_OFF,ADCCON_BUFBYPN|ADCCON_BUFBYPP|ADCCON_BUFPOWP|ADCCON_BUFPOWN); 

   AdcPin(pADI_ADC1,ADCCON_ADCCN_AIN0,ADCCON_ADCCP_AIN1); // Select AIN1 as postive input and AIN0 as negative input

    pADI_ADCSTEP->DETCON = 0x88;

    pADI_ADCSTEP->STEPTH = 0x5FF;

}

 

 

Thank you for your help.

Best regards,

Florian


Viewing all articles
Browse latest Browse all 51060

Trending Articles



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