317
Chapter 10
16-bit Inverter Timer/Counter R
User’s Manual U16580EE3V1UD00
(2)
TMRn capture/compare register 1 (TRnCCR1)
The TRnCCR1 register is a 16-bit register that functions both as a capture register and a compare
register.
When a compare register is rewritten in the reload mode, the reload request flag (TRnRSF)
becomes 1 when write access is performed to the TRnCCR1 register, and all the registers are
rewritten at the same time at the next reload timing.
In the free-running mode only, the TRnCCS1 bit of the TRnOPT0 register is used to select whether
to use the TRnCCR1 register as a capture register or as a compare register.
In the pulse width measurement mode, the TRnCCR1 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
TRnCCR1 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-3:
TMRn Capture/Compare Register 1 (TRnCCR1)
(a) Use as compare register
When TRnCE = 1, the TRnCCR1 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 TR1CCR1 register upon detection of the edge of the capture
trigger (TIR11) input.
Remark:
The capture function is provided only for TMR1.
After reset:
0000H
R/W
Address:
TR0CCR1 FFFFF59EH,
TR1CCR1 FFFFF5DEH
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TRnCCR1
Timer Rn Operation Mode
TRnCCR1 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: ......