270
Chapter 9
16-Bit Timer/Event Counter P
User’s Manual U16580EE3V1UD00
(6)
TMPn option register 0 (TPnOPT0)
The TPnOPT0 register is an 8-bit register used to set the capture/compare operation and detect
overflow.
This register can be read or written in 8-bit or 1-bit units.
Reset input clears this register to 00H.
Figure 9-10:
TMPn Option Register 0 (TPnOPT0)
Caution:
Rewrite the TPnCCS1 and TPnCCS0 bits only when TPnCE = 0. (The same value can
be written when TPnCE = 1.) If rewriting was mistakenly performed, set TPnCE = 0
and then set the bits again.
Remark:
n = 0 to 8
After reset:
00H
R/W
Address:
TP0OPT0 FFFFF605H, TP1OPT0 FFFFF615H,
TP2OPT0 FFFFF625H, TP3OPT0 FFFFF635H,
TP4OPT0 FFFFF645H, TP5OPT0 FFFFF655H,
TP6OPT0 FFFFF665H, TP7OPT0 FFFFF675H,
TP8OPT0 FFFFF685H
7
6
5
4
3
2
1
0
TPnOPT0
0
0
TPnCCS1 TPnCCS0
0
0
0
TPnOVF
(n = 0 to 8)
TPnCCS1
TPnCCR1 register capture/compare selection
0
Compare register selection
1
Capture register selection
The TPnCCS1 bit settings are valid only in the free-running mode.
TPnCCS0
TPnCCR0 register capture/compare selection
0
Compare register selection
1
Capture register selection
The TPnCCS0 bit settings are valid only in the free-running mode.
TPnOVF
Timer P overflow detection flag
0
No overflow occurrence after timer restart or flag reset
1
Overflow occurrence
•
The TPnOVF flag is set when the 16-bit counter value overflows from FFFFH to 0000H
in the free-running mode or the pulse measurement mode.
•
An interrupt request signal (INTTPnOV) is generated at the same time that the
TPnOVF flag is set (1). The INTTPnOV signal is not generated in modes other than the
free-running mode or the pulse measurement mode.
•
The TPnOVF flag is not cleared even when the TPnOVF flag and the TPnOPT0
register are read.
•
The TPnOVF flag can be both read and written, but only reset (0) is accepted. Writing
1 has no influence on the operation of timer P.
Summary of Contents for V850E/PH2
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 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only 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: ......