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.

AM620-Q1: AM6204 EPWM SOCx Pulse Generator

Part Number: AM620-Q1


Tool/software:

I have a question related to the architecture design of our new project:

    Setting EPWM_ETSEL[SOCASEL] of ePWM to PRD_eq (010) via M4F (red box below).
-- Is it possible to generate SOCA pulse on IO port of PWM_SOCA when cnt of pwm is equal to period?
-- If it is possible to generate a SOCA pulse, how is the high level duration of the pulse defined? At what point does the level switch?

Background: Since the AM6204 does not have an internal ADC, an external ADC will be used. ePWM needs to output rising/falling edges at the PWM_SOCA IO at the PWM's centroid moment (the pwm is counting up + down, the centroid moment is when cnt equals PERIOD), and the level is automatically flipped before the start of the next cycle。

Thanks

  • Hi Owens, 


    For your first question, yes, it is possible to generate a SOCA pulse on the IO port of PWM_SOCA when the count of PWM is equal to the period. This can be achieved by setting the EPWM_ETSEL[SOCASEL] to PRD_eq (010). This configuration will trigger a SOCA pulse when the time-base counter equals the period

    For the second question, SOCAPRD controls when the SOCA pulse gets generated. Maybe you don’t want to do the SOCA pulse every PWM period. If they want one at each PWM period, then setting this to a value of 0x1 should generate it on each period.

    I found this EPWM Module reference guide, it is a bit old, but IP is similar (as far as I can tell) to the one in AM62x, so it could be as a reference.

    TMS320x280x, 2801x, 2804x Enhanced Pulse Width Modulator (ePWM

    Thank you,

    Paula