CHAPTER 9 TIMER/COUNTER FUNCTION
343
User’s Manual U15195EJ5V0UD
(10) Timer 2 time base status register 0 (TBSTATE0)
The TBSTATE0 register indicates the status of TM2n (n = 0, 1).
This register can be read/written in 16-bit units.
When the higher 8 bits of the TBSTATE0 register are used as the TBSTATE0H register, and the lower 8 bits
are used as the TBSTATE0L register, they can be read/written in 8-bit or 1-bit units.
Caution The ECFEn, RSFEn, and UDFEn bits are read-only bits.
14
0
13
0
12
0
<2>
ECFE0
<3>
OVFE0
4
0
5
0
6
0
7
0
<8>
UDFE1
<9>
RSFE1
<10>
ECFE1
<11>
OVFE1
15
0
<1>
RSFE0
<0>
UDFE0
TBSTATE0
Address
FFFFF664H
After reset
0101H
Bit position
Bit name
Function
11, 3
OVFEn
Indicates TM2n overflow status.
0: No overflow
1: Overflow
Caution
If write access to the TBSTATE0 register is performed when an
overflow has not been detected, the OVFEn bit is cleared (0).
10, 2
ECFEn
Indicates the ECLR signal input status.
0: Low level
1: High level
9, 1
RSFEn
Indicates the TM2n count status.
0: TM2n is not counting.
1: TM2n is counting (either up or down)
8, 0
UDFEn
Indicates the TM2n up/down count status.
0: TM2n is in the down count mode.
1: TM2n is in the up count mode.
Remark
n = 0, 1