15.4.2.1 Master Clocking
The PWM module provides several clocking features at the top level of the module. Each PWM Generator can then independently select one of the clock sources, as shown in Figure 1. The clock input into the PWM module is selected with the MCLKSEL control bit (PCLKCON[0]). The CLKSEL[1:0] control bits (PGxCON[4:3]) are used to select the clock for each PWM Generator instance; see PWM Generator Clocking for details. Frequency scaling and the clock divider are discussed in Shared Clocking. The CLKSELx bits need to be changed from the default selection to allow the PWM Generator to function.
00
’, if all PWM Generators have been disabled.Changing the MCLKSEL or CLKSEL[1:0] bits
while ON (PGxCON[15]) = 1
) is not
recommended.
REPEAT
instruction to ensure the PWM can detect the edge within its clock
cycle.