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.

TM4C1294NCPDT: Trigger an ADC sequence from multiple PWM signals

Part Number: TM4C1294NCPDT


Good afternoon,

First of all, I would like to precise that I am quite a beginner so sorry if my question looks obvious or stupid, but I could find an answer based only on the documentation.

I have quite understood how to configure and trigger an ADC sequence from PWM generator 0

ADCSequenceConfigure(ADC0_BASE, ADC_SEQ0, ADC_TRIGGER_PWM0 | ADC_TRIGGER_PWM_MOD0, 0);

However, I would like to trigger the same sequence also from PWM generator 1. The aim is to have the sequence triggered by both PWM generators. Would that be possible and how?

Best regards,

Damien SIX

  • Hello Damien,

    I was not able to find any indicator either way about if it's possible or not. If it were possible, I suspect all you need to add in additional to the PWM generator code would be ADC_TRIGGER_PWM1 to your ADCSequenceConfigure API. Have you tried that out?
  • Hello Ralph,

    Thank you for your answer, I will try that. I don't have the setup to test this right now but I will update ASAP.
  • Hi Damien,

    When will you be able to do this test? If it's going to take another week or two, I'd like to at least close this query on my end. Of course, the thread will remain open for 30 days, so you can reply back when you get around to it and I'll see & reply then.
  • Hi Ralph,

    Sorry, I didn't answer earlier but finally, it appears that since my signals are all synchronized and that I trigger on load, they will all trigger the sequence in the same way. I was afraid that setting the pulse width to 0 will not trigger the load interrupt but I was wrong. So, I can just choose any of the signals. Thank you for your help anyway.