Figure 10-5: Tmrn Capture/Compare Register 3 (Trnccr3) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(4)
TMRn capture/compare register 3 (TRnCCR3)
the TRnCCR3 register is a 16-bit register that functions both as a capture register and a compare
register.
In the free-running mode only, bit TRnCCS3 of the TRnOPT0 register is used to select whether to
use the TRnCCR3 register as a capture register or a compare register.
In the pulse width measurement mode, the TRnCCR3 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
TRnCCR3 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-5: TMRn Capture/Compare Register 3 (TRnCCR3)

After reset:
0000H
15
14
TRnCCR3
(a) Use as compare register
When TRnCE = 1, the TRnCCR3 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 TR1CCR3 register upon detection of the edge of the capture
trigger (TIR13) input.
Remark:
The capture function is provided only for TMR1.
Chapter 10 16-bit Inverter Timer/Counter R
R/W
Address:
13
12
11
10
Compare register rewrite operation.
User's Manual U16580EE3V1UD00
TR0CCR3 FFFFF59AH,
TR1CCR3 FFFFF5DAH
9
8
7
6
5
TRnCCR3 Register Write Access Mode
Reload
Anytime rewrite
Reload/anytime rewrite switchable
4
3
2
1
0
319

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents