26.2.6 Brush DC Output Modes

The Brush DC Output modes are selected when CCPxCON3.OUTM[2:0] = 101 (Forward mode) or CCPxCON3.OUTM[2:0] = 100 (Reverse mode).

In this mode, the signal produced by the output compare logic is routed to four output pins, OCxA, OCxB, OCxC and OCxD. The user must set the OCAEN, OCBEN, OCCEN and OCDEN control bits in software to allow the module to control these output pins. For each mode, only two of the four output pins are driven to the Active state:

  • Forward Mode – CCPxCON3.OUTM[2:0] = 101
    • OCxA pin receives a PWM generator signal.
    • OCxD pin is driven to the Active state.
    • OCxB and OCxC pins driven inactive.
  • Reverse Mode – CCPxCON3.OUTM[2:0] = 100
    • OCxC pin receives a PWM generator signal.
    • OCxB pin is driven to the Active state.
    • OCxA and OCxD pins driven inactive.

The OCxE and OCxF output pins are not controlled by the module in the Brush DC modes. The user may enable these pins using the OCEEN and OCFEN control bits. However, the pins will remain in the Inactive state.

Figure 26-5 shows how the four pins are connected and used to control external circuitry in a typical application. The actual polarity of the four output signals is determined by the output polarity control circuitry.