Renesas H8S/2100 Series Hardware Manual page 780

6-bit single-chip microcomputer
Hide thumbs Also See for H8S/2100 Series:
Table of Contents

Advertisement

Section 24 Flash Memory
(3)
Erasing Procedure in User Program Mode
The procedures for download of the on-chip program, initialization, and erasing are shown in
figure 24.13.
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 and execute
download
Clear FKEY to 0
DPFR = 0?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
Yes
1
Figure 24.13 Erasing Procedure in User Program Mode
The procedure program must be executed in an area other than the user MAT to be erased. Setting
the SCO bit in FCCS to 1 to request download must be executed in the on-chip RAM. The area
that can be executed in the steps of the procedure program (on-chip RAM and user MAT) is
shown in section 24.8.4, Storable Areas for On-Chip Program and Program Data. For the
downloaded on-chip program area, see figure 24.11.
Rev. 1.00 May 09, 2008 Page 754 of 954
REJ09B0462-0100
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

This manual is also suitable for:

H8s/2112r

Table of Contents