CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
316
User’s Manual U14492EJ3V0UD
(7) Status registers 0, 1 (STATUS0, STATUS1)
The STATUSn register indicates the operating status of TM1n.
STATUSn is read-only in 8-bit or 1-bit units.
Caution
Overwriting the STATUSn register during TM1n operation (TM1CEn bit = 1) is prohibited.
7
0
STATUS0
6
0
5
0
4
0
3
0
<2>
TM1UDF0
<1>
TM1OVF0
<0>
TM1UBD0
Address
FFFFF5EFH
Initial value
00H
7
0
STATUS1
6
0
5
0
4
0
3
0
<2>
TM1UDF1
<1>
TM1OVF1
<0>
TM1UBD1
Address
FFFFF60FH
Initial value
00H
Bit Position
Bit Name
Function
2
TM1UDFn
TM1n underflow flag
0: No TM1n count underflow
1: TM1n count underflow
Caution
The TM1UDFn bit is cleared (to “0”) upon completion of read access
to the STATUSn register from the CPU.
1
TM1OVFn
TM1n overflow flag
0: No TM1n count overflow
1: TM1n count overflow
Caution
The TM1OVFn bit is cleared (to “0”) upon completion of read access
to the STATUSn register from the CPU.
0
TM1UBDn
Indicates the operating status of TM1n up/down count.
0: TM1n up count in progress
1: TM1n down count in progress
Caution
The state of the TM1UBDn bit differs according to the mode as
follows.
••••
The TM1UBDn bit is fixed to “0” by hardware when the CMD bit of
the TUMn register = 0 (general-purpose timer mode).
••••
The TM1UBDn bit indicates the TM1n up/down count status when
the CMD bit of the TUMn register = 1 (UDC mode).
Remark
n = 0, 1
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...