EasyManuals Logo
Home>Renesas>Computer Hardware>M32R/ECU Series

Renesas M32R/ECU Series User Manual

Renesas M32R/ECU Series
839 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #151 background imageLoading...
Page #151 background image
6
6-22
INTERNAL MEMORY
32180 Group Users 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 (H7777) to any address of the internal flash memory. Next, write the
Verify command (HD0D0) 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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M32R/ECU Series and is the answer not in the manual?

Renesas M32R/ECU Series Specifications

General IconGeneral
BrandRenesas
ModelM32R/ECU Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals