English
Language : 

32185 Datasheet, PDF (183/1032 Pages) Renesas Technology Corp – MCU
6
INTERNAL MEMORY
6.6 Programming Internal Flash Memory
(6) Read Lock Bit Status command
The Read Lock Bit Status command is provided for checking whether a flash memory block is protected
against programming/erase operation. The method for reading lock bit can be chosen from the following
depends on the setting for Flash Control Register 2 (FCNT2) FLOCKS (Lock bit read mode select) bit.
1) Memory area read mode (FLOCKS bit = 0)
Write the command data (H’7171) to any address of the internal flash memory. Next, read the last even
address of the flash memory block to be checked (see Table 6.6.3, “Target Blocks and Specified Ad-
dresses”), and the read data shows whether the target block is protected.
If the FLBST (lock bit) in the read data is "0," it means that the target memory block is protected. If the
FLBST (lock bit) is "1," it means that the target memory block is not protected.
Lock Bit Status Register (FLBST)
b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15
FLBST
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
b
0–8
9
10–15
Bit Name
No function assigned.
FLBST
Lock bit
No function assigned.
Function
0: Protected
1: Not protected
<Upon exiting reset: Undefined>
RW
?0
R–
?0
The Lock Bit Status Register is a read-only register, which is included for each memory block independently of
one another. To read this register, Flash Control Register 2 (FCNT2) FLOCKS bit must be set to "0."
START
Write the Read Lock Bit Status command
(H'7171) to any address of the
internal flash memory
Read the last even address of the
flash memory block to be checked
END
Figure 6.6.13 Read Lock Bit Status (Memory Area Read Mode)
2) Register read mode (FLOCKS bit = 1)
Write the command data (H’7171) to any address of the target block. Next, write the verify command
data (H'D0D0), and the Flash Control Register 4 (FCNT4) FLOCKST (Lock Bit Status) bit shows
whether the target block is protected.
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
6-41