English
Language : 

PIC18LF24K Datasheet, PDF (265/594 Pages) –
PIC18(L)F26/45/46K40
REGISTER 21-1: CCPxCON: CCPx CONTROL REGISTER (CONTINUED)
bit 3-0
MODE<3:0>: CCPx Mode Select bits
MODE
11xx
1011
1010
1001
1000
0111
0110
0101
0100
0011
0010
0001
0000
Operating
Mode
PWM
Compare
Capture
Compare
Disabled
Operation
PWM operation
Pulse output; clear TMR1(2)
Pulse output
Clear output(1)
Set output(1)
Every 16th rising edge of CCPx input
Every 4th rising edge of CCPx input
Every rising edge of CCPx input
Every falling edge of CCPx input
Every edge of CCPx input
Toggle output
Toggle output; clear TMR1(2)
Set CCPxIF
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
—
Note 1: The set and clear operations of the Compare mode are reset by setting MODE = 4’b0000 or EN = 0.
2: When MODE = 0001 or 1011, then the timer associated with the CCP module is cleared. TMR1 is the
default selection for the CCP module, so it is used for indication purpose only.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 265