Datasheet
PIC18F2220/2320/4220/4320
DS39599G-page 134 © 2007 Microchip Technology Inc.
15.1 CCP1 Module
Capture/Compare/PWM Register 1 (CCPR1) is com-
prised of two 8-bit registers: CCPR1L (low byte) and
CCPR1H (high byte). The CCP1CON register controls
the operation of CCP1. All are readable and writable.
TABLE 15-1: CCP MODE - TIMER
RESOURCE
15.2 CCP2 Module
Capture/Compare/PWM Register 2 (CCPR2) is com-
prised of two 8-bit registers: CCPR2L (low byte) and
CCPR2H (high byte). The CCP2CON register controls
the operation of CCP2. All are readable and writable.
CCP2 functions identically to CCP1 except for the
enhanced PWM modes offered by CCP2
TABLE 15-2: INTERACTION OF TWO CCP MODULES
CCP Mode Timer Resource
Capture
Compare
PWM
Timer1 or Timer3
Timer1 or Timer3
Timer2
CCPx Mode CCPy Mode Interaction
Capture Capture TMR1 or TMR3 time base. Time base can be different for each CCP.
Capture Compare The compare could be configured for the Special Event Trigger which clears either TMR1
or TMR3 depending upon which time base is used.
Compare Compare The compare(s) could be configured for the Special Event Trigger which clears TMR1 or
TMR3 depending upon which time base is used.
PWM PWM The PWMs will have the same frequency and update rate (TMR2 interrupt).
PWM Capture None.
PWM Compare None.