AnsweredAssumed Answered

Sample rate killer

Question asked by dinrail on Jun 5, 2013
Latest reply on Jul 18, 2013 by MMA

I am putting a mux in front of ADuCM361, so I have to change gain in ADC ISR when I switch channels

 

I start with your Meter example and set the sample rate to 2000 S/s. At this point, the gain is not touched in ISR, and the software runs as expected, 2000s/s

 

Once I add the code in ISR to change the gain

 

int TempADC=pADI_ADC1->MDE&0xff0f;

pADI_ADC1->MDE = TempADC|((gain&0x70));

 

The data rate is changed!

 

How can I get around this?

Outcomes