Part Number: TMS320F280049C
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.
Part Number: TMS320F280049C
Hello,
Is there a possibility to utilize compareC and compareD additionally to generate ActionQualifier Events as this would eliminate the need to update the registers during PWM operation?
No, only Compare A and Compare B can be used to generate action qualifier events.
Alternatively is there another reliable solution for updating the registers?
I would suggest you look into using the global load and one-shot load feature available for EPWM modules. Essentially, you can update the compare values and set the one-shot load flag when all updates are "ready" to be moved from shadow to active registers. Once you set this flag it will update all of the compare values at the next specified event (TBCTR = zero, period, etc.). This is a useful feature when the compare values, or period, etc. are being calculated outside of the PWM ISR.
More information is described within the TRM or within the "Safe and Optimized PWM Updates in High-Frequency, Multi-Phase and Variable Frequency Topologies" section within "The Essential Guide to Developing with C2000 Real-Time Microcontrollers"
Best Regards,
Marlyn