The Complementary Waveform Generator (CWG) produces half-bridge,
full-bridge, and steering of PWM waveforms. It is backwards compatible with previous CCP
functions. The PIC18(L)F65/66K40 family has 1
instance(s) of the CWG module.
The CWG has the following features:
- Six operating modes:
- Synchronous Steering mode
- Asynchronous Steering mode
- Full-Bridge mode, Forward
- Full-Bridge mode, Reverse
- Half-Bridge mode
- Push-Pull mode
- Output polarity control
- Output steering
- Independent 6-bit rising and falling event dead-band timers
- Clocked dead band
- Independent rising and falling dead-band enables
- Auto-shutdown control with:
- Selectable shutdown sources
- Auto-restart option
- Auto-shutdown pin override control