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.

MSPM0G3507-Q1: getMemResult vs ULLMEM.MEMRES

Part Number: MSPM0G3507-Q1

Tool/software:

Hello,

If we call DL_ADC12_getMemResult(ADC0, 0), pReg is &ADC0->ULLMEM.MEMRES[0], and the result address is (&ADC0->ULLMEM.MEMRES[0]) + DL_ADC12_SVT_OFFSET, which will be read and return the 16-bit result.

If we use ADC0->ULLMEM.MEMRES[0], the result address is &ADC0->ULLMEM.MEMRES[0], note there is no offset DL_ADC12_SVT_OFFSET.

From the simulation result both are correct, but they are different implementations.

Is there a difference from a efficiency, size or other aspect?

Thank you and best regards,
Ambroise