SPRUJ79 November 2024 F29H850TU , F29H859TU-Q1
In this example, the PWM requirements are:
Figure 30-118 and Figure 30-119 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 30-118 Simple Buck Controlled Converter Using a Single PWM
Figure 30-119 PWM Waveform Generated for Simple Buck Controlled ConverterThe example code shown consists of two main parts:
Example30-3 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 150ps and does not use the SFO library.
Example30-4 shows an assembly example of run-time code for the HRPWM buck converter.