
19-8
MSM66577 Family User's Manual
Chapter 19 Flash Memory
(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 listed 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 P9_2, P9_3,
EA, VDD and GND pins
of the flash ROM version.
2) Set the microcontroller to the reset or STOP mode.
The flash microcontroller will generate a protocol error if other than reset or STOP mode
is set.
3) Perform the programming or read operation with the flash microcontroller programmer.
The serial mode is set automatically.
4) Verify that operation of the flash microcontroller programmer has been completed
correctly.
The serial mode is released automatically.
5) Release reset or the STOP mode.
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.
(5)
Notes on use of serial mode
If programming is performed during the STOP mode, while programming is in progress, do
not generate an interrupt or a reset via the
RES pin input. If generated, the CPU may run
out of control after the serial mode is released. During the STOP mode, execution of BRK
instructions, overflow of the watchdog timer, and opcode traps will not generate reset. If
an interrupt or reset is generated, reprogram the entire flash memory area.
In addition, when programming in the serial mode is performed during the STOP mode, do
not allow external interrupts 6 and 7 to be generated (set EXINT 6 and 7 valid edges of
EXI1CON to interrupt input invalid).