Part Number: LAUNCHXL-F29H85X
Other Parts Discussed in Thread: SYSCONFIG
I have some urgent questions in the mean time.
Could you please tell me how we can ramp up the duty cycle when we start the PWM?
The situation is that we want to start with a duty cycle of 1% (100 ns) and ramp up to 50% (5 us) by increasing the 1 count of the CMPB every 1 ms.
We already plan to use the 1 ms CPU timer that is configured in your example- and this will result in a ramp up time of 0.98 seconds.
- Can I use the ePWMxA Event Output action under EPWM action qualifier and configure Set output pins to Low when ePWMxA Timer base counter up equals COMPB ? I have to change the event to Set output pins to Low when ePWMxA Timer base counter down equals COMPB for the third PWM, correct?
Here is a screenshot of the sysconfig for PWM2 (l2):
- If this is the case, and the other PWMs are phase shifted, I do not need values in the CMPA and CMPB registers, right? Because the phase shift is applied in the Phase Shift Value under EPWM Time Base as shown below (l2):
- Finally, would we always update the PWM when a new cycle starts or would we update this asynchronously when we write the value in the program?
We would like to update the duty cycle with every new cycle, and not instantaneously when we update the code in the control loop.