English
Language : 

Z51F0410 Datasheet, PDF (84/184 Pages) Zilog, Inc. – Z8051 Series 8-Bit Microcontrollers
Z51F0410
Product Specification
4.5.1.2 8-Bit Timer/Counter Mode
The 8-bit Timer/Counter Mode is selected by control registers as shown in Figure 4.6.
T0CR
T1CR
T0EN T0PE CAP0 T0CK2 T0CK1 T0CK0 T0CN T0ST
1
X
0
X
X
X
X
X
ADDRESS
:
B2H
INITIAL VALUE : 0000_0000B
POL 16BIT PWM1E CAP1 T1CK1 T1CK0 T1CN T1ST
X
0
0
0
X
X
X
X
ADDRESS
:
B4H
INITIAL VALUE : 0000_0000B
EC0
fx
÷2
P
r
÷4
e
s
c
÷16
÷64
MUX
a
÷256
l
e
÷1024
r
÷4096
3
T0CK[2:0]
T0CN
T0ST
8-bit Timer0 Counter
T0(8Bit)
Clear
[B3H]
[B3H]
Comparator
T0DR(8Bit)
8-bit Timer0 Data Register
÷1
÷2
MUX
÷16
T1CN
2
T1CK[1:0]
T1ST
8-bit Timer1 Counter
T1(8Bit)
Clear
[B6H]
[B5H]
Comparator
T1DR(8Bit)
8-bit Timer1 Data Register
T0IF
F/F
T1IF
F/F
Timer0
Interrupt
P04/T0
Timer1
Interrupt
P05/T1
Figure 4.6 8 Bit Timer/Event Counter0, 1 Block Diagram
The two 8-bit timers have each counter and data register. The counter register is increased by
internal or external clock input. The timer 0 can use the input clock with 2, 4, 16, 64, 256, 1024, 4096
prescaler division rates (T0CK[2:0]). The timer 1 can use the input clock with 1, 2, 16 and timer 0
overflow clock (T1CK[1:0]). When the value of T0, 1 value and the value of T0DR, T1DR are
respectively identical in Timer 0, 1, the interrupt of timer 0, 1 occurs. The external clock (EC0) counts
up the timer at the rising edge. If EC0 is selected from T0CK[2:0], EC0 port becomes input port. The
timer 1 can’t use the external EC0 clock.
PS029502-0212
PRELIMINARY
81