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.

MSPM0G3107-Q1: ENC is Clear even PWRDN is set

Part Number: MSPM0G3107-Q1
Other Parts Discussed in Thread: MSPM0G3507

Tool/software:

I'm come back again,

So I have took your exemple project adc12_triggered_by_timer_event_LP_MSPM0G3507_nortos_ticlang with mspm0_sdk_2_04_00_06

but with repeat option will see adc continous sampling (normal)

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/ADC_repeat_option

but without repeat option only first trigger works

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/ADC_without_repeat_option

only first Event is taken

But even I have ADC12_CTL0_PWRDN_MANUAL setted, In datasheet say below ADC power off only BY SOFTWARE.

but when I set ENC after each sampling, stange but is works like I expect !

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/re-enable_ADC_after_each_convertion

  • Hi Pierre,

    If not in repeat mode the ADC will need to have the enable conversions bit set after every sample so this is expected behavior. The Power mode will adjust power usage and start up time (if in auto mode it takes 3 ULPCLK cycles for the ADC to start the sampling which will increase the total time it takes for a process). 

    Another thing you can do is set the ADC to be in repeat mode, but set the trigger to require another ADC trigger to move to the next conversion register. With the MEMCTL[y].TRIG set to 1, it will require another trigger for the next sample to happen.

    Section 12.2.10 Conversion modes in the MSPM0G TRM

    I also looked at your code a bit, I do see you're doing a simultaneous sampling using 2 separate events. The last 4 event channels 15-12 are 1:2 events, so you can have 1 publisher and 2 subscribers. This will let you trigger both ADCs from the same event using only 1 event channel.