Rev. 1.0, 03/01, page 152 of 280
12.3
Operation
The watchdog timer is provided with an 8-bit counter. If 1 is written to WDON while writing 0 to
B2WI when TCSRWE in TCSRWD is set to 1, TCWD begins counting up. (To operate the
watchdog timer, two write accesses to TCSRWD is required.) When a clock pulse is input after
the TCWD count value has reached H'FF, the watchdog timer overflows and an internal reset
signal is generated one base clock (
φ
) cycle later. The internal reset signal is output for a period of
512
φ
osc
clock cycles. TCWD is a writable counter, and when a value is set in TCWD, the count-
up starts from that value. An overflow period in the range of 1 to 256 input clock cycles can
therefore be set, according to the TCWD set value.
Figure 12-2 shows an example of watchdog timer operation.
Example:
With 30ms overflow period when
φ
= 4 MHz
4
×
10
6
×
30
×
10
–3
= 14.6
8192
TCWD overflow
H'FF
H'00
Internal reset
signal
H'F1
TCWD
count value
H'F1 written
to TCWD
H'F1 written to TCWD
Reset generated
Start
512
φ
osc
clock cycles
Therefore, 256 – 15 = 241 (H'F1) is set in TCW.
Figure 12-2 Watchdog Timer Operation Example
Summary of Contents for H8/3670F-ZTAT HD64F3670
Page 2: ...Rev 2 0 03 01 page ii of xxiv ...
Page 4: ...Rev 2 0 03 01 page iv of xxiv ...
Page 14: ...Rev 2 0 03 01 page xiv of xxiv ...
Page 20: ...Rev 1 0 03 01 page xx of xxiv ...
Page 24: ...Rev 1 0 03 01 page xxiv of xxiv ...
Page 78: ...Rev 1 0 03 01 page 54 of 280 ...
Page 112: ...Rev 1 0 03 01 page 88 of 280 ...
Page 248: ...Rev 1 0 03 01 page 224 of 280 ...