318
Chapter 10
16-bit Inverter Timer/Counter R
User’s Manual U16580EE3V1UD00
(3)
TMRn capture/compare register 2 (TRnCCR2)
The TRnCCR2 register is a 16-bit register that functions both as a capture register and compare
register.
In the free-running mode only, bit TRnCCS2 of the TRnOPT0 register is used to select whether to
use the TRnCCR2 register as a capture register or a compare register.
In the pulse width measurement mode, the TRnCCR2 register can be used as a dedicated capture
register. (The register cannot be used as a compare register.)
In modes other than the free-running mode and the pulse width measurement mode, all
TRnCCR2 registers function as dedicated compare registers.
This register can be read and written in 16-bit units.
RESET input clears this register to 0000H.
Remarks: 1.
In the high-accuracy T-PWM mode, when bit 0 is set to “1”, the additional pulse control
function is engaged. (For details about the additional pulse control function, refer to
10.10.9
10.10.9.)
2.
n = 0, 1
Figure 10-4:
TMRn Capture/Compare Register 2 (TRnCCR2)
(a) Use as compare register
When TRnCE = 1, the TRnCCR2 register write access method is as follows.
Remarks: 1.
For details about the compare register rewrite operation, refer to
10.4.2 Compare register rewrite operation
.
2.
n = 0, 1
(b) Use as capture register
The counter value is saved to the TRnCCR2 register upon detection of the edge of the capture
trigger (TIR12) input.
Remark:
The capture function is provided only for TMR1.
After reset:
0000H
R/W
Address:
TR0CCR2 FFFFF59CH,
TR1CCR2 FFFFF5DCH
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TRnCCR2
Timer Rn Operation Mode
TRnCCR2 Register Write Access Mode
PWM mode, external trigger pulse output mode, triangular
wave PWM mode, PWM mode with dead time
Reload
Free-running mode, external event count mode, one-shot
pulse mode, interval timer mode
Anytime rewrite
High-accuracy T-PWM mode
Reload /anytime rewrite switchable
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: ......