
6
6-25
Rev.1.0
6.5.3 Procedure for Programming the Internal Flash Memory
To program the internal flash memory, use the flash write program which has been transferred from
the flash memory into the internal RAM after entering flash E/W enable mode.
In flash E/W enable mode, unlike in normal mode, data cannot be read from the internal flash
memory and, hence, no programs in the flash memory can be executed. Therefore, the flash write
program must be prepared in the internal RAM before entering flash E/W enable mode. (Once flash
E/W enable mode is entered into, accessing the flash memory is inhibited unless accessed with
flash commands.)
To access the internal flash memory in flash E/W enable mode, issue a command for the internal
flash memory address to be accessed. The commands that can be issued in flash E/W enable
mode are listed below.
Note: During flash E/W enable mode, the flash memory cannot be accessed for read/write
wordwise.
Table 6.5.2 Commands in Flash E/W Enable Mode
Command Name
Command Data Issued
Read Array command
H'FFFF
Page Program command
H'4141
Lock Bit Program command
H'7777
Block Erase command
H'2020
Erase All Unlock Blocks command
H'A7A7
Read Status Register command
H'7070
Clear Status Register command
H'5050
Read Lock Bit Status command
H'7171
Verify command (Note)
H'D0D0
Note: Use this command you performed Lock Bit Program, Block Erase, or Erase All Unlock Blocks
operation.
(1) Read Array command
The internal flash memory is placed in read mode by writing command data H'FFFF to any flash
memory address. Read the desired address, and the memory content at that address is read out.
To exit flash E/W enable mode, be sure to run the Read Array command before exiting flash E/W
enable mode.
INTERNAL MEMORY
6.5 Programming the Internal Flash Memory