English
Language : 

PIC18F6585 Datasheet, PDF (180/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
TABLE 16-2: EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 40 MHz
PWM Frequency
2.44 kHz 9.77 kHz 39.06 kHz 156.25 kHz 312.50 kHz 416.67 kHz
Timer Prescaler (1, 4, 16)
16
4
1
1
1
1
PR2 Value
FFh
FFh
FFh
3Fh
1Fh
17h
Maximum Resolution (bits)
10
10
10
8
7
6.58
FIGURE 16-2:
SIMPLIFIED BLOCK DIAGRAM OF THE ENHANCED PWM MODULE
Duty Cycle Registers
CCPR1L
CCP1CON<5:4>
CCPR1H (Slave)
Comparator
R
TMR2
(Note 1)
S
P1M1<1:0>
2
CCP1M<3:0>
4
CCP1/P1A
TRISC<2>
P1B
Q
Output
Controller
TRISE<6>
P1C
TRISE<5>
RC2/CCP1/P1A
RE6/AD14/P1B or RH7(2)
RE5/AD13/P1C or RH6(2)
Comparator
PR2
Clear Timer,
set CCP1 pin and
latch D.C.
P1D
CCP1DEL
TRISG<4>
RG4/P1D
Note 1: The 8-bit timer TMR2 register is concatenated with the 2-bit internal Q clock or 2 bits of the prescaler to create the 10-bit time base.
2: Alternate setting controlled by the ECCPMX bit (PIC18F8X8X devices only).
FIGURE 16-3:
PWM OUTPUT RELATIONSHIPS (ACTIVE-HIGH STATE)
CCP1CON
<7:6>
SIGNAL
0
Duty
Cycle
Period
PR2 + 1
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)
Note 1: Dead-band delay is programmed using the ECCP1DEL register (Section 16.2.6 “Programmable Dead-Band Delay”).
DS30491C-page 178
 2004 Microchip Technology Inc.