Timer 2 Control Register 0 (Tm2Con0) - LAPIS Semiconductor ML610472 User Manual

Table of Contents

Advertisement

ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 9 Timer

9.2.6 Timer 2 Control Register 0 (TM2CON0)

Address: 0F03AH
Access: R/W
Access size: 8-bit
Initial value: A0H
TM2CON0
T2FMA7
R/W
Initial value
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
0
0
1
1
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
0
0
1
1
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
1
7
6
5
T2FMA6
T2FMA5
R
R
R
1
0
1
T2CS0
0
LSCLK (initial value)
1
HTBCLK
0
Prohibited
1
External clock (P44/T2CK)
T23M16
0
8-bit timer mode (initial value)
1
16-bit timer mode
0
Prohibited
1
16-bit timer frequency measurement mode
T2FMA6
T2FMA5
T2FMA4
0
1
4
3
T2FMA4
T23MFM
R
R/W
0
0
Description
Description
0
The frequency measurement mode is available
9-8
2
1
T23M16
T2CS1
R/W
R/W
0
0
Description
0
T2CS0
R/W
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ml610q472Ml610471Ml610q473Ml610473Ml610q471

Table of Contents