477
Chapter 11
16-bit Timer/Event Counter T
User’s Manual U16580EE3V1UD00
(9)
TMTn option register 1 (TTnOPT1)
The TTnOPT1 register is an 8-bit register that detects encoder-dedicated underflow, overflow, and
counter up/down operation.
This register can be read and written in 8-bit or 1-bit units.
Reset input clears this register to 00H.
The setting of the TTnOPT1 register is valid only in the encoder compare mode. In all other
modes, the setting value is invalid.
Figure 11-14:
TMTn Option Register 1 (TTnOPT1) (1/2)
Remark:
n = 0, 1
After reset:
00H
R/W
Address:
TT0OPT1 FFFFF698H,
TT1OPT1 FFFFF6A8H
7
6
5
4
3
2
1
0
TTnOPT1
0
0
0
0
0
TTnEUF
TTnEOF
TTnESF
(n = 0, 1)
TTnEUF
Indication of Encoder Underflow
0
No underflow indicated
1
Indicates counter underflow in the encoder compare mode
If the counter value is counted down from 0000H, underflow occurs, the OVF flag is set (to
1), and the counter is set to FFFFH. When the TTnEUF flag is set (to 1), an overflow
interrupt (INTTTnOV) occurs at the same time.
The TTnEUF flag is cleared (to 0) under the following conditions.
•
When 0 is written by CPU instruction
•
When TTnCE = 0 is set while TTnECC = 0
Cautions: 1. The TTnEUF flag is not cleared even if it is read.
2. The TTnEUF flag can be read and written, but even if 1 is written to the
TTnEUF flag, this is invalid.
Remark:
When bit TTnECC of the TTnCTL2 register is 1, the flag status is held even if
the value of bit TTnCE is changed from 1 to 0.
Summary of Contents for MuPD70F3187
Page 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Page 16: ...16 User s Manual U16580EE3V1UD00 ...
Page 28: ...28 User s Manual U16580EE3V1UD00 ...
Page 32: ...32 User s Manual U16580EE3V1UD00 ...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Page 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Page 1053: ......