dsPIC33EP - PWM Outputs are Disabled when I²C is Enabled
What causes the dsPIC33EP64GS502's PWM outputs to be disabled when I²C is enabled?
Both the PWM's fault source signal and I²C are connected to the RB8 pad. Whenever the pad is driven high (RB8 = 1), the PWM fault signal source is activated causing the PWM signal not to appear on the output pin. To enable the PWM to work with I²C, the PWM fault pin must be disabled by setting FCLCONx = 0x0003 (FLTMOD:11).