p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 542

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 19 Flash Memory (0.18-µm F-ZTAT Version)
(3)
For erasing the user MAT in user boot mode, additional processing made by setting FMATS are
required: switching from user-boot-MAT selection state to user-MAT selection state, and
switching back to user-boot-MAT selection state after erasing completes.
Figure 19.15 shows the procedure for erasing the user MAT in user boot mode.
Rev. 1.00 Sep. 21, 2006 Page 504 of 658
REJ09B0310-0100
User MAT Erasing in User Boot Mode
Figure 19.15 Procedure for Erasing User MAT in User Boot Mode
JSR FTDAR setting + 32
Select on-chip program
to be downloaded and
destination by FTDAR
and bus master operation
specify download
Set SCO to 1 and
execute download
Set FKEY to H'A5
Clear FKEY to 0
procedure program
Set the FPEFEQ
Initialization
Disable interrupts
other than CPU
Start erasing
DPFR = 0?
FPFR = 0?
parameter
1
Yes
Yes
Initialization error processing
Download error processing
No
No
User-boot-MAT
selection state
Note: * The MAT must be switched by FMATS
No
JSR FTDAR setting + 16
than H'AA to select user MAT
Set FMATS to H'AA to
Set FEBS parameter
to perform the erasing error processing
in the user boot MAT.
Set FMATS to value other
select user boot MAT
Set FKEY to H'A5
Clear FKEY to 0
procedure program
Programming
block erasing is
End erasing
completed?
FPFR = 0?
Required
1
Yes
Yes
Clear FKEY and erasing
No
error processing*
switchover
switchover
MAT
MAT

Related parts for p2125vps20