Figure 17.11 Programming Procedure In User Program Mode - Renesas H8SX/1500 Series Hardware Manual

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

Advertisement

(2)
Programming Procedure in User Program Mode
The procedures for download of the on-chip program, initialization, and programming are shown
in figure 17.11.
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 after initializing
VBR and execute download
Clear FKEY to 0
DPFR = 0?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0?
Yes
1

Figure 17.11 Programming Procedure in User Program Mode

The procedure program must be executed in an area other than the flash memory to be
programmed. Setting the SCO bit in FCCS to 1 to request download must be executed in the on-
chip RAM. The area that can be executed in the steps of the procedure program (on-chip RAM
and user MAT) is shown in section 17.8.4, On-Chip Program and Storable Area for Program Data.
The following description assumes that the area to be programmed on the user MAT is erased and
that program data is prepared in the consecutive area.
1.
2.
3.
4.
5.
No
Download error processing
6.
7.
8.
No
Initialization error processing
Section 17 Flash Memory (0.18-(m F-ZTAT Version)
1
Disable interrupts and bus
master operation
other than CPU
Set FKEY to H'5A
Set parameters to ER1
and ER0
(FMPAR and FMPDR)
Programming
JSR FTDAR setting + 16
FPFR = 0?
Required data
No
programming is
completed?
Clear FKEY to 0
End programming
procedure program
Rev. 3.00 Mar. 14, 2006 Page 605 of 804
9.
10.
11.
12.
13.
No
Yes
Clear FKEY and
programming
error processing
14.
Yes
15.
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents