6
6-25
Ver.0.10
INTERNAL MEMORY
6.5 Programming of the Internal Flash Memory
6.5.3 Programming Procedure to the Internal Flash Memory
To write to the internal flash memory, set the device's operation mode to enter flash E/W enable
mode first and then use the flash write program that has already been transferred from the flash
memory into the internal RAM.
In flash E/W enable mode, no data can be read out from the internal flash memory as in normal
mode, so you cannot execute a program that exists in the internal flash memory. Therefore, the
flash write program must be prepared in the internal RAM before entering flash E/W enable mode.
(Once you've entered flash E/W enable mode, you cannot use any command except flash
commands to access the flash memory.)
To access the internal flash memory in flash memory E/W enable mode, issue commands for the
internal flash memory address to be operated on. The table below lists the commands that can be
issued in flash memory E/W enable mode.
Note : During flash E/W enable mode, the flash memory cannot be accessed for read or write
wordwise.
Table 6.5.2 Commands in Flash Memory E/W Enable Mode
Command Name
Issued Command Data
Read Array command
H'FFFF
Page Program command
H'4141
Lock Bit Program command
H'7777
Block Erase command
H'2020
Erase All Unlock Block 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: This command is used in conjunction with Lock Bit Program, Block Erase, and Erase All Unlock Block operations.
(1) Read Array command
Read mode is entered by writing command data H'FFFF to any address of the internal flash
memory. Then read the flash memory address you want to read out, and the content of that
address will be read out.
Before exiting flash E/W enable mode, always be sure to execute the Read Array command.
Summary of Contents for M32170F3VFP
Page 42: ...1 1 24 Ver 0 10 OVERVIEW 1 4 Pin Layout This is a blank page ...
Page 56: ...2 2 14 Ver 0 10 This is a blank page ...
Page 88: ...3 3 32 Ver 0 10 ADDRESS SPACE 3 7 Notes on Address Space This is a blank page ...
Page 270: ...9 9 40 Ver 0 10 DMAC 9 4 Precautions about the DMAC This is a blank page ...
Page 614: ...12 12 64 Ver 0 10 This is a blank page SERIAL I O 12 9 Precautions on Using UART Mode ...
Page 756: ...17 17 10 Ver 0 10 RAM BACKUP MODE 17 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 762: ...18 18 6 Ver 0 10 OSCILLATION CIRCUIT 18 2 Clock Generator Circuit This is a blank page ...
Page 831: ...CHAPTER 22 CHAPTER 22 TYPICAL CHARACTERISTICS 22 1 A D Conversion Characteristics ...
Page 833: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 841: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...