515
Chapter 11
16-bit Timer/Event Counter T
User’s Manual U16580EE3V1UD00
(4)
Control through TTnCTL2 register
The settings of the TTnCTL2 register in the encoder compare mode
(TTnMD3 to TTnMD0 = 1000B) are as follows.
•
In the case of bits TTnUDS1 and TTnUDS0, up/down judgment control is performed for the
phase input from pins TENCTn0 and TENCTn1.
•
In the case of bits TTnECM1 and TTnECM0, counter clear control is performed upon a match
between the counter value and the compare setting value.
Bits TTnECM1 and TTnECM0 are valid in modes where the TTnCCR0 or TTnCCR1 register is
used as a compare-only register.
These bits are invalid in modes where the TTnCCR0 or TTnCCR1 register is used as a
capture-only register.
•
The TTnLDE bit controls the function to load to the counter the setting value of the TTnCCR0
register upon occurrence of counter underflow.
Bit TTnLDE is valid only when the TTnECm bit setting is 00B, 01B, in a mode where the TTnCCR0
or TTnCCR1 register is used as a compare-only register.
In the case of all other settings, bit TTnLDE is invalid even if manipulated.
As an example of the use of the encoder count function, counter operation becomes possible
between the setting values of registers 0000H to TTnCCR0 by using the counter load functions
(TTnLDE = 1) indicated with “
•
” in the table, and the function for clearing the counter to 0000H in
case the count operation following a match with the TTnCCR0 buffer register is up count
(TTnECM0 = 1). (Refer to
11.6.9 (4) (c) Counter load function for TTnCCR0 register setting
value upon underflow (bit TTnLDE of register TTnCTL2))
TTnMD3 to 0
TTnUDS1 to 0
TTnECM1
TTnECM0
TTnLDE
Clear
Load
1000B
All settings
possible
00B
01B
10B
11B
0
0
0
-
-
1
√
1
0
TTnCCR0
-
1
•
1
0
Invalid
TTnCCR1
-
1
Invalid
TTnCCR0
TTnCCR1
-
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: ......