
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 9 Timer
9-1
9. Timer
9.1 Overview
This LSI includes 2 channels of 8-bit timers.
For input clocks, see Chapter 6, “Clock Generation Circuit”.
9.1.1 Features
•
The timer interrupt (TMnINT) is generated when the values of timer counter register (TMnC, n=2, 3) and timer
data register (TMnD) coincide.
•
A timer configured by combining timer 2 and timer 3 can be used as a 16-bit timer.
•
For the timer clock, the low-speed clock (LSCLK), high-speed time base clock (HTBCLK), or external clock can
be selected.
•
A 16bit-timer 2 & 3 has clock frequency measurement mode, which can count HTBCLK and generates the
timer interrupt (TM3INT) when the count ends.
Using the count data to know the frequency by software can determine more accurate baud-rate.
9.1.2 Configuration
Figure 9-1 shows the configuration of the timers.
TMnCON0 : Timer control register 0
TMnCON1 : Timer control register 1
TMmD, TMnD : Timer data register
TMmC, TMnC : Timer counter register
(a) In 8-bit Timer Mode (Timers 2, Timer 3)
(b) In 16-bit Timer Mode (Timers 2, Timer 3)
TMnC
Data bus
TMmINT
LSCLK
TMnCON0
TMnCON1
R
Matched
Comparator
HTBCLK
Write TMmC
TnCK
Write TMnC
8
8
8
8
TMnD
TMmD
TMmC
R
8
8
16
8 8
16
External clock
PP44/T2CK
TMmC latch
Read TMnC
n,m = 2,3
TMnC
8
Data bus
TMnINT
LSCLK
TMnCON0
TMnCON1
R
Matched
TMnD
Comparator
8
HTBCLK
8
n=2, 3
Write TMnC
TnCK
8
External clock
P44/T2CK
P45/T3CK
Содержание ML610471
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...