English
Language : 

HD64F3039F18 Datasheet, PDF (485/710 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family / H8/300H Series
Section 15 ROM
1
MD2 − MD0 = 101, 111
2
Reset start
3
Transfer on-board programming
program to RAM.
4
Branch to program in RAM.
5
FWE = high
(user program mode)
Execute on-board programming
6
program in RAM
(flash memory reprogramming).
7 Input low level to FWE after SWE
bit clear (user program mode exit)
<Procedure>
The user writes a program that executes steps 3 to 8 in advance
as shown below .
1 Sets the mode pin to an on-chip ROM enable mode
(mode 5 or 7).
2 Starts the CPU via reset.
(The CPU can also be started from the user program
mode by setting the FWE pin to High level during reset;
that is, during the period the RES pin is a low level.)
3 Transfers the on-board programming program to RAM.
4 Branches to the program in RAM.
5 Sets the FWE pin to a high level.*
(Switches to user program mode.)
6 After confirming that the FWE pin is a high level, executes
the on-board programming program in RAM. This
reprograms the user application program in flash memory.
7 At the end of reprograming, clears the SWE bit, and exits
the user program mode by switching the FWE pin from
a high level to a low level.*
8 Branches to, and executes, the user application program
reprogrammed in flash memory.
Note: * For notes on FWE pin High/Low, see section 15.9, Notes
on Flash Memory Programming/Erasing.
8
Execute user application
program in flash memory.
Figure 15.9 User Program Mode Execution Procedure (Example)
Note:
Normally do not apply a high level to the FWE pin. To prevent erroneous programming or
erasing in the event of program runaway, etc., apply a high level to the FWE pin only
when programming/erasing flash memory (including flash memory emulation by RAM).
If program runaway, etc. causes overprogramming or overerasing of flash memory, the
memory cells will not operate normally.
Also, while a high level is applied to the FWE pin, the watchdog timer should be activated
to prevent overprogramming or overerasing due to program runaway, etc.
In mode 6, do not reprogram flash memory. When setting mode 6, always set the FWE pin
to a low level.
Rev.3.00 Mar. 26, 2007 Page 461 of 682
REJ09B0353-0300