SPRUHM8K December 2013 – May 2024 TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
In this example, the PWM requirements are:
Figure 15-92 and Figure 15-93 show the DAC function and 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:
This example assumes a typical MEP_SP and does not use the SFO library.
Example15-5 shows the Initialization code. The first part is configured for conventional PWM. The second part sets up the HRPWM resources.
Example15-6 shows an assembly example of run-time code that can execute in a high-speed ISR loop.