28 Capture/Compare/PWM/Timer Modules (SCCP/MCCP)

This section describes the features and operation of the Single and Multiple Output CCP module. The module has the following features:

  • Combine Time Base, Input Capture, Compare and PWM Functions into a Single Peripheral.
  • Provide Better Edge Resolution in PWM Mode.
  • Provide the Required Functionality in the PWM Mode to Support a Selected Range of Motor Control, Power Supply and Lighting Applications.
The following module features are covered in this section:
  • General Purpose Timer
  • Input Capture
  • Output Compare/PWM

There are two different forms of the module, distinguished by the number of PWM outputs that the module can generate. Single output modules (SCCPs) provide only one PWM output. Multiple output modules (MCCPs) can provide up to six outputs and an extended range of output control features, depending on the pin count of the particular device.

All modules (SCCP and MCCP) include these features:

  • User-Selectable Clock Inputs, Including System Clock and External Clock Input Pins
  • Input Clock Prescaler for Time Base
  • Output Postscaler for Module Interrupt Events or Triggers
  • Synchronization Output Signal for Coordinating Other MCCP/SCCP Modules with User-Configurable Alternate and Auxiliary Source Options
  • Fully Asynchronous Operation in All Modes and in Low-Power Operation
  • Special Output Trigger for A/D Conversions
  • 16-Bit and 32-Bit General Purpose Timer Modes with Optional Gated Operation for Simple Time Measurements
  • Capture Modes:
    • 16-bit or 32-bit capture of time base on external event
    • Up to four-level deep FIFO capture buffer
    • Capture source input multiplexer
    • Gated capture operation to reduce noise-induced false captures
  • Output Compare/PWM Modes:
    • Single Edge and Dual Edge Compare modes
    • Center-Aligned Compare mode
    • Variable Frequency Pulse mode
    • External Input mode
  • MCCP Modules also Include these Extended PWM Features:
    • Single Output Steerable Mode
    • Brush DC Motor (Forward and Reverse) Modes
    • Half-Bridge with Dead-Time Delay
    • Push-Pull PWM Mode
    • Output Scan Mode
    • Auto-Shutdown with Programmable Source and Shutdown State
    • Programmable Output Polarity