![NEC V850E/PH2 Скачать руководство пользователя страница 316](http://html1.mh-extra.com/html/nec/v850e-ph2/v850e-ph2_user-manual_4125194316.webp)
316
Chapter 10
16-bit Inverter Timer/Counter R
User’s Manual U16580EE3V1UD00
(1)
TMRn capture/compare register 0 (TRnCCR0)
The TRnCCR0 register is a 16-bit register provided with a capture function and a compare
function. In the case of the free-running mode only, bit TRnCCS0 of the TRnOPT0 register is used
to select use of the register as a capture register or as a compare register.
In the pulse width measurement mode, this register can be used as a capture-only register. (The
register cannot be used as a compare register.)
In modes other than the free-running mode and the pulse width measurement mode, the register
is used as a compare-only register.
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, writing to bit 0 of the TRnCCR0 register is ignored.
Moreover, bit 0 is read as 0.
2.
n = 0, 1
Figure 10-2:
TMRn Capture/Compare Register 0 (TRnCCR0)
(a) Use as compare register
When TRnCE = 1, the TRnCCR0 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
Caution:
To set the carrier frequency in the high-accuracy T-PWM mode, set the TRnCCR0 reg-
ister as follows.
Number of count clocks of carrier fre TRnDTC0 register value + TRnDTC1
register value.
For details about the carrier wave and dead time settings, refer to 10.10.9 10.10.9.
(b) Use as capture register
The counter value is saved to the TR1CCR0 register upon detection of the edge of the capture
trigger (TIR10) input.
Remark:
The capture function is provided only for TMR1.
After reset:
0000H
R/W
Address:
TR0CCR0 FFFFF598H,
TR1CCR0 FFFFF5D8H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TRnCCR0
Timer Rn Operation Mode
TRnCCR0 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
Содержание V850E/PH2
Страница 6: ...6 Preface User s Manual U16580EE3V1UD00...
Страница 16: ...16 User s Manual U16580EE3V1UD00...
Страница 28: ...28 User s Manual U16580EE3V1UD00...
Страница 32: ...32 User s Manual U16580EE3V1UD00...
Страница 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only User s Manual U16580EE3V1UD00 MEMO...
Страница 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO...
Страница 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00...
Страница 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00...
Страница 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO...
Страница 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO...
Страница 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO...
Страница 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO...
Страница 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO...
Страница 1052: ...1052 User s Manual U16580EE3V1UD00...
Страница 1053: ......