Datasheet
Section 12 16-Bit Duty Period Measurement Timer (TDP)
Rev. 3.00 Sep. 28, 2009 Page 335 of 910
REJ09B0350-0300
TDPCSR is set to 1. TDPPDMX must always be accessed in 16-bit units and cannot be accessed
in 8-bit units. TDPPDMX is initialized to H'FFFF.
12.3.5 TDP Cycle Lower Limit Register (TDPPDMN)
TDPPDMN is a 16-bit readable/writable register. When the TDPMDS bit in TDPCR1 is set to 1
(cycle measurement mode), TDPPDMN is available as a cycle lower limit register.
In cycle measurement mode, TDPPDMN can be used to set the lower limit value of measurement
period. When the third edge (the first edge of the next period) of the measurement period is
detected, the TDPCNT value is transferred to TDPICR and the values of TDPICR and TDPPDMN
are compared. If the TDPICR value is less than the TDPPDMN value, the TPDMNUDF flag in
TDPCSR is set to 1. TDPPDMN must always be accessed in 16-bit units and cannot be accessed
in 8-bit units. TDPPDMN is initialized to H'0000.
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.