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.

TMS320F280049: using single trigger for multiple SOCs

Part Number: TMS320F280049

Customer used ePWM CMPA event as ADCSOCA to trigger SOC0~SOC4, and ADC used the round-robin mode. They would like to check that after CMPA event occurs and during the ADC conversion stage, if they changed the CMPA value, whether the SOC conversions will stop or not. I believe not, please also help confirm this. Thank you.

  • Hi Aki,

    I think there might be a possibility that ePWM CMPA event might not occur and hence not generate ADCSOCA at the intended time.  For example TBCTR is currently at 15 at the time CMPA value is changed to 10 and if counter is configured to count up, then the event TBCTR=CMPA will never happen.  To be sure, it is better to stop the counter, reset TBCTR, change CMPA value and start the counter again.

    Regards,

    Joseph

  • Joseph,

    The intended time is actually after the CMPA event occurs, then they go to change the CMPA value. Since the ADCSOCA signal already generates, I think the coming SOC events will continue. For example, they changed the CMPA value during SOC3, and SOC4 will occur later as expected. Correct? 

  • Aki,

    I think i misunderstood your question the first time.  I was thinking about the time base counter since you mentioned about changing CMPA.  Once the SOC trigger is generated, then the succeeding SOCs will happen upon completion of a conversion in round-robin mode.

    Regards,

    Joseph