469
Chapter 11
16-bit Timer/Event Counter T
User’s Manual U16580EE3V1UD00
(3)
TMTn control register 2 (TTnCTL2)
The TTnCTL2 register is an 8-bit register that controls the operation of TMTn.
This register can be read and written in 8-bit or 1-bit units.
Reset input clears this register to 00H.
The settings of the TTnCTL2 register are valid only in the encoder compare mode. The settings of
this register are invalid in all other modes.
Set the TTnCTL2 register when TTnCE = 0. When TTnCE = 1, write access to the TTnCTL2
register can be performed with the same value.
Figure 11-8:
TMTn Control Register 2 (TTnCTL2) (1/2)
Remark:
n = 0, 1
After reset:
00H
R/W
Address:
TR0CTL1 FFFFF692H,
TR1CTL1 FFFFF6A2H
7
6
5
4
3
2
1
0
TTnCTL2
TTnECC
0
0
TTnLDE TTnECM1 TTnECM0 TTnUDS1 TTnUDS0
(n = 0, 1)
TTnECC
Selection of Initialization/Hold of Counter Value when TTnCE = 0
0
Initialize counter value when TTnCE = 0
1
Hold counter value when TTnCE = 0
When TTnECC = 0, setting TTnCE = 0 causes the counter to be reset to FFFFH, the
capture registers (TTnCCR0/TTnCCR1) to be reset to 0000H, and the encoder-dedicated
flags (TTnEOF/TTnEUF/TTnESF) to be reset to 0. When TTnECC = 0, the value of the
TTnTCW register is loaded to the counter when TTnCE is set from 0 to 1.
When TTnECC = 1, setting TTnCE = 0 causes the values of the counter, capture registers
(TTnCCR0/TTnCCR1), and encoder dedicated flags (TTnEOF/TTnEUF/TTnESF) to be
held. When TTnECC = 1, the value of the TTnTCW register is not loaded to the counter.
Remark:
The setting of bit TTnECC is valid in the encoder compare mode.
TTnLDE
Encoder Load Enable
0
Disable transfer of compare setting value to counter
1
Enable transfer of compare setting value (TTnCCR0) to counter when
underflow occurs
Remark:
The setting of bit TTnLDE is valid in the encoder compare mode and bits
TTnECM1 and TTnECM0 are set as follows.
•
TTnECM1 = 0, TTnECM0 = 0 or 1
TTnECM1
Encoder Clear Mode on Match of Counter and TTnCCR1 Register
0
No clear condition
1
When the counter and TTnCCR1 register match, clear the counter if the next
count is a down count (TTnESF = 1)
Remark:
The setting of bit TTnECM1 is valid in the encoder compare mode.
Summary of Contents for V850E/PH2
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 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only 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: ......