Figure 20.11 Programming Procedure - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

(2) Programming Procedure in User Program Mode
The procedures for download, initialization, and programming are shown in figure 20.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 and
execute download
Clear FKEY to 0
DPFR = 0?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0?
Yes
1
The procedure program must be executed in an area other than the flash memory to be
programmed. Especially the part where the SCO bit in FCCS is set to 1 for downloading must be
executed in the on-chip RAM.
The area that can be executed in each step of the user procedure program (on-chip RAM, user
MAT, and external space) is shown in section 20.4.4, Storable Area for Procedure Program and
Program Data.
The following description assumes the area to be programmed in the user MAT is erased and
program data is prepared in the consecutive area. When erasing is not executed, erasing should be
executed before programming.
1.
2.
3.
4.
5.
No
Download error processing
6.
7.
8.
No
Initialization error processing

Figure 20.11 Programming Procedure

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?
Yes
Required data
No
programming is
completed?
Yes
Clear FKEY to 0
End programming
procedure program
Rev. 1.00, 09/03, page 557 of 704
9.
10.
11.
12.
13.
No
Clear FKEY and
programming
error processing
14.
15.

Advertisement

Table of Contents
loading

Table of Contents