HMS81032E/HMS81032TL
38
Nov. 2001 Ver 2.00
13. Timer0, Timer1, Timer2
(1) Timer Operation Mode
Timer consists of 16bit binary counter Timer0 (T0), 8bit
binary Timer1 (T1), Timer2 (T2), Timer Data Register,
Timer Mode Register (TM01, TM0, TM1, TM2) and con-
trol circuit. Timer Data Register Consists of Timer0 High-
MSB Data Register (T0HMD), Timer0 High-LSB Data
Register (T0HLD), Timer0 Low-MSB Data Register
(T0LMD), Timer0 Low-LSB Data Register (T0LLD),
Timer1 High Data Register (T1HD), Timer1 Low Data
Register (T1LD), Timer2 Data Register (T2DR). Any of
the PS0 ~ PS5, PS11 and external event input EC can be
selected as clock source for T0. Any of the PS0 ~ PS3, PS7
~ PS10 can be selected as clock T1. Any of the PS5 ~ PS12
can be selected as clock source for T2.
* Relevant Port Mode Register (PMR1: 00C9h) value
should be assigned for event counter.
Timer0
- 16-bit Interval Timer
- 16-bit Event Counter
- 16-bit Input Capture
- 16-bit rectangular-wave output
- Single/Modulo-N Mode
- Timer Output Initial Value Setting
- Timer0~Timer1 combination Logic Output
- One Interrupt Generating Every 2nd
Counter Overflow
Timer1
- 8-bit Interval Timer
- 8-bit rectangular-wave output
Timer2
- 8-bit Interval Timer
- 8-bit rectangular-wave output
- Modulo-N Mode
Table 13-1 Timer Operation
16bit Timer (T0)
8bit Timer (T1)
8bit Timer (T2)
Resolution
MAX. Count
Resolution
MAX. Count
Resolution
MAX. Count
PS0 (0.25us)
16,384us
PS0 (0.25us)
64us
PS5 (8us)
2,048us
PS1 (0.5us)
32,768us
PS1 (0.5us)
128us
PS6 (16us)
4,096us
PS2 (1us)
65,536us
PS2 (1us)
256us
PS7 (32us)
8,192us
PS3 (2us)
131,072us
PS3 (2us)
512us
PS8 (64us)
16,384us
PS4 (4us)
262,144us
PS7 (32us)
8,192us
PS9 (128us)
32,768us
PS5 (8us)
524,288us
PS8 (64us)
16,384us
PS10 (256us)
65,536us
PS11 (512us)
33,554,432us
PS9 (128us)
32,768us
PS11 (512us)
131,072us
EC
-
PS10 (256us)
65,536us
PS12 (1024us)
262,144us
Table 13-2 Function of Timer & Counter
Содержание HMS81004E
Страница 4: ...HMS81032E HMS81032TL NOV 2001 Ver 2 00...
Страница 84: ...HMS81032E HMS81032TL 80 Nov 2001 Ver 2 00...
Страница 85: ...APPENDIX...