Figure 11-2: Tmtn Capture/Compare Register 0 (Ttnccr0); Table 11-3: Capture/Compare Functions In Each Mode - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(1)
TMTn capture/compare register 0 (TTnCCR0)
The TTnCCR0 register is a 16-bit register that functions both as a capture register and as a
compare register.
This register can be read and written in 16-bit units only.
Reset input clears this register to 0000H.

Figure 11-2: TMTn Capture/Compare Register 0 (TTnCCR0)

After reset:
0000H
15
14
TTnCCR0
The capture and compare functions are as follows in each mode.

Table 11-3: Capture/Compare Functions in Each Mode

Operation Mode
Interval mode
External event count mode
External trigger pulse output mode Compare only
One-shot pulse mode
PWM mode
Free-running mode
Pulse width measurement mode
Triangular wave PWM mode
Encoder compare mode
Offset trigger generation mode
Notes: 1. The batch write reload timing is the counter underflow timing only.
2. The condition is set with the TTnECM0 and TTnECM1 bits of the TTnCTL2 register.
Remark:
n = 0, 1
Chapter 11 16-bit Timer/Event Counter T
R/W
Address:
13
12
11
10
9
Capture/Compare Setting of
TTnCCR0 Register
Compare only
Compare only
Compare only
Compare only
Capture/compare selectable Anytime write
Capture only
Compare only
Compare only
Capture only
User's Manual U16580EE3V1UD00
TT0CCR0 FFFFF69AH,
TT1CCR0 FFFFF6AAH
8
7
6
5
4
Rewriting Method
during Compare
Anytime write
Anytime write
Batch write
(Reload)
Anytime write
Batch write
(Reload)
-
Batch write
Note 1
(Reload)
Anytime write
-
3
2
1
0
Counter Clear Function
Compare match
Compare match
Compare match
Compare match
Compare match
-
External input (TITn0 pin)
Compare match
Depends on set
Note 2
condition
External input (TITn0 pin)
461

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents