English
Language : 

PIC18F23K22 Datasheet, PDF (202/492 Pages) Microchip Technology – 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
PIC18(L)F2X/4XK22
REGISTER 14-2: CCPxCON: ENHANCED CCPx CONTROL REGISTER
R/x-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PxM<1:0>
DCxB<1:0>
CCPxM<3:0>
bit 7
R/W-0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Reset
bit 7-6
PxM<1:0>: Enhanced PWM Output Configuration bits
If CCPxM<3:2> = 00, 01, 10: (Capture/Compare modes)
xx = PxA assigned as Capture/Compare input; PxB, PxC, PxD assigned as port pins
Half-Bridge ECCP Modules(1):
If CCPxM<3:2> = 11: (PWM modes)
0x = Single output; PxA modulated; PxB assigned as port pin
1x = Half-Bridge output; PxA, PxB modulated with dead-band control
bit 5-4
Note 1:
Full-Bridge ECCP Modules(1):
If CCPxM<3:2> = 11: (PWM modes)
00 = Single output; PxA modulated; PxB, PxC, PxD assigned as port pins
01 = Full-Bridge output forward; PxD modulated; PxA active; PxB, PxC inactive
10 = Half-Bridge output; PxA, PxB modulated with dead-band control; PxC, PxD assigned as port
pins
11 = Full-Bridge output reverse; PxB modulated; PxC active; PxA, PxD inactive
DCxB<1:0>: PWM Duty Cycle Least Significant bits
Capture mode:
Unused
Compare mode:
Unused
PWM mode:
These bits are the two LSbs of the PWM duty cycle. The eight MSbs are found in CCPRxL.
See Table 14-1 to determine Full-Bridge and Half-Bridge ECCPs for the device being used.
DS41412B-page 202
Preliminary
 2010 Microchip Technology Inc.