Datasheet
2011-2015 Microchip Technology Inc. DS40001615C-page 151
PIC12(L)F1501
21.0 PULSE-WIDTH MODULATION
(PWM) MODULE
The PWM module generates a Pulse-Width Modulated
signal determined by the duty cycle, period, and reso-
lution that are configured by the following registers:
•PR2
•T2CON
• PWMxDCH
• PWMxDCL
•PWMxCON
Figure 21-1 shows a simplified block diagram of PWM
operation.
For a step-by-step procedure on how to set up this
module for PWM operation, refer to Section
21.1.9 “Setup for PWM Operation using PWMx
Pins”.
FIGURE 21-1: SIMPLIFIED PWM BLOCK DIAGRAM
Rev. 10-000022A
8/5/2013
8-bit timer is concatenated with two bits generated by Fosc or two bits of the internal prescaler to
create 10-bit time-base.
Note 1:
PWMxDCH
Duty cycle registers
PWMxDCL<7:6>
10-bit Latch
(Not visible to user)
Comparator
Comparator
PR2
(1)
TMR2
TMR2 Module
0
1
PWMxPOL
PWMx
PWMx_out
To Peripherals
R
TRIS Control
PWMxOE
R
S
Q
Q
T2_match