English
Language : 

PIC18F6X2X Datasheet, PDF (167/386 Pages) Microchip Technology – 64/80-Pin High Performance, 64-Kbyte Enhanced FLASH Microcontrollers with A/D
PIC18F6X2X/8X2X
FIGURE 17-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)
(Full-Bridge,
11
Reverse)
P1A Modulated
P1A Modulated
P1B Modulated
P1A Active
P1B Inactive
P1C Inactive
P1D Modulated
P1A Inactive
P1B Modulated
P1C Active
P1D Inactive
Delay(1)
Delay(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 * (ECCP1DEL<6:0>)
Note 1: Dead band delay is programmed using the ECCP1DEL register (Section 17.4.6).
PR2+1
17.4.4 HALF-BRIDGE MODE
In the Half-Bridge Output mode, two pins are used as
outputs to drive push-pull loads. The PWM output sig-
nal is output on the P1A pin, while the complementary
PWM output signal is output on the P1B pin
(Figure 17-4). This mode can be used for half-bridge
applications, as shown in Figure 17-5, or for full-bridge
applications, where four power switches are being
modulated with two PWM signals.
In Half-Bridge Output mode, the programmable dead
band delay can be used to prevent shoot-through
current in half-bridge power devices. The value of bits
PDC6:PDC0 sets the number of instruction cycles
before the output is driven active. If the value is greater
than the duty cycle, the corresponding output remains
inactive during the entire cycle. See Section 17.4.6 for
more details of the dead band delay operations.
Since the P1A and P1B outputs are multiplexed with
the PORTC<2> and PORTE<6> data latches, the
TRISC<2> and TRISE<6> bits must be cleared to
configure P1A and P1B as outputs.
FIGURE 17-4:
HALF-BRIDGE PWM
OUTPUT
Period
Period
P1A(2)
Duty Cycle
td
td
P1B(2)
(1)
(1)
(1)
td = Dead Band Delay
Note 1: At this time, the TMR2 register is equal to the
PR2 register.
2: Output signals are shown as active high.
 2003 Microchip Technology Inc.
Advance Information
DS39612A-page 165