User Program Mode - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

Notes: *1 Mode pin and FWE pin input must satisfy the mode programming setup time (t
with respect to the reset release timing.
*2 For further information on FWE application and disconnection, see section 17.9, Flash
Memory Programming and Erasing Precautions.
*3 See section 4.2.2, Reset Sequence, and section 17.9, Flash Memory Programming and
Erasing Precautions. The reset period during operation is a minimum of 10 system
clock cycles for the H8/3062, H8/3061, and H8/3060 (versions with on-chip mask
ROM), but a minimum of 20 system clock cycles for the H8/3062F-ZTAT and the
H8/3062F-ZTAT R-mask version.
17.4.2

User Program Mode

When the H8/3062F-ZTAT or H8/3062F-ZTAT R-mask version is set to user program mode, its
flash memory can be programmed and erased by executing a user program. Therefore, on-board
reprogramming of the on-chip flash memory can be carried out by providing on-board means of
FWE control and supply of programming data, and storing a program/erase control program in
part of the program area as necessary.
To select user program mode, select a mode that enables the on-chip ROM (mode 5 or 7), and
apply a high level to the FWE pin. In this mode, on-chip supporting modules other than flash
memory operate as they normally would in modes 5 and 7.
Flash memory programming and erasing should not be carried out in mode 6. When mode 6 is set,
the FWE pin must be driven low.
The flash memory itself cannot be read while being programmed or erased, so the control program
that performs programming should be placed in external memory or transferred to RAM and
executed there.
Figure 17.9 shows the execution procedure when user program mode is entered during program
execution in RAM. It is also possible to start from user program mode in a reset-start.
498
)
MDS

Advertisement

Table of Contents
loading

Table of Contents