The advanced 12-bit PWM module allows 6 independent PWM outputs or 3 complementary PWM outputs with deadband insertion. The PWM module can be configured as edge-aligned or center-aligned using option bits. It is driven to off state on system reset or fault condition input. It can be configured with a prescaler of 1,2,4, or 8 and can source or sink 20mA. The pins can also be used as a general-purpose input when disabled. The ADC can be controlled with the PWM module. There is also programmable threshold for narrow pulse suppression.