6
6-22
INTERNAL MEMORY
32180 Group User’s Manual (Rev.1.0)
6.5 Programming the Internal Flash Memory
(3) Lock Bit Program command
The internal flash memory can be protected against programming/erase operation one block at a time. The
Lock Bit Program command is provided for protecting the flash memory blocks.
Write the Lock Bit Program command (H’7777) to any address of the internal flash memory. Next, write the
Verify command (H’D0D0) to the last even address of the flash memory block to be protected, and this
memory block is thereby protected against programming/erase operation. To remove protection, use the
Flash Control Register 2 (FCNT2) FPROT bit to invalidate protection by a block bit (see Section 6.4.3, “Flash
Control Registers”) and erase the flash memory block whose protection is to be removed. (The content of
that memory block is also erased.)
Executing a programming/erase operation on flash memory blocks protected by a lock bit results in an error.
If erased, the FSTAT2 register ERASE bit is set to "1" (erase error occurred); if programmed, the FSTAT2
register WRERR1 bit is set to "1" (programming error occurred).
The table below lists the target flash memory blocks and their addresses to be specified when writing the
Verify command.
Table 6.5.3 M32180F8 Target Blocks and Specified Addresses
Target Block
Specified Address
0
H'0000 3FFE
1
H'0000 5FFE
2
H'0000 7FFE
3
H'0000 FFFE
4
H'0001 FFFE
5
H'0002 FFFE
6
H'0003 FFFE
7
H'0004 FFFE
8
H'0005 FFFE
9
H'0006 FFFE
10
H'0007 FFFE
11
H'0008 FFFE
12
H'0009 FFFE
13
H'000A FFFE
14
H'000B FFFE
15
H'000C FFFE
16
H'000D FFFE
17
H'000E FFFE
18
H'000F FFFE
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...