Rev. 1.00, 09/03, page 412 of 704
14.7.3
Switching of Internal Clock and TWCNT Operation
The changeover may cause TWCNT to be incremented depending on the timing at which the
internal clock is switched (bits CKS2 to CKS0 are rewritten). Table 14.3 shows the relationship
between the timing and TCNT operation.
The TWCNT clock is generated on detection of the falling edge of the internal clock. If the clock
is changed when the old source is high and the new source is low, as in case no. 3 in table 14.3, the
changeover is regarded as a falling edge that generates the TWCNT clock, and TWCNT is
incremented.
Switching between an internal clock and external clock may also cause TWCNT to be
incremented. To prevent incorrect operation, ensure that TWCNT should be stopped before an
internal clock is changed.
Table 14.3 Switching of Internal Clock and TWCNT Operation
No.
Timing of Switchover by
Means of CKS2 to CKS0
Bits
TWCNT Operation
1
Switching from
low to low
*
1
Clock
before switchover
Clock
after switchover
TWCNT clock
TWCNT
Switchover of CKS bit
N
N+1
2
Switching from
low to high
*
2
N
N+1
N+2
Clock
before switchover
Clock
after switchover
TWCNT clock
TWCNT
Switchover of CKS bit
Summary of Contents for H8S/2437
Page 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Page 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Page 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Page 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Page 168: ...Rev 1 00 09 03 page 130 of 704 ...
Page 336: ...Rev 1 00 09 03 page 298 of 704 ...
Page 402: ...Rev 1 00 09 03 page 364 of 704 ...
Page 454: ...Rev 1 00 09 03 page 416 of 704 ...
Page 512: ...Rev 1 00 09 03 page 474 of 704 ...
Page 562: ...Rev 1 00 09 03 page 524 of 704 ...
Page 648: ...Rev 1 00 09 03 page 610 of 704 ...
Page 672: ...Rev 1 00 09 03 page 634 of 704 ...
Page 732: ...Rev 1 00 09 03 page 694 of 704 ...
Page 742: ...Rev 1 00 09 03 page 704 of 704 ...
Page 745: ......
Page 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...