English
Language : 

PIC16F631_08 Datasheet, PDF (135/306 Pages) Microchip Technology – 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F631/677/685/687/689/690
FIGURE 11-5:
EXAMPLE SIMPLIFIED BLOCK DIAGRAM OF THE ENHANCED PWM MODE
Duty Cycle Registers
CCPR1L
DC1B<1:0>
CCPR1H (Slave)
Comparator
R
TMR2
(1)
S
Comparator
PR2
Clear Timer2,
toggle PWM pin and
latch duty cycle
P1M<1:0>
CCP1M<3:0>
2
4
CCP1/P1A
TRIS
P1B
Q
Output
Controller
TRIS
P1C
TRIS
P1D
PWM1CON
TRIS
CCP1/P1A
P1B
P1C
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.
Note 1: The TRIS register value for each PWM output must be configured appropriately.
2: Clearing the CCP1CON register will relinquish ECCP control of all PWM output pins.
3: Any pin not used by an Enhanced PWM mode is available for alternate pin functions
TABLE 11-4: EXAMPLE PIN ASSIGNMENTS FOR VARIOUS PWM ENHANCED MODES
ECCP Mode
P1M<1:0>
CCP1/P1A
P1B
P1C
P1D
Single
00
Yes(1)
Half-Bridge
10
Yes
Full-Bridge, Forward
01
Yes
Full-Bridge, Reverse
11
Yes
Note 1: Pulse Steering enables outputs in Single mode.
Yes(1)
Yes
Yes
Yes
Yes(1)
No
Yes
Yes
Yes(1)
No
Yes
Yes
© 2008 Microchip Technology Inc.
DS41262E-page 133