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.

LP-MSPM0L2228: Periodic timer event triggers ADC

Part Number: LP-MSPM0L2228
Other Parts Discussed in Thread: SYSCONFIG, MSPM0L2228

Tool/software:

Hi Experts,

I want to make below operation.

- Timer runs periodically and triggers ADC

- ADC measures an internal temperature sensor.

Attached is sysconfig file. I modified it from the sample code of uart_tx_multibyte_fifo_dma_interrupts for LP_MSPM0L2228_nortos_ticlang and added LCD settings. With this configuration, only single ADC conversion is triggred. What is the wrong? I want to run the timer and ADC in the background without the CPU, and the CPU reads out the ADC conversion results when needed. Could you please advice me?

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/166/uart_5F00_tx_5F00_multibyte_5F00_fifo_5F00_dma_5F00_interrupts.syscfg

Regards,

Uchikoshi

  • Two lines I don't see in this .syscfg:

    > ADC121.repeatMode                 = true;

    > ADC121.adcMem0trig                = "DL_ADC12_TRIGGER_MODE_TRIGGER_NEXT";

    The first allows consecutive (rather than just one) conversions. You get this with "ADC12->Sampling Mode Configuration->Enable Repeat Mode" (checkbox).

    The second keeps the ADC from progressing to the next conversion until the next trigger (otherwise it just runs as fast as it can). You get this with "ADC12->Sampling Mode->ADC Conversion Memory 0 Configuration->Optional Configuration->Trigger Mode" set to "Valid trigger will step to next memory conversion register".

  • Thanks Bruce for comments. Let me show where these two configuration exist in sysconfig GUI:

  • Thank you for the perfect support. I confirmed it!

**Attention** This is a public forum