English
Language : 

Z51F3220FNX Datasheet, PDF (116/312 Pages) Zilog, Inc. – Z8051 Series 8-Bit Microcontrollers
Z51F3220
Product Specification
11.5.3 8-Bit PWM Mode
The timer 0 has a high speed PWM (Pulse Width Modulation) function. In PWM mode, T0O/PWM0O pin
outputs up to 8-bit resolution PWM output. This pin should be configured as a PWM output by setting the
T0O/PWM0O function by P5FSR[4:3] bits. In the 8-bit timer/counter mode, a match signal is generated when the
counter value is identical to the value of T0DR. When the value of T0CNT and T0DR is identical in timer 0, a
match signal is generated and the interrupt of timer 0 occurs. In PWM mode, the match signal does not clear the
counter. Instead, it runs continuously, overflowing at “FFH”, and then continues incrementing from “00H”. The
timer 0 overflow interrupt is generated whenever a counter overflow occurs. T0CNT value is cleared by software
(T0CC) bit.
EC0
fx
T0CR
T0EN
1
-
T0MS1 T0MS0 T0CK2 T0CK1 T0CK0 T0CC ADDRESS : B2 H
INITIAL VALUE: 0000 _0000B
-
0
1
x
x
x
x
P
fx/2
r
fx/4
e
fx/8
M
s
U
c
fx/32
X
a fx/128
l fx/512
e
r fx/2048
T0 EN
3
T0CK[2:0 ]
8-bit Timer 0 Counter
T0CNT(8Bit)
INT_ACK
Clear
T0OVIFR
Clear
Match
MUX
Comparator
T0DR(8Bit)
8-bit Timer 0 Data Register
2
T0MS[1:0]
To interrupt
block
Match signal
T0 CC
INT_ACK
Clear
T0IFR
To interrupt
block
T0 O/PWM0O
Figure 11.8 8-Bit PWM Mode for Timer 0
PS029902-0212
PRELIMINARY
113