Figure 10-4: Tmrn Capture/Compare Register 2 (Trnccr2) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(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)

After reset:
15
14
TRnCCR2
(a) Use as compare register
When TRnCE = 1, the TRnCCR2 register write access method is as follows.
Timer Rn Operation Mode
PWM mode, external trigger pulse output mode, triangular
wave PWM mode, PWM mode with dead time
Free-running mode, external event count mode, one-shot
pulse mode, interval timer mode
High-accuracy T-PWM mode
Remarks: 1. For details about the compare register rewrite operation, refer to
10.4.2
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.
318
Chapter 10 16-bit Inverter Timer/Counter R
0000H
R/W
13
12
11
10
Compare register rewrite operation.
User's Manual U16580EE3V1UD00
Address:
TR0CCR2 FFFFF59CH,
TR1CCR2 FFFFF5DCH
9
8
7
6
TRnCCR2 Register Write Access Mode
Reload
Anytime rewrite
Reload /anytime rewrite switchable
5
4
3
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents