
ML610Q421/ML610Q422/ML610421 User’s Manual
Chapter 10 Timers
10 – 1
10. Timers
10.1 Overview
This LSI includes 4 channels of 8-bit timers.
For the input clock, see Chapter 6, “Clock Generation Circuit”.
10.1.1 Features
•
The timer interrupt (TMnINT) is generated when the values of timer counter register (TMnC, n=0 to 3) and timer data
register (TMnD) coincide.
•
A timer configured by combining timer 0 and timer 1 or 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.
10.1.2 Configuration
Figure 10-1 shows the configuration of the timers.
TMnCON0: Timer control register 0
TMnCON1: Timer control register 1
TMmD, TMnD: Timer data registers
TMmC, TMnC: Timer counter registers
(a) In 8-bit Timer Mode (Timers 0 to 3)
(b) 16-bit Timer Mode (Timers 0 to 3)
TMnC
8
Data bus
TMnINT
LSCLK
TMnCON0
TMnCON1
R
Match
TMnD
Comparator
8
HTBCLK
8
n = 0 to 3
Write TMnC
TnCK
8
External clock
P44/T02P0CK
P45/T13P1CK
TMnC
TMmINT
LSCLK
TMnCON0
TMnCON1
R
Match
Comparator
HTBCLK
n = 0, 2 m = 1, 3
Write TMmC
TnCK
Write TMnC
TMnD
TMmD
TMmC
R
8
8
16
8
8
16
External clock
P44/T02P0CK
P45/T13P1CK
Data bus
8
8
8
8
TMmC latch
Read TMnC
Содержание ML610421
Страница 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Страница 15: ...Chapter 1 Overview...
Страница 44: ...Chapter 2 CPU and Memory Space...
Страница 49: ...Chapter 3 Reset Function...
Страница 53: ...Chapter 4 MCU Control Function...
Страница 69: ...Chapter 5 Interrupts INTs...
Страница 93: ...Chapter 6 Clock Generation Circuit...
Страница 110: ...Chapter 7 Time Base Counter...
Страница 121: ...Chapter 8 Capture...
Страница 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Страница 135: ...Chapter 10 Timers...
Страница 160: ...Chapter 11 PWM...
Страница 172: ...Chapter 12 Watchdog Timer...
Страница 180: ...Chapter 13 Synchronous Serial Port...
Страница 195: ...Chapter 14 UART...
Страница 216: ...Chapter 15 I2 C Bus Interface...
Страница 231: ...Chapter 16 NMI Pin...
Страница 237: ...Chapter 17 Port 0...
Страница 246: ...Chapter 18 Port 1...
Страница 252: ...Chapter 19 Port 2...
Страница 259: ...Chapter 20 Port 3...
Страница 270: ...Chapter 21 Port 4...
Страница 282: ...Chapter 22 Port A...
Страница 290: ...Chapter 23 Melody Driver...
Страница 304: ...Chapter 24 RC Oscillation Type A D Converter...
Страница 327: ...Chapter 25 Successive Approximation Type A D Converter...
Страница 338: ...Chapter 26 LCD Drivers...
Страница 371: ...Chapter 27 Battery Level Detector...
Страница 378: ...Chapter 28 Power Supply Circuit...
Страница 381: ...Chapter 29 On Chip Debug Function...
Страница 384: ...Appendixes...
Страница 435: ...Revision History...