Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
PIC24F Family Reference Manual
DS39735A-page 47-26 Preliminary © 2010 Microchip Technology Inc.
Figure 47-6: Edge-Aligned PWM
47.9.3 Center-Aligned PWM
The PWM module produces center-aligned PWM signals when the PWM time base is
configured in one of the two Up/Down Counting modes (PTMOD<1:0> = 1x).
The PWM compare output is driven to the active state when the value of the duty cycle register
matches the value of PTMR and the PWM time base is counting downward (PTDIR = 1). The
PWM compare output is driven to the inactive state when the PWM time base is counting
upward (PTDIR = 0) and the value in the PxTMR register matches the duty cycle value.
If the value in a particular duty cycle register is zero, the output on the corresponding PWM pin
is inactive for the entire PWM period. In addition, the output on the PWM pin is active for the
entire PWM period if the value in the duty cycle register is greater than the value in the PxTPER
register.
Figure 47-7: Center-Aligned PWM
Period
0
PxTPER
New Duty Cycle Loaded from PxDC3:PxDC1
PWMxH1
PWMxH2
PxDC1
PxDC2
PxTMR Value
Duty Cycle
PxTPER
PxTMR
Value
Period
Period/2
0
PxDC1
PxDC2
PWMxH1
PWMxH2
PxDC2
Value
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ32MC10X-Reference_Manual-Section47-Motor_Control_PWM.pdf