Specifications

dsPIC33F/PIC24H Family Reference Manual
DS70323E-page 43-56 © 2008-2012 Microchip Technology Inc.
Example 43-17: PWM Phase Shift Initialization
The bit resolution of PWM duty cycle, phase and dead time with respect to different input clock
prescaler selections are shown in Table 43-2.
Table 43-2: Duty Cycle, Phase, Dead Time Bit Resolution Vs. Prescaler Selection
PWM Clock
Prescaler
Bit Resolution
64 ns 32 ns 16 ns 8 ns 4 ns 2 ns 1 ns
1:1 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
1:2 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
1:4 bit 4 bit 3 bit 2 bit 1 bit 0
1:8 bit 3 bit 2 bit 1 bit 0
1:16 bit 2 bit 1 bit 0
1:32 bit 1 bit 0
1:64 bit 0
/* Initialize phase shift value for the PWM output */
/* Phase shifts are initialized when operating in Master Time Base */
PHASEx = 100; /* Primary phase shift value of 104 ns */
SPHASEx = 100; /* Secondary phase shift value of 104 ns */