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

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

Advertisement

Section 17 Flash Memory (0.18-(m F-ZTAT Version)
(3)
Erasing Procedure in User Program Mode
The procedures for download of the on-chip program, initialization, and erasing are shown in
figure 17.12.
Start erasing procedure
program
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Set FKEY to H'A5
Set SCO to 1 after initializing
VBR and execute download
Clear FKEY to 0
DPFR = 0?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
Yes
1

Figure 17.12 Erasing Procedure in User Program Mode

Rev. 3.00 Mar. 14, 2006 Page 610 of 804
REJ09B0104-0300
1.
No
Download error processing
No
Initialization error processing
1
Disable interrupts and
bus master operation
other than CPU
Set FKEY to H'5A
Set FEBS parameter
Erasing
JSR FTDAR setting + 16
FPFR = 0?
Yes
Required block
No
erasing is
completed?
Yes
Clear FKEY to 0
End erasing
procedure program
2.
3.
4.
No
Clear FKEY and erasing
error processing
5.
6.

Advertisement

Table of Contents
loading

Table of Contents