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.

CCS/MSP430F435: Reading a sample ADC12 Memory Register

Part Number: MSP430F435

Tool/software: Code Composer Studio

Hi all,

Concerning ADC12MEM access;

Say I have a variable: subChannel (and for this example is equal to 5)

If I were to use:

"int sampleTst* = (int *)(ADC12MEM + subChannel);"

Woulds this return the contents of the ADC12MEM5 (subChannel = 5) to sampleTst? 

Thanks in advanceed!

  • No. There's probably a small edit which would make this legal, but it would still be hard to read. I suggest rather:

    > int sampleTst = ADC12MEM[subChannel];

    I'm supposing that subChannel refers to the MCTLn number, not the INCH_m (Am pin) number, since they aren't necessarily the same.

**Attention** This is a public forum