SLUSB72D March 2013 – April 2021 UCD3138064
The two top signals in the above drawing have fixed timing. The DPWM1CF and DPWM2CF signals are used for these pins. DPWMCxF refers to the signal coming out of the fault module of DPWMx, as shown in Figure 10-4.
These signals are actually routed to pins DPWM3A and 3B using the Intra Mux with these statements:
|Dpwm3Regs.DPWMCTRL0.bit.PWM_A_INTRA_MUX = 7; // Send DPWM1C |
Dpwm3Regs.DPWMCTRL0.bit.PWM_B_INTRA_MUX = 8; // Send DPWM2C
Since these signals are really being used as events in the timer, the #defines are called EV5 and EV6. Here are the statements which initialize them:
|// Setup waveform for DPWM-C (re-using blanking B regs) |
Dpwm2Regs.DPWMBLKBBEG.all = PWM2_EV5 + (4 *16);
Dpwm2Regs.DPWMBLKBEND.all = PWM2_EV6;
The statements for DPWM1 are the same. Remember that DPWMC reuses the Blank B registers for timing information.