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

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
Except for MAT switching, the programming procedure is the same as that in user program mode.
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.
User MAT Erasing in User Boot Mode: For erasing the user MAT in user boot mode, additional
processing made by setting FMATS is 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 14.15 shows the procedure for erasing the 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 14.15.
JSR FTDAR setting + 32
Select on-chip program
to be downloaded and
destination by FTDAR
Figure 14.15 Procedure for Erasing User MAT in User Boot Mode
and bus master operation
Set the FPEFEQ and
specify download
Set SCO to 1 and
execute download
Set FKEY to H'A5
FUBRA parameters
Clear FKEY to 0
procedure program
Initialization
Disable interrupts
other than CPU
Start erasing
DPFR = 0 ?
FPFR = 0 ?
1
Yes
Yes
Initialization error processing
Download error processing
No
No
User-boot-MAT
selection state
Note:
*
No
The MAT must be switched by FMATS to perform
the erasing error processing in the user boot MAT.
JSR FTDAR setting + 16
than H'AA to select user MAT
Set FMATS to H'AA to
Set FMATS to value other
Set FEBS parameter
select user boot MAT
Set FKEY to H'A5
Clear FKEY to 0
procedure program
block erasing is
Programming
completed?
End erasing
Rev. 2.00, 03/04, page 417 of 534
Required
FPFR = 0 ?
1
Yes
Yes
Clear FKEY and erasing
No
error processing *
switchover
switchover
MAT
MAT

Related parts for h8s-2172