Datasheet

Table Of Contents
Section 13 Timer G
Rev. 2.00 Jul. 04, 2007 Page 266 of 692
REJ09B0309-0200
13.7 Usage Notes
13.7.1 Internal Clock Switching and TCG Operation
Depending on the timing, TCG may be incremented by a switch between different internal clock
sources. Table 13.3 shows the relation between internal clock switchover timing (by write to bits
CKS1 and CKS0) and TCG operation.
When TCG is internally clocked, an increment pulse is generated on detection of the falling edge
of an internal clock signal, which is divided from the system clock (φ) or subclock (φ
W
). For this
reason, in a case like No.3 in table 13.3 where the switch is from a high clock signal to a low clock
signal, the switchover is seen as a falling edge, causing TCG to increment.
Table 13.3 Internal Clock Switching and TCG Operation
No.
Clock Levels Before and After
Modifying Bits CKS1 and CKS0
TCG Operation
1 Goes from low level to low level
Clock before
switching
Clock after
switching
Count
clock
TCG N N+1
Write to CKS1 and CKS0
2 Goes from low level to high level
Clock before
switching
Clock after
switching
Count
clock
TCG N N+1 N+2
Write to CKS1 and CKS0