SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
In this example, the PWM requirements are:
Figure 7-226 and Figure 7-272 show the required PWM waveform. As explained previously, configuration for the ePWM1 module is almost identical to the normal case except that the appropriate MEP options need to be enabled/selected.
Figure 7-271 Simple Buck Controlled Converter Using a Single PWM
Figure 7-272 PWM Waveform Generated for Simple Buck Controlled ConverterThe example code shown consists of two main parts:
Example7-10 shows the Initialization code. The first part is configured for conventional PWM. The second part sets up the HRPWM resources.
This example assumes MEP step size of 150 ps and does not use the SFO library.
Example7-11 shows an assembly example of run-time code for the HRPWM buck converter.