Renesas H8S/2319 series Hardware Manual page 741

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

Start programming
procedure program
Select on-chip program
to be downloaded and
set 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
and parameter
Initialization
JSR FTDAR setting+32
FPFR=0 ?
Disable interrupts
and bus master operation
other than CPU
Figure 17-73 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 17-73.
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
programmed, the procedure program must be located in an area other than flash memory. After
programming finishes, switch the MATs again to return to the first state.
MAT switchover 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
MAT switching is completely finished, and if an interrupt occurs, from which MAT the interrupt
vector is read from is undetermined. Perform MAT switching in accordance with the description
in section 17.27, Switching between User MAT and User Boot MAT.
Except for MAT switching, the programming procedure is the same as that in user program mode.
No
Yes
Download error processing
No
Yes
Initialization error processing
User-boot-MAT
1
selection state
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 ?
Clear FKEY and programming
Yes
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
Note: * The MAT must be switched by FMATS
to perform the programming error
processing in the user boot MAT.
Rev. 5.00, 12/03, page 711 of 1088
MAT
switchover
No
error processing*
MAT
switchover

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents