Microchip Technology DM163025-1 Data Sheet
![Microchip Technology](https://files.manualsbrain.com/attachments/cf42c3c895ef469f06d2e47e97fd98d738fcf5cf/common/fit/150/50/7340124dc8aa983aaf764094e2f06faab86f306c03111c5817f7e4e53fb2/brand_logo.gif)
PIC18(L)F2X/45K50
DS30684A-page 208
2012 Microchip Technology Inc.
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 15-2:
CCPxCON: ENHANCED CCPx CONTROL REGISTER (CONTINUED)
Note 1:
See
Table 15-1
to determine full-bridge and half-bridge ECCPs for the device being used.