Datasheet

Section 20 Flash Memory (0.18-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 765 of 980
REJ09B0050-0600
Set FKEY to H'A5
DPFR = 0 ?
Yes
No
Download error processing
Set the FPEFEQ and
FUBRA parameters
Initialization
JSR
FTDAR setting
+ 32
Yes
End programming
procedure program
FPFR = 0 ?
No
Initialization error processing
Disable interrupts
and bus master operation
other than CPU
Clear FKEY to 0
Programming finished
processing
JSR FTDAR setting + 16
Set parameter to ER0 and
ER1 (FMPAR and FMPDR)
Programming
JSR
FTDAR setting
+ 16
Yes
FPFR = 0 ?
No
Yes
Required data
programming is
completed?
No
Set FKEY to H'A5
Clear FKEY to 0
1
1
Download
Initialization
Programming
MAT
switchover
MAT
switchover
Set FMATS to value other than
H'AA to select user MAT
Set SCO to 1 and
execute download
Clear FKEY and programming
error processing*
Yes
FPFR = 0 ?
No
Clear FKEY and programming
error processing
Set FMATS to H'AA to
select user boot MAT
User-boot-MAT selection state
User-MAT selection state
User-boot-MAT
selection state
Note: * The MAT must be switched by FMATS
to perform the programming error
processing in the user boot MAT.
Start programming
procedure program
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Figure 20.13 Procedure for Programming User MAT in User Boot Mode
The difference between the programming procedures in user program mode and user boot mode is
whether the MAT is switched or not as shown in figure 20.13.
In user boot mode, the user boot MAT can be seen in the flash memory space with the user MAT
hidden in the background. The user MAT and user boot MAT are switched only while the user
MAT is being programmed. Because the user boot MAT is hidden while the user MAT is being