261
Chapter 9
16-Bit Timer/Event Counter P
User’s Manual U16580EE3V1UD00
(1)
TMPn capture/compare register 0 (TPnCCR0)
The TPnCCR0 register is a 16-bit register that functions both as a capture register and as a
compare register.
Whether this register functions as a capture register or as a compare register can be controlled
with the TPnCCS0 bit of the TPnOPT0 register, but only in the free-running mode.
In the pulse width measurement mode, this register can be used as a dedicated capture register
(the compare function cannot be used.)
In modes other than the free-running mode and pulse width measurement mode, this register is
used as a dedicated compare register.
In the initial setting, the TPnCCR0 register is a compare register.
This register can be read or written in 16-bit units.
Reset input clears this register to 0000H.
Figure 9-2:
TMPn Capture/Compare Register 0 (TPnCCR0)
(a) Use as compare register
TPnCCR0 can be rewritten when TPnCE = 1
The timing at which the TPnCCR0 rewrite values become valid when TPnCE = 1 is as follows.
(b) Use as capture register
• TMP0 to TMP7
The counter value is saved to TPnCCR0 upon capture trigger (TIPn0) input edge detection.
• TMP8
Since TMP8 has no external input pin, the capture function can only be used internally for
capturing the interrupt signal (INTTT0CC0 of TMT0, or INTCM10 of TMENC1) specified by the
TPIC22 bit of TPIC2 register (ref. to
(9) TMP input control register 2 (TPIC2)
After reset:
0000H
R/W
Address:
TP0CCR0 FFFFF606H, TP1CCR0 FFFFF616H,
TP2CCR0 FFFFF626H, TP3CCR0 FFFFF636H,
TP4CCR0 FFFFF646H, TP5CCR0 FFFFF656H,
TP6CCR0 FFFFF666H, TP7CCR0 FFFFF676H,
TP8CCR0 FFFFF686H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TPnCCR0
(n = 0 to 8)
TMP Operation Mode
Method of Writing TPnCCR0 Register
PWM mode, external trigger pulse output mode
Reload
Free-running mode, external event count mode,
one-shot pulse output mode, interval timer
mode
Anytime write
Pulse width measurement mode
Cannot be used because dedicated capture
register
Summary of Contents for MuPD70F3187
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 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: ......