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.

MSPM0L1228: Regarding the ADC operation during conversion

Part Number: MSPM0L1228

Tool/software:

I have a question about updating registers during ADC conversion.

It is not recommended to change settings or issue start/stop conversion commands during ADC conversion. However, if such commands are issued via an API, what behavior can be expected in the following cases?

・Change of Sampling Time

Changing sampletime0 from 1µs to 10µs (using DL_ADC12_setSampleTime0).

・Start/Stop Conversion Command

Updating the value of CLT1.SC (using DL_ADC12_startConversion / DL_ADC12_stopConversion):

・Updating from 1 to 0: The ADC will stop after the current conversion is completed.
・Re-setting to 1: Since the setting is the same, the command will be discarded.
For example, in case 1, the setting change will apply from the next conversion. In case 2, if updated from 1 to 0, the ADC will stop after the current conversion, and if re-set to 1, the command will be ignored since the setting is the same.

Is this behavior correct?