Datasheet
Section 13 Timer W 
Rev. 3.00 Mar. 15, 2006 Page 210 of 526 
REJ09B0060-0300   
13.6 Usage Notes 
The following types of contention or operation can occur in timer W operation. 
1.  The pulse width of the input clock signal and the input capture signal must be at least two 
system clock (φ) cycles; shorter pulses will not be detected correctly. 
2.  Writing to registers is performed in the T2 state of a TCNT write cycle. 
If counter clear signal occurs in the T2 state of a TCNT write cycle, clearing of the counter 
takes priority and the write is not performed, as shown in figure 13.24. If counting-up is 
generated in the TCNT write cycle to contend with the TCNT counting-up, writing takes 
precedence. 
3.  Depending on the timing, TCNT may be incremented by a switch between different internal 
clock sources. When TCNT is internally clocked, an increment pulse is generated from the 
rising edge of an internal clock signal, that is divided system clock (φ). Therefore, as shown in 
figure 13.25 the switch is from a low clock signal to a high clock signal, the switchover is seen 
as a rising edge, causing TCNT to increment. 
4.  If timer W enters module standby mode while an interrupt request is generated, the interrupt 
request cannot be cleared. Before entering module standby mode, disable interrupt requests. 
Counter clear 
signal
Write signal
Address 
φ
TCNT address
TCNT
TCNT write cycle
T
1
T
2
N H'0000
Figure 13.24 Contention between TCNT Write and Clear 










