6
6-26
Ver.0.10
INTERNAL MEMORY
6.5 Programming of the Internal Flash Memory
(2) Page Program command
Flash memory is programmed one page at a time, each page consisting of 256 bytes (lower
addresses H'00 to H'FF). To write data to the flash memory (i.e., to program the flash memory),
write the program command H'4141 to any address of the internal flash memory and then the
program data to the address to which you want to write.
With the Page Program command, you cannot write to the protected blocks.
Page Program is automatically performed by the internal control circuit, and the completion of
programming can be verified by checking the Flash Status Register 1 (FSTAT1) FSTAT bit.
(Refer to Section 6.4.2, "Flash Status Registers.") While the FSTAT bit = 1, the next
programming can not be performed.
(3) Lock Bit Program command
Flash memory can be protected against program/erase one block at a time. The Lock Bit
Program command is provided for protecting memory blocks.
Write the Lock Bit Program command data H'7777 to any address of the internal flash memory.
Next, write the Verify command data H'D0D0 to the last even address of the block you want to
protect, and this memory block is protected against program/erase. To remove protection,
disable lock bit-effectuated protection using the Flash Control Register 2 (FCNT2) FPROT bit
(see Section 6.4.3, "Flash Control Registers") and erase the block whose protection you want to
remove. (The content of this memory block is also erased.)
The table below lists the target blocks and their specified addresses when writing the Verify
command data.
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 ...