12.3.6
TDP Input Capture Register (TDPICR)
TDPICR is a 16-bit read-only register. In timer mode, the TDPCNT value is transferred to
TDPICR on the edge selected by the IEDG bit in TDPCR1, and the ICPF flag in TDPCSR is set to
1. In cycle measurement mode, the TDPCNT value is transferred to TDPICR when the first edge
of the measurement period is detected. At the same time, the ICPF flag in TDPCSR is set to 1.
TDPICR must always be accessed in 16-bit units and cannot be accessed in 8-bit units. TDPICR is
initialized to H'0000.
12.3.7
TDP Input Capture Buffer Register (TDPICRF)
TDPICRF is a 16-bit read-only register. TDPICRF can be used as a TDPICR buffer register.
When input capture occurs, the TDPICR value is transferred to TDPICRF.
TDPICRF must always be accessed in 16-bit units and cannot be accessed in 8-bit units.
TDPICRF is initialized to H'0000.
12.3.8
TDP Status Register (TDPCSR)
TDPCSR indicates the status flags and selects the external clock edge.
Bit
Bit Name
7
OVF
6
TWDMXOVF
Initial
Value
R/W
Description
0
R/(W)* Timer Overflow
This flag indicates a TDPCNT overflow.
[Setting condition]
•
TDPCNT overflow (H'FFFF changes to H'0000)
[Clearing condition]
•
Reading OVF when OVF = 1 and then writing 0 to OVF
0
R/(W)* Pulse Width Upper Limit Overflow
This flag indicates that the waveform pulse width measured
in cycle measurement mode has exceeded the upper limit
specified in TDPWDMX.
[Setting condition]
•
When TDPICR is greater than TDPWDMX
[Clearing condition]
•
Reading TWDMXOVF when TWDMXOVF = 1 and then
writing 0 to TWDMXOVF
Section 12 16-Bit Duty Period Measurement Timer (TDP)
Rev. 1.00 Apr. 28, 2008 Page 335 of 994
REJ09B0452-0100