Figure 21.14 Procedure For Programming User Mat In User Boot Mode - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Section 21 Flash Memory (0.18-µm F-ZTAT Version)
(2)
User MAT Programming in User Boot Mode
For programming 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 programming completes.
Figure 21.14 shows the procedure for programming the user MAT in user boot mode.
Start programming
procedure program
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Set FKEY to H'A5
Set SCO to 1 and
execute download
Clear FKEY to 0
DPFR = 0?
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0?
Disable interrupts
and bus master operation
other than CPU

Figure 21.14 Procedure for Programming User MAT in User Boot Mode

Rev. 3.00 Jul. 14, 2005 Page 780 of 986
REJ09B0098-0300
No
Yes
Download error processing
No
Yes
Initialization error processing
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
No
programming is
Clear FKEY to 0
Set FMATS to H'AA to
select user boot MAT
End programming
procedure program
User-boot-MAT
selection state
Note: *
The MAT must be switched by FMATS
to perform the programming error processing
in the user boot MAT.
1
MAT
switchover
FPFR = 0?
No
Clear FKEY and programming
Yes
error processing*
Required data
completed?
Yes
MAT
switchover

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents