h8s-2172 Renesas Electronics Corporation., h8s-2172 Datasheet - Page 444

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Erasing Procedure in User Program Mode: The procedures for download, initialization, and
erasing are shown in figure 14.12.
The procedure program must be executed in an area other than the user MAT to be erased.
Especially the part where the SCO bit in FCCS is set to 1 for downloading must be executed in the
on-chip RAM.
The area that can be executed in the steps of the user procedure program (on-chip RAM, user
MAT, and external space) is shown in section 14.4.4, Procedure Program and Storable Area for
Programming Data.
For the downloaded on-chip program area, refer to the RAM map for programming/erasing in
figure 14.10.
A single divided block is erased by one erasing processing. For block divisions, refer to figure
14.4. To erase two or more blocks, update the erase block number and perform the erasing
processing for each block.
Rev. 2.00, 03/04, page 412 of 534
JSR FTDAR setting + 32
Select on-chip program
to be downloaded and
destination by FTDAR
Start erasing procedure
specify download
Set SCO to 1 and
execute download
Set FKEY to H'A5
Set the FPEFEQ
Clear FKEY to 0
Initialization
FPFR = 0 ?
DPFR
parameter
program
1
Yes
Yes
=
0?
Initialization error processing
Download error processing
No
No
1.
Figure 14.12 Erasing Procedure
No
JSR FTDAR setting + 16
Disable interrupts and
bus master operation
Set FEBS parameter
procedure program
Set FKEY to H'5A
Clear FKEY to 0
other than CPU
Required block
End erasing
FPFR = 1 ?
completed?
erasing is
Erasing
1
Yes
Yes
Clear FKEY and erasing
No
error processing
2.
3.
4.
5.
6.

Related parts for h8s-2172