Contention between General Register Write and Input Capture: If an input capture signal
occurs in the T
3
state of a general register write cycle, input capture takes priority and the write to
the general register is not performed. See figure 10-68.
Figure 10-68 Contention between General Register Write and Input Capture
Note on Waveform Period Setting: When a counter is cleared by compare match, the counter is
cleared in the last state at which the TCNT value matches the general register value, at the time
when this value would normally be updated to the next count. The actual counter frequency is
therefore given by the following formula:
f =
(f: counter frequency. ø: system clock frequency. N: value set in general register.)
ø
Address bus
Internal write signal
Input capture signal
TCNT
GR
M
GR address
General register write cycle
T
1
T
2
T
3
M
ø
(N + 1)
387
www.DataSheet4U.com