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.

AM2634-Q1: Reconfiguring the EPWM module in real-time

Part Number: AM2634-Q1


Can the following APIs be used during runtime without the calling of lock and/or unlock registers:

EPWM_setTripZoneAction()

EPWM_setActionQualifierAction()

EPWM_setDeadBandDelayMode()

We need to be able to reconfigure the EPWM module in real time when necessary.

Thanks in advance.

  • Hi Tim,

    I'm looking into this and will get back with you shortly.

    Regards,
    Frank

  • Hi Tim,

    The following registers are locked using the EPWM Lock Registers so they cannot be accessed in run-time, they can be configured only once. 

    The above figure is taken from TRM.

    EPWM_setTripZoneAction()  -- register access -- CSL_EPWM_TZCTL

    EPWM_setActionQualifierAction()  -- register access --  CSL_EPWM_AQCTLA

    EPWM_setDeadBandDelayMode() -- register access -- CSL_EPWM_DBCTL

    So From the TRM, looks like EPWM_setTripZoneAction cannot be accessed in run-time. I understand this could be a problem, I will take some time to check with the internal team if there is any workaround for this issue.

    EPWM_setActionQualifierAction and EPWM_setDeadBandDelayMode can be accessed.

    Regards

    Sri Vidya

  • Thank you for your replying.  Please let us know if there is a workaround as this is very critical or we will need to re-architect his design.

  • Hi Tim

    Can I get more information on why or when do you need to set the Trip Zone Action? You want to change your EPWM output as high or low when the trip happens, right?

    Its not like the EPWM always goes low when the Trip occurs?

    Regards

    Sri Vidya

  • Hi

    Looks like we don’t need to change anything. We are not even locking the TripZone registers.

    The Lock Register Key Bit is 0 by default.

    Hence the default configuration should be okay. No change required.

    Will close the thread for now, we can re-open it if the issue exists.

    Regards

    Sri Vidya