Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
PIC24F Family Reference Manual
DS39735A-page 47-40 Preliminary © 2010 Microchip Technology Inc.
47.14 SPECIAL FEATURES OF THE MCPWM MODULE
The following special features are available in the MCPWM module:
PWM output override
Special Event Trigger
PWM update lockout
Write-protected registers
47.14.1 PWM Output Override
The PWM output override bits allow the PWM I/O pins to be manually driven to specified logic
states, independent of the duty cycle comparison units. The PWM override bits are useful
when controlling various types of electrically commutated motors.
Figure 47-22 shows a block diagram of the PWM output override control.
Figure 47-22: Output Override Control
All control bits associated with the PWM output override function are in the Override Control
(PxOVDCON) register. The upper half of the PxOVDCON register contains six PWM Output
Override bits (POVD3H:POVD1L) that determine which PWM I/O pins will be overridden. The
lower half of the PxOVDCON register contains six PWM Manual Output (POUT3H:POUT1L)
bits that determine the state of the PWM I/O pin when it is overridden with the
POVD3H:POVD1L bits.
The POVD bits are active-low control bits. When the POVD bits are set, the corresponding
POUT3H:POUT1L bits have no effect on the PWM output. When one of the POVD bits is
cleared, the output on the corresponding PWM I/O pin is determined by the state of the POUT
bit. When a POUT bit is set, the PWM pin is driven to its active state. When the POUT bit is
cleared, the PWM pin is driven to its inactive state.
The code shown in Example 47-7 demonstrates the PWM output override feature.
Output
Override
Logic
Fault Logic
Dead-Time
Control
Logic
PWM Time
Base
PWMxH1
PWMxL1
PWMxH2
PWMxL2
PWMxH3
PWMxL3
PxOVDCON
<POUT3H:POUT1L>
PxOVDCON
<POVD3H:POVD1L>
PWMxCON1
<PMOD3:PMOD1>
PWMxCON1
<PEN3H:PEN1L>
Dead Time A
Dead Time B
FLT1A
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ32MC10X-Reference_Manual-Section47-Motor_Control_PWM.pdf