Chapter 12 Pulse Width Modulator with Fault Protection (PMF15B6CV4)MC9S12ZVMB Family Reference Manual Rev. 1.3NXP Semiconductors 445In independent PWM operation, setting or clearing the OUTn bit activates or deactivates the PWMnoutput.In complementary channel operation, the even-numbered OUTn bits replace the PWM generator outputsas inputs to the deadtime generators. Complementary channel pairs still cannot drive active levelsimultaneously, and the deadtime generators continue to insert deadtime in both channels of that pair,whenever an even OUTn bit toggles. Even OUTn bits control the top PWM signals while the odd OUTbits control the bottom PWM signals with respect to the even OUTn bits. Setting the odd OUTn bit makesits corresponding PWM the complement of its even pair, while clearing the odd OUTn bit deactivates theodd PWM.Setting the OUTCTLn bits does not disable the PWM generators and current status sensing circuitry. Theycontinue to run, but no longer control the outputs. When the OUTCTLn bits are cleared, the outputs of thePWM generator become the inputs to the deadtime generators at the beginning of the next PWM cycle.Software can drive the PWM outputs even when PWM enable bit (PWMENx) is set to zero.NOTEAvoid an unexpected deadtime insertion by clearing the OUTn bits beforesetting and after clearing the OUTCTLn bits.Figure 12-68. Setting OUT0 with OUTCTL Set in Complementary ModeMODULUS = 4PWM VALUE = 2DEADTIME = 2PWM0PWM1PWM0 WITH DEADTIMEPWM1 WITH DEADTIMEOUTCTL0OUT0PWM0PWM1OUT1