6
6-20
INTERNAL MEMORY
32180 Group User’s Manual (Rev.1.0)
6.5.4 Procedure for Programming/Erasing the Internal Flash Memory
To program or erase the internal flash memory, set up chip mode to enter flash E/W enable mode and execute the
flash write/erase program in the internal RAM into which it has been transferred from the internal flash memory.
In flash E/W enable mode, because the internal flash memory cannot be accessed for read as in normal mode,
no programs present in it can be executed. Therefore, the flash write/erase program must be made available in
the internal RAM before entering flash E/W enable mode. (Once flash E/W enable mode is entered into, only
flash commands and no other commands can be used to access the internal flash memory.)
To access the internal flash memory in flash 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 E/W enable mode.
Note: • During flash E/W enable mode, the internal flash memory cannot be accessed for read or write
wordwise.
Table 6.5.2 Commands in Flash 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 Unlocked 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 1)
H'D0D0
Note 1: • This command is used in conjunction with Lock Bit Program, Block Erase and Erase All Unlocked Blocks
operations.
• This command must be issued immediately after the Lock Bit Program, Block Erase or Erase All Unlocked Blocks
command.
• If the Lock Bit Program, Block Erase or Erase All Unlocked Blocks command is followed by the Read Array com-
mand (H’FFFF), the Lock Bit Program, Block Erase or Erase All Unlocked Blocks command is canceled.
• If the Lock Bit Program, Block Erase or Erase All Unlocked Blocks command is followed by other than the Verify
(H'D0D0) or Read Array (H'FFFF) command, the Lock Bit Program, Block Erase or Erase All Unlocked Blocks
command is not executed normally and terminated in error.
(1) Read Array command
Writing the command (H’FFFF) to any address of the internal flash memory places it in read mode. Then read
the desired flash memory address, 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.
6.5 Programming the Internal Flash Memory
START
Write the Read Array command (H'FFFF)
to any address of the internal flash memory
Read the desired flash memory address
END
Figure 6.5.7 Read Array Command
Summary of Contents for M32R/ECU Series
Page 17: ...12 This page is blank for reasons of layout...
Page 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Page 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Page 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Page 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Page 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...