11. PWM Mod
A programmable PWM module with 10-bit width in chip, which can be configured as 4 channels of
common period, independent duty cycle output and 1 channel of independent output, or 2 pairs of
complementary outputs and 1 channel of independent output.
The PWM output can be selected as RA1-RA5 or RA5-RA7、RB5、RB4 or RB0-RB4 through config.
Among them, PWM0/PWM1 and PWM2/PWM3 can be configured as complementary outputs.
11.1 Pin configuration
The corresponding PWM pin should be configured as output by setting the corresponding TRIS control
bit to 0.
11.2 PWM Related Register
PWM control register PWMCON0 (13H)