English
Language : 

MC81F4204 Datasheet, PDF (104/150 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC81F4204
18. High Speed PWM
fxx/1024
fxx/256
fxx/64
fxx/16
fxx/8
fxx/4
fxx/2
fxx/1
EC2
Counter stop
M
U
X
T2CS
2-bit
2-bit
8-Bit Up Counter
(Read - only)
R
T2CR
8-Bit Comparator
Clear
Match
2-bit Timer 2 Buffer Register
PPH,
PPL
2-bit Timer 2 Data Register
T2DR
2-bit 8-Bit Comparator
T2CC
Match signal
T2MIE
Timer 2 match INT enable
T2MIR
Timer 2 match INT
request
T2 Match
Interrupt
T2MIF
SQ
R
M
U
PWM2O
X
2-bit PWM 2 Buffer Register
P2DH,
P2DL
2-bit PWM 2 Data Register
2-bit 8-Bit Comparator
2-bit PWM 3 Buffer Register
POL2
SQ
R
POL3
Counter stop
M
U
PWM3O
X
Counter stop
T2CC
Overflow signal
Match signal
P3DH,
P3DL
2-bit PWM 3 Data Register
NOTE:
1. When you cleared the POLx and counter stop, PWMxO is high status.
2. When you set the POLx and counter stop, PWMxO is low status.
(x=2, 3)
Figure 18-1 High Speed PWM Block Diagram
The MC81F4204 has two high speed PWM (Pulse Width Modulation) function which shared with
Timer2.
In PWM mode, the R11/PWM2O, R12/PWM3O, pins operate as a 10-bit resolution PWM output port.
For this mode, the R11 of R1CONL and the R12 of R1CONM should be set to alternative function
mode.
The period of the PWM output is determined by the T2DR (T2 data Register) and PWMPDR[1:0]
(PWM Period Duty Register) and the duty of the PWM output is determined by the PWM2DR,
PWM3DR, (PWM Data Register) and PWMPDR[5:2] (PWM Period Duty Register).
User can use PWM data by writing the lower 8-bit period value to the T2DR and the higher 2-bit
period value to the PWMPDR[1:0]. And the duty value can be used with the PWM2DR, PWM3DR,
and the PWMPDR[5:2] in the same way.
104
October 19, 2009 Ver.1.35