Hitachi H8/3048 Hardware Manual page 615

Single-chip microcomputer
Table of Contents

Advertisement

Loop Counter Values in Programs and Watchdog Timer Overflow Interval Settings: The
values of a to h in the programs depend on the clock frequency. Table 18-14 indicates the values
www.DataSheet4U.com
for 10 MHz. Values for other frequencies can be calculated as shown below, but use the settings
in table 18-15 for the value off.
Table 18-14 Loop Counter Values in Program (10 MHz)
Clock Frequency
f = 10 MHz
Hexadecimal H'0019
Decimal
Comments
Formula:
Clock frequency f [MHz]
a
to h
=
(f)
(f)
Examples for 16 MHz:
16
×
a
=
25 =
(f)
10
16
×
b
=
(f)
10
16
×
c
=
(f)
10
16
× 947 = 1515.2 ≈ H'05EC
d
=
(f)
10
16
×
e
=
(f)
10
16
×
g
=
(f)
10
16
×
h
=
(f)
10
Table 18-15 Watchdog Timer Overflow Interval Settings
Clock Frequency
10 MHz ≤ frequency ≤ 16 MHz
2 MHz ≤ frequency < 10 MHz
1 MHz ≤ frequency < 2 MHz
Note:
The watchdog timer (WDT) set value is calculated based on the number of instructions
including write time and erase time from start to stop of WDT operation. In this program
example, therefore, no more instructions should be added between the start and stop of
WDT operation.
a
b
(f)
(f)
H'0007
25
7
Program tVS1
at write at pre-write
× {a
10
40 ≈ H'0028
11.2 ≈ H'000C
7 =
11.2 ≈ H'000C
7 =
11.2 ≈ H'000C
7 =
14.4 ≈ H'000F
9 =
6.4 ≈ H'0007
4 =
Variable
f
H'A57F
H'A57E
H'A57D
606
Variable
c
d
e
(f)
(f)
H'0007
H'03B3 H'0007
7
947
7
tVS2
Erase
tVS1
at erase
to h
}
(f = 10)
(f = 10)
g
h
(f)
(f)
(f)
H'0009 H'0004
9
4
z
tVS2

Advertisement

Table of Contents
loading

Table of Contents