Hitachi H8/329 Series Hardware Manual page 170

Single-chip microcomputer
Table of Contents

Advertisement

(5) Incrementation Caused by Changing of Internal Clock Source: When an internal clock
source is changed, the changeover may cause the timer counter to increment. This depends on the
time at which the clock select bits (CKS1, CKS0) are rewritten, as shown in table 7-5.
The pulse that increments the timer counter is generated at the falling edge of the internal clock
source signal. If clock sources are changed when the old source is High and the new source is Low,
as in case No. 3 in table 7-5, the changeover generates a falling edge that triggers the TCNT clock
pulse and increments the timer counter.
Switching between an internal and external clock source can also cause the timer counter to
increment.
Table 7-5. Effect of Changing Internal Clock Sources
No.
Description
Low → Low
*1
Clock select bits are
1
rewritten while both
clock sources are Low.
Low → High
*2
Clock select bits are
2
rewritten while old
clock source is Low and
new clock source is High.
Notes: *1 Including a transition from Low to the stopped state (CKS1 = 0, CKS0 = 0), or a
transition from the stopped state to Low.
*2 Including a transition from the stopped state to High.
:
Old clock
source
New clock
source
TCNT clock
pulse
TCNT
:
Old clock
source
New clock
source
TCNT clock
pulse
TCNT
Timing chart
N
CKS rewrite
N
N + 1
161
N + 1
N + 2
CKS rewrite

Advertisement

Table of Contents
loading

Table of Contents