Mitsubishi Electric M32R Series User Manual page 168

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
Follow the procedure described below to write to the lock bits.
a) Setting the lock bit to 0 (protect the block)
Issue the Lock Bit Program command (H'7777) to the memory block you want to protect.
b) Setting the lock bit to 1 (unprotect the block)
After setting the Flash Control Register 2 FPROT bit to invalidate lock bit-effectuated
protection, use the Block Erase command (H'2020) or Erase All Unprotect Block command
(H'A7A7) to erase the memory block you want to unprotect. This is the only way to
unprotect a memory block. You cannot set the lock bit alone to 1.
c) Status when the lock bit is reset
The lock bit is unaffected by a reset or power outage because it is a nonvolatile bit.
(9) Execution flow of each command
The diagrams below show an execution flow of each command.
Figure 6.5.10 Read Array
6.5 Programming of the Internal Flash Memory
START
Write Read Array command (H'FFFF) to
any address of internal flash memory
Read the internal flash memory
address you want to read
END
6-34
INTERNAL MEMORY
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents