Section 17 Flash Memory (0.18-(m F-ZTAT Version)
Rev. 3.00 Mar. 14, 2006 Page 605 of 804
REJ09B0104-0300
(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.
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
DPFR
=
0?
Yes
No
Download error processing
Set the FPEFEQ
parameter
Yes
End programming
procedure program
FPFR
=
0?
No
Disable interrupts and bus
master operation
other than CPU
Clear FKEY to 0
Programming
JSR FTDAR setting
+
16
Yes
FPFR
=
0?
No
Clear FKEY and
programming
error processing
Yes
Required data
programming is
completed?
No
Set FKEY to H'5A
Clear FKEY to 0
1.
2.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
1
3.
Download
Initialization
Programming
Initialization
JSR FTDAR setting
+
32
Initialization error processing
Set parameters to ER1
and ER0
(FMPAR and FMPDR)
1
Start programming
procedure program
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.
electronic components distributor
Содержание H8SX series
Страница 2: ...Rev 3 00 Mar 14 2006 Page ii of xxxviii Downloaded from Elcodis com electronic components distributor...
Страница 22: ...Rev 3 00 Mar 14 2006 Page xxii of xxxviii Downloaded from Elcodis com electronic components distributor...
Страница 32: ...Rev 3 00 Mar 14 2006 Page xxxii of xxxviii Downloaded from Elcodis com electronic components distributor...
Страница 38: ...Rev 3 00 Mar 14 2006 Page xxxviii of xxxviii Downloaded from Elcodis com electronic components distributor...
Страница 845: ...Downloaded from Elcodis com electronic components distributor...
Страница 846: ...H8SX 1520 Group Hardware Manual Downloaded from Elcodis com electronic components distributor...