Microchip Technology MA160014 Data Sheet

Page of 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 207
PIC18(L)F2X/4XK22
bit 3-0
CCPxM<3:0>: ECCPx Mode Select bits
0000
 = Capture/Compare/PWM off (resets the module)
0001
 = Reserved 
0010
 = Compare mode: toggle output on match
0011
 = Reserved
0100
 = Capture mode: every falling edge 
0101
 = Capture mode: every rising edge
0110
 = Capture mode: every 4th rising edge 
0111
 = Capture mode: every 16th rising edge
1000
 = Compare mode: set output on compare match (CCPx pin is set, CCPxIF is set)
1001
 = Compare mode: clear output on compare match (CCPx pin is cleared, CCPxIF is set)
1010
 = Compare mode: generate software interrupt on compare match (CCPx pin is unaffected,
CCPxIF is set)
1011
 = Compare mode: Special Event Trigger (CCPx pin is unaffected, CCPxIF is set)
 TimerX is reset
Half-Bridge ECCP Modules
(1)
:
1100 
= PWM mode: PxA active-high; PxB active-high 
1101 
= PWM mode: PxA active-high; PxB active-low
1110 
= PWM mode: PxA active-low; PxB active-high
1111 
= PWM mode: PxA active-low; PxB active-low
Full-Bridge ECCP Modules
(1)
:
1100 
= PWM mode: PxA, PxC active-high; PxB, PxD active-high 
1101 
= PWM mode: PxA, PxC active-high; PxB, PxD active-low
1110 
= PWM mode: PxA, PxC active-low; PxB, PxD active-high
1111 
= PWM mode: PxA, PxC active-low; PxB, PxD active-low
REGISTER 14-2:
CCPxCON: ENHANCED CCPx CONTROL REGISTER (CONTINUED)
Note 1:
See 
Table 14-1
 to determine full-bridge and half-bridge ECCPs for the device being used.