589
19.4.2
On-Board Programming Modes
Example of Boot Mode Operation
;
;
Flash memory
H8/3062F-ZTAT B-mask version
RAM
Host
Programming control
program
SCI
Application
program
(old version)
;;
New application
program
Flash memory
H8/3062F-ZTAT B-mask version
RAM
Host
SCI
Application
program
(old version)
Boot program area
New application
program
Flash memory
H8/3062F-ZTAT B-mask version
RAM
Host
SCI
Flash memory
prewrite-erase
Boot program
New application
program
Flash memory
H8/3062F-ZTAT B-mask version
Program execution state
RAM
Host
SCI
New application
program
Boot program
Programming control
program
Boot program area
;;
;
;
;
1. Initial
state
The old program version or data remains
written in the flash memory. The user should
prepare the programming control program and
new application program beforehand in the
host.
2. Programming control program transfer
When boot mode is entered, the boot program
in the H8/3062F-ZTAT B-mask version
(originally incorporated in the chip) is started
and the programming control program in the
host is transferred to RAM via SCI
communication. The boot program required for
flash memory erasing is automatically
transferred to the RAM boot program area.
3. Flash memory initialization
The erase program in the boot program area
(in RAM) is executed, and the flash memory is
initialized (to H'FF). In boot mode, total flash
memory erasure is performed, without regard
to blocks.
4. Writing new application program
An identification check is carried out to see if
the programming control program is compatible
with the H8/3062F-ZTAT B-mask version.
The programming control program transferred
from the host to RAM is executed, and the new
application program in the host is written into
the flash memory.
Boot program
Boot program
Programming control
program
Boot program area
Programming control
program
Summary of Contents for H8/3060
Page 10: ......
Page 16: ......
Page 114: ...66 ...
Page 132: ...84 ...
Page 144: ...96 ...
Page 170: ...122 ...
Page 212: ...164 ...
Page 268: ...220 ...
Page 332: ...284 ...
Page 396: ...348 ...
Page 494: ...446 ...
Page 698: ...650 ...
Page 748: ...700 H8 3064F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 8 Sample LED Circuit ...
Page 777: ...729 H8 3062F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 14 Sample LED Circuit ...
Page 810: ...762 ...
Page 994: ...946 ...