Section 12
16-Bit Duty Period Measurement Timer (TDP)
Rev. 1.00 Apr. 28, 2008 Page 345 of 994
REJ09B0452-0100
(3) CMF Setting Timing when a Compare Match Occurs
The CMF flag in TDPCSR is set in the last state in which the values in TDPCNT and TDPWDMX
match (timing when TDPCNT updates the matched count value) in timer mode. Accordingly, a
compare match signal is not generated until an additional cycle of the TDPCNT input clock is
generated after a match between the values in TDPCNT and TDPWDMX. For details, see section
12.6.2, Conflict between TDPPDMX Write and Compare Match. Figure 12.6 shows the timing on
which the CMF flag is set.
φ
TDPCNT
TDPWDMX
CMF
N + 1
N
N
Compare match
signal
Figure 12.6 Timing of CMF Flag Setting on Compare Match
12.4.2
Cycle Measurement Mode
The TDP operates in cycle measurement mode when the TDPMDS bit in TDPCR1 is set to 1.
(1) Counter
Operation
TDPCNT counts up in cycle measurement mode regardless of the setting of the CST bit in
TDPCR1. TDPCNT is cleared to H'0000 when the first edge in the measurement period is
detected, from which state it counts up. Figure 12.7 shows an example of counter operation in
cycle measurement mode.
φ
TDPCYI
TDPCNT
clear signal
TDPCNT
input clock
H'0001
H'0000
H'0001
H'0002
H'0000
H'0003
N
TDPCNT
Figure 12.7 Example of Counter Operation in Cycle Measurement Mode
Summary of Contents for H8S/2100 Series
Page 2: ...Rev 1 00 Apr 28 2008 Page ii of xxvi...
Page 54: ...Section 1 Overview Rev 1 00 Apr 28 2008 Page 28 of 994 REJ09B0452 0100...
Page 92: ...Section 2 CPU Rev 1 00 Apr 28 2008 Page 66 of 994 REJ09B0452 0100...
Page 158: ...Section 5 Interrupt Controller Rev 1 00 Apr 28 2008 Page 132 of 994 REJ09B0452 0100...
Page 244: ...Section 8 8 Bit PWM Timer PWMU Rev 1 00 Apr 28 2008 Page 218 of 994 REJ09B0452 0100...
Page 330: ...Section 10 16 Bit Timer Pulse Unit TPU Rev 1 00 Apr 28 2008 Page 304 of 994 REJ09B0452 0100...
Page 416: ...Section 13 8 Bit Timer TMR Rev 1 00 Apr 28 2008 Page 390 of 994 REJ09B0452 0100...
Page 612: ...Section 18 I 2 C Bus Interface IIC Rev 1 00 Apr 28 2008 Page 586 of 994 REJ09B0452 0100...
Page 706: ...Section 20 LPC Interface LPC Rev 1 00 Apr 28 2008 Page 680 of 994 REJ09B0452 0100...
Page 752: ...Section 21 FSI Interface Rev 1 00 Apr 28 2008 Page 726 of 994 REJ09B0452 0100...
Page 774: ...Section 23 RAM Rev 1 00 Apr 28 2008 Page 748 of 994 REJ09B0452 0100...
Page 1008: ...Section 28 Electrical Characteristics Rev 1 00 Apr 28 2008 Page 982 of 994 REJ09B0452 0100...
Page 1020: ...Rev 1 00 Apr 28 2008 Page 994 of 994 REJ09B0452 0100...
Page 1023: ......
Page 1024: ...H8S 2117R Group Hardware Manual...