14.5.3
Count Start Timing for Duty Measurement
If a rising edge of the external event input is detected after the START bit in TWCR2 has been set
to 1, a count enable signal is set. At this time, if the TWCNT input clock exists, TWCNT starts
incrementing. Figure 14.5 shows the count start timing for duty measurement.
External signal
Count enable
signal
Internal clock
TWCNT
input clock
TWCNT
Figure 14.5 Count Start Timing for Duty Measurement
14.5.4
Capture Timing during Duty Measurement
When a falling edge of the external event signal is detected during duty measurement, the
TWCNT value is transferred to TWICR. Figure 14.6 shows the capture timing during duty
measurement.
External signal
Capture signal
TWCNT
N-1
TWICR
Figure 14.6 Input Capture Timing during Duty Measurement
Rev. 1.00, 09/03, page 408 of 704
00
N
n
01
N