Microchip Technology MCU PIC10F322T-I/OT SOT-23-6 MCP PIC10F322T-I/OT データシート

製品コード
PIC10F322T-I/OT
ページ / 210
 2011 Microchip Technology Inc.
Preliminary
DS41585A-page 107
PIC10(L)F320/322
18.0
PULSE-WIDTH MODULATION 
(PWM) MODULE
The PWM module generates a Pulse-Width Modulated
signal determined by the duty cycle, period, and
resolution that are configured by the following registers:
• PR2
• T2CON
• PWMxDCH
• PWMxDCL
• PWMxCON
 shows a simplified block diagram of PWM
operation. 
 shows a typical waveform of the PWM
signal.
FIGURE 18-1:
SIMPLIFIED PWM BLOCK DIAGRAM    
For a step-by-step procedure on how to set up this
module for PWM operation, refer to 
FIGURE 18-2:
PWM OUTPUT
PWMxDCH
Comparator
TMR2
Comparator
PR2
(1)
R
Q
S
Duty Cycle registers
PWMxDCL<7:6>
Clear Timer,
PWMx pin and 
latch Duty Cycle
Note 1:
8-bit timer is concatenated with the two Least Significant bits of 1/F
OSC
 adjusted by the Timer2 
prescaler to create a 10-bit time base.
Latched
(Not visible to user)
Q
Output Polarity (PWMxPOL)
TMR2 Module
0
1
PWMxOUT
to other peripherals: CLC and CWG
PWMx
Output Enable (PWMxOE)
TRIS Control
Period
Pulse Width
TMR2 = 0
TMR2 = 
TMR2 = PR2
PWMxDCH<7:0>:PWMxDCL<7:6>