English
Language : 

PIC18F2220 Datasheet, PDF (146/388 Pages) Microchip Technology – 28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2220/2320/4220/4320
FIGURE 16-2:
PWM OUTPUT RELATIONSHIPS (ACTIVE-HIGH STATE)
CCP1CON
<7:6>
SIGNAL
0
Duty
Cycle
Period
00 (Single Output)
10 (Half-Bridge)
P1A Modulated
P1A Modulated
P1B Modulated
Delay(1)
Delay(1)
(Full-Bridge,
01 Forward)
P1A Active
P1B Inactive
P1C Inactive
P1D Modulated
P1A Inactive
(Full-Bridge,
11
Reverse)
P1B Modulated
P1C Active
P1D Inactive
PR2+1
FIGURE 16-3:
PWM OUTPUT RELATIONSHIPS (ACTIVE-LOW STATE)
CCP1CON
<7:6>
SIGNAL
0
Duty
Cycle
Period
00 (Single Output)
10 (Half-Bridge)
(Full-Bridge,
01 Forward)
P1A Modulated
P1A Modulated
P1B Modulated
P1A Active
P1B Inactive
P1C Inactive
P1D Modulated
Delay(1)
Delay(1)
(Full-Bridge,
11
Reverse)
P1A Inactive
P1B Modulated
P1C Active
P1D Inactive
PR2+1
Relationships:
• Period = 4 * TOSC * (PR2 + 1) * (TMR2 Prescale Value)
• Duty Cycle = TOSC * (CCPR1L<7:0>:CCP1CON<5:4>) * (TMR2 Prescale Value)
• Delay = 4 * TOSC * (PWM1CON<6:0>)
Note 1: Dead band delay is programmed using the PWM1CON register (see Section 16.4.4 “Programmable Dead Band Delay”).
DS39599C-page 144
 2003 Microchip Technology Inc.