This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5359: ADC12 : Readout ADC-value from memory-register, volatilily

Part Number: MSP430F5359


Hi,

regarding ADC12 module I have a question of the volatilety of the  ADC12MEMx -register.

In our application we read out the ADC12MEMx -reg directly after reset of bit ADC12ON.

Could this sequence (switch off before reading) cause some problem with the volatility

of the memory register in case of an interrupt occuring at point y and needs some time

before reading the adc value ?

   

PseudoCode:

init_adc(); with start of conversion

... ~ 1ms

        /* Disable conversion */
        ADC12CTL0 &= ~ADC12ENC;

        /* Turn ADC off */
        ADC12CTL0 &= ~ADC12ON;

       /* point y*/

/* Store the reading */
 g_adc = ADC12_MEMORY;

Thank you in advance for your help...

**Attention** This is a public forum