Renesas H8SX/1520 Series Hardware Manual page 648

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 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
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?
Set the FPEFEQ
parameter
JSR FTDAR setting + 32
FPFR = 0 ?
Rev. 3.00 Mar. 14, 2006 Page 610 of 804
REJ09B0104-0300
Downloaded from
Elcodis.com
electronic components distributor
program
1.
No
Yes
Download error processing
Initialization
No
Yes
Initialization error processing
1
Figure 17.12 Erasing Procedure in User Program Mode
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
Clear FKEY and erasing
Required block
No
erasing is
completed?
Yes
Clear FKEY to 0
End erasing
procedure program
2.
3.
4.
No
error processing
5.
6.

Advertisement

Table of Contents
loading

Table of Contents