
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 9 Timer
9-8
9.2.6 Timer 2 Control Register 0 (TM2CON0)
Address: 0F03AH
Access: R/W
Access size: 8-bit
Initial value: A0H
7 6 5 4 3 2 1 0
TM2CON0 T2FMA7 T2FMA6 T2FMA5
T2FMA4
T23MFM
T23M16
T2CS1 T2CS0
R/W R R R R
R/W
R/W
R/W
R/W
Initial
value
1 0 1 0 0 0 0 0
TM2CON0 is a special function register (SFR) to control the Timer 2.
Rewrite TM2CON0 while the timer 2 is stopped (T2STAT of the TM2CON1 register is “0”).
[Description of Bits]
•
T2CS1, T2CS0
(bits 1, 0)
The T2CS1 and T2CS0 bits are used for selecting the operation clock of timer 2. LSCLK, HTBCLK, or the
external clock (P44/T2CK) can be selected by these bits.
T2CS1 T2CS0
Description
0
0
LSCLK (initial value)
0 1
HTBCLK
1 0
Prohibited
1
1
External clock (P44/T2CK)
•
T23MFM, T23M16
(bit 3, 2)
The T23MFM bit and T23M16 bit is used for selecting the operating mode of timer 2 and timer 3..
In 8-bit timer mode, each of timer 0 and timer 1 operates independently as a 8-bit timer.
In 16-bit timer mode, timer 2 and timer 3 are connected and they operate as a 16-bit timer.
In 16-bit timer mode, timer 3 is incremented by a timer 2 overflow signal.
A timer 2 interrupt (TM2INT) is not generated.
In 16-bit timer frequency measurement mode, timer 2 and timer 3 are connected and they operate as a 16-bit
clock counter to measure the frequency.
A timer 2 interrupt (TM2INT) is not generated.
When this LSI does not have the frequency measurement function (T2FMA7 to T2FMA5 bit values are not
"1010"),
the T23MFM bit is read-only and the readout is always "0" regardless of the write access value.
T23MFM
T23M16
Description
0
0
8-bit timer mode (initial value)
0
1
16-bit timer mode
1 0
Prohibited
1
1
16-bit timer frequency measurement mode
•
T2FMA7 to T2FMA4
(bit 7 to 4)
T2FMA7 to T2FMA4 are read-only registers that show whether the frequency measurement function is
provided.
The readout is always "0A".
T2FMA7
T2FMA6 T2FMA5 T2FMA4
Description
1 0 1 0
The
frequency measurement mode is available
Содержание 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...