Renesas H8SX/1520 Series Hardware Manual page 652

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

Section 17 Flash Memory (0.18-(m F-ZTAT Version)
Set SCO to 1 after initializing
VBR and execute download
JSR FTDAR setting + 32
Figure 17.14 Procedure for Programming User MAT in User Boot Mode
In user boot mode, though the user boot MAT can be seen in the flash memory space, the user
MAT is hidden in the background. Therefore, the user MAT and user boot MAT are switched
while the user MAT is being programmed. Because the user boot MAT is hidden while the user
MAT is being programmed, the procedure program must be executed in an area other than flash
memory. After programming completes, switch the memory MATs again to return to the first
state.
Rev. 3.00 Mar. 14, 2006 Page 614 of 804
REJ09B0104-0300
Downloaded from
Elcodis.com
electronic components distributor
Start programming
procedure program
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Set FKEY to H'A5
Clear FKEY to 0
DPFR = 0 ?
No
Yes
Download error processing
Set the FPEFEQ
parameter
Initialization
FPFR = 0 ?
No
Yes
Initialization error processing
Disable interrupts
and bus master operation
other than CPU
1
User-boot-MAT
selection state
Note:
1
Set FMATS to value
other than H'AA
to select user MAT
Set FKEY to H'5A
Set parameter to ER0 and
ER1 (FMPAR and FMPDR)
Programming
JSR FTDAR setting + 16
FPFR = 0 ?
No
Clear FKEY and programming
Yes
error processing
Required data
No
programming is
completed?
Yes
Clear FKEY to 0
Set FMATS to H'AA to
select user boot MAT
End programming
procedure program
The MAT must be switched by FMATS
to perform the programming error
processing in the user boot MAT.
MAT
switchover
MAT
switchover

Advertisement

Table of Contents
loading

Table of Contents