Microchip Technology MA160014 Data Sheet

Page of 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 191
PIC18(L)F2X/4XK22
  
FIGURE 14-6:
EXAMPLE PWM (ENHANCED MODE) OUTPUT RELATIONSHIPS (ACTIVE-HIGH 
STATE)
TABLE 14-12: EXAMPLE PIN ASSIGNMENTS FOR VARIOUS PWM ENHANCED MODES
ECCP Mode
PxM<1:0>
CCPx/PxA
PxB
PxC
PxD
Single
00
Yes
(1)
Yes
(1)
Yes
(1)
Yes
(1)
Half-Bridge
10
Yes
Yes
No
No
Full-Bridge, Forward
01
Yes
Yes
Yes
Yes
Full-Bridge, Reverse
11
Yes
Yes
Yes
Yes
Note 1:
PWM Steering enables outputs in Single mode.
0
Period
00
10
01
11
Signal
PRX+1
PxM<1:0>
PxA Modulated
PxA Modulated
PxB Modulated
PxA Active
PxB Inactive
PxC Inactive
PxD Modulated
PxA Inactive
PxB Modulated
PxC Active
PxD Inactive
Pulse
Width
(Single Output)
(Half-Bridge)
(Full-Bridge,
Forward)
(Full-Bridge,
Reverse)
Delay
(1)
Delay
(1)
Relationships:
Period = 4 * T
OSC
 * (PRx + 1) * (TMRx Prescale Value)
Pulse Width = T
OSC
 * (CCPRxL<7:0>:CCPxCON<5:4>) * (TMRx Prescale Value)
Delay = 4 * T
OSC
 * (PWMxCON<6:0>)
Note
1:
Dead-band delay is programmed using the PWMxCON register (
).