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.

TMS320F2800135: EPWM shadow mode switch

Part Number: TMS320F2800135


Tool/software:

Hi Expert

Customer report if they enable then disable ePWM shadow mode, then it has some possibility that MCU will go into illegal interrupt, is there any limitation that user should not change the ePWM shadow mode after the ePWM is initialized?

Thanks

Joe

  • Yes, if interrupts source are any counter compare event such as ZERO/PRD/CMPA/CMPB/CMPC/CMPD and if they are loaded directly it will trigger interrupt at those moments and will not wait for next cycle.

    What topology requiring this kind of operation?

    Regards,

    Sumit

  • Hi Sumit

    There is no interrupt triggered once counter compare event happens in customer system.

    The question is, if customer disable the shadow mode when the ePWM in normal working state (means the pins can see the normally PWM output), the CPU has chance to go into the NMI and stuck.

    Thanks

    Joe

  • Joe,

    In short, No CPU does not enter a NMI or stuck when an ePWM setting changes from shadow load to direct load. The CPU will continue its current task unless an interrupt that is not masked by the CPU occurs.

    Regards,

    Sumit