CHAPTER 26 FLASH MEMORY
User’s Manual U16899EJ2V0UD
447
26.8 Flash Memory Programming by Self-Writing
The 78K0/KE1+ supports a self-programming function that can be used to rewrite the flash memory via a user
program, so that the program can be upgraded in the field.
The programming mode is selected by bits 0 and 1 (FLSPM0 and FLSPM1) of the flash programming mode control
register (FLPMC).
The procedure of self-programming is illustrated below.
Remark For details of the self programming function, refer to the 78K0/Kx1+ Flash Memory Self Programming
User’s Manual (under preparation).
Figure 26-18. Self-Programming Procedure
Mask interrupts again
FLSPM1, FLSPM0 = 0, 1
Secure entry RAM area
Mask all interrupts
FLMD0
pin = High level
CALL #8100H
Set parameters
to entry RAM
Start self-programming
Read parameters on RAM
and access flash memory
according to parameter contents
FLMD0
pin = Low level
FLSPM1, FLSPM0 = 0, 0
End of self-programming
Entry program
(user program)
Firmware
Entry program
(user program)
Содержание MuPD78F0132H
Страница 2: ...User s Manual U16899EJ2V0UD 2 MEMO ...