SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
In this example, the PWM requirements are:
Figure 20-89 and Figure 20-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.
The example code shown consists of two main parts:
Example20-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.
Example20-4 shows an assembly example of run-time code for the HRPWM buck converter.