![](http://datasheet.mmic.net.cn/90000/ML66Q525-NTB_datasheet_3507944/ML66Q525-NTB_469.png)
ML66525 Family User’s Manual
Chapter 20
Flash Memory
20 - 6
Flash ROM version
(FLACLK) P7_6
(FLADAT) P7_7
RESn
VDD
GND
To flash microcontroller programmer
To user application
system
Approx. 100 k
FLAMOD
Figure 20-4
Serial Mode Connection Circuit Example 2
(3)
Serial mode programming method
Programming in the serial mode is performed with the use of a flash memory writer (PW66K)
or a flash microcontroller programmer (AF200) .
The procedure for programming with the flash microcontroller programmer is shown below.
Refer to the PW66K and AF200 User’s Manuals for details of the flash microcontroller
programmer.
1) Connect the flash microcontroller programmer to the P7_6, P7_7, FLAMOD, VDD and
GND pins of the flash ROM version.
2) Set the microcontroller to the reset. (Apply a “L” level to the RESn pin.)
The flash microcontroller will generate a protocol error if other than reset is set.
3) Make a reset on the flash microcontroller programmer and apply a “L” level to the
FLAMOD pin.
4) Perform the programming or read operation with the flash microcontroller programmer.
The serial mode has been set by the settings of 2) and 3).
5) Verify that operation of the flash microcontroller programmer has been completed
correctly.
6) Release reset on the flash microcontroller programmer (FLAMOD = “pulled-up” level) and
on the microcontroller (RESn = “pulled-up” level).
The serial mode is released automatically.
7) Release reset on the microcontroller (RESn = “pulled-up” level).
The microcontroller runs the program that has been written.
(4)
Setting of security function
The security function can be set or reset in the serial mode. For the setting method, refer to the
User’s Manual for the flash microcontroller programmer.
When the security function is set, the flash memory outputs 0s, for external reading, throughout
its entire area and programming are disabled, in all programming modes.
[Note]
Do not repeat security function resetting one after another:
Each time the security
function is reset, all the sectors are erased and the endurance of the flash ROM decreases.
Moreover, the reliability becomes lower when data is written next time.