Figure 17.12 Erasing Procedure In User Program Mode - Renesas H8SX/1520 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

Item
(3) Erasing Procedure in User
Program Mode
Figure 17.12 Erasing Procedure in
User Program Mode
(4) Procedure of Erasing,
Programming, and RAM
Emulation in User Program Mode
Downloaded from
Elcodis.com
electronic components distributor
Page Revision (See Manual for Details)
610
Amended
No
611
Amended
3. Erasure is executed. As in programming, the entry
point of the erasing program is at the address which
is 16 bytes after #DLTOP (start address of the
download destination specified by FTDAR). Call the
subroutine to execute erasure by using the following
steps.
 The general registers other than ER0 and ER1
are held in the erasing program.
613
Amended
Be sure to initialize both the programming program
and erasing program. When the FPEFEQ
parameter is initialized, also initialize both the
erasing program and programming program.
Initialization must be executed for both entry
addresses: 32 bytes after #DLTOP (start address of
download destination for erasing program), and 32
bytes after #DLTOP (start address of download
destination for programming program).
1
Disable interrupts and
bus master operation
other than CPU
Set FKEY to H'5A
Set FEBS parameter
2.
Erasing
3.
JSR FTDAR setting + 16
4.
FPFR = 0?
No
Yes
Clear FKEY and erasing
error processing
Required block
erasing is
5.
completed?
Yes
Clear FKEY to 0
6.
End erasing
procedure program
Rev. 3.00 Mar. 14, 2006 Page 793 of 804
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents