PIC16(L)F1503
22.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 22-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
22.1.9 “Setup for PWM Operation using PWMx
Pins”.
FIGURE 22-1:
SIMPLIFIED PWM BLOCK DIAGRAM
Duty cycle registers
PWMxDCH
PWMxDCL<7:6>
10-bit Latch
(Not visible to user)
Comparator
TMR2 Module
TMR2
R (1)
R
Q
0
1
S
Q
PWMxPOL
Rev. 10-000022A
8/5/2013
PWMx_out
To Peripherals
PWMxOE
PWMx
TRIS Control
Comparator
PR2
T2_match
Note 1: 8-bit timer is concatenated with two bits generated by Fosc or two bits of the internal prescaler to
create 10-bit time-base.
DS40001607D-page 208
2011-2015 Microchip Technology Inc.