English
Language : 

Z51F0410 Datasheet, PDF (83/184 Pages) Zilog, Inc. – Z8051 Series 8-Bit Microcontrollers
Z51F0410
Product Specification
4.5 Timer/PWM
4.5.1 8-bit Timer/Event Counter 0, 1
4.5.1.1 Overview
Timer 0 and timer 1 can be used either two 8-bit timer/counter or one 16-bit timer/counter with
combine them. Each 8-bit timer/event counter module has multiplexer, 8-bit timer data register, 8-bit
counter register, mode register, input capture register, comparator. For PWM, it has PWM register
(T1PPR, T1PDR, T1PWHR).
It has seven operating modes:
- 8 Bit Timer/Counter Mode
- 8 Bit Capture Mode
- 8 Bit Compare Output Mode
- 16 Bit Timer/Counter Mode
- 16 Bit Capture Mode
- 16 Bit Compare Output Mode
- PWM Mode
The timer/counter can be clocked by an internal or external clock source (external EC0). The clock
source is selected by clock select logic which is controlled by the clock select (T0CK[2:0], T1CK[1:0]).
- TIMER0 clock source : fX/2, 4, 16, 64, 256, 1024, 4096, EC0
- TIMER1 clock source : fX/1, 2, 16, T0CK
In the capture mode, by INT0, INT1, the data is captured into Input Capture Register. The Timer 0
outputs the compare result to T0 port in 8/16-bit mode. Also the timer 1 outputs the result T1 port in
the timer mode and the PWM wave form to PWM1 in the PWM mode.
Table 4.5 Operating Modes of Timer
16 Bit
0
0
0
0
1
1
1
1
CAP0
0
0
1
0
0
0
1
0
CAP1
0
1
0
0
0
0
1
0
PWM1E
0
0
0
1
0
0
0
0
T0CK[2:0]
XXX
111
XXX
XXX
XXX
111
XXX
XXX
T1CK[1:0]
XX
XX
XX
XX
11
11
11
11
T0/1_PE
00
00
01
11
00
00
00
01
Timer 0
Timer 1
8 Bit Timer
8 Bit Timer
8 Bit Event Counter
8 Bit Capture
8 Bit Capture
8 Bit Compare Output
8 Bit Timer/Counter
10 Bit PWM
16 Bit Timer
16 Bit Event Counter
16 Bit Capture
16 Bit Compare Output
PS029502-0212
PRELIMINARY
80