AnsweredAssumed Answered

ADuCM360 ADC

Question asked by florian891 on Apr 25, 2014
Latest reply on Apr 29, 2014 by MMA

hello!

 

I have two problems:

     -I can not put my ADC unipolar (when I try to put in unipolar, ADC not converted)

     -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

Outcomes