Renesas H8S/2319 series Hardware Manual page 742

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

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 17.29.3, Procedure Program and Storable Area for
Programming Data.
User MAT Erasing in User Boot Mode: For erasing the user MAT in user boot mode, additional
processings 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 17-74 shows the procedure for erasing the user MAT in user boot mode.
Start erasing
procedure program
Select on-chip program
to be downloaded
Set FKEY to H'A5 and
set download destination
by FTDAR
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
Disable interrupts
and bus master operation
other than CPU
1
Figure 17-74 Procedure for Erasing User MAT in User Boot Mode
The difference between the erasing procedures in user program mode and user boot mode depends
on whether the MAT is switched or not as shown in figure 17-74.
MAT switching is enabled by writing a specific value to FMATS. However note that while the
MATs are being switched, the LSI is in an unstable state, e.g. access to a MAT is not allowed until
Rev. 5.00, 12/03, page 712 of 1088
No
Download error processing
No
Initialization error processing
User-boot-MAT
selection state
1
Set FMATS to value other
than H'AA to select user MAT
Set FKEY to H'5A
Set FEBS parameter
Programming
JSR FTDAR setting+16
FPFR=0 ?
Yes
Clear FKEY and erasing
Required
No
block erasing is
completed?
Yes
Clear FKEY to 0
Set FMATS to H'AA to
select user boot MAT
End erasing
procedure program
Note: * The MAT must be switched by FMATS to perform the
erasing error processing in the user boot MAT.
MAT
switchover
No
error processing *
MAT
switchover

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents