SPRUIY4B February 2023 – May 2024 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1
In this example, the PWM requirements are:
Figure 14-89 and Figure 14-90 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 14-89 Simple Buck Controlled Converter Using a Single PWM
Figure 14-90 PWM Waveform Generated for Simple Buck Controlled ConverterThe example code shown consists of two main parts:
Example14-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.
Example14-4 shows an assembly example of run-time code for the HRPWM buck converter.