Mitsubishi Electric M32R Series User Manual page 167

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

Advertisement

6
(8) Read Lock Bit Status command
The Read Lock Bit Status command allows you to check whether or not a memory block is
protected against program/erase. Write the command data H'7171 to any address of the internal
flash memory. Next, read the last even address of the block you want to check (see Table 6.5.3,
Table 6.5.4, and Table 6.5.5, "Target Blocks and Specified Addresses"), and the data you read
shows whether or not the target block is protected. If the FLBST0 (lock bit 0) bit and FLBST1 (lock
bit 1) bit of the data you read are 0s, it means that the target memory block is protected. If the
FLBST0 (lock bit 0) bit and FLBST1 (lock bit 1) bit are 1s, it means that the target memory block
is not protected.
Lock Bit Status Register (FLBST)
FLBST0
D0
1
2
D
Bit Name
0
No functions assigned
1
FLBST0
(Lock bit 0)
2 - 8
No functions assigned
9
FLBST1
(Lock bit 1)
10 - 15
No functions assigned
The Lock Bit Status Register is a read-only register, which contains said lock bits independently
for each block.
3
4
5
6
Function
0 : Protected
1 : Not protected
0 : Protected
1 : Not protected
(Same content as FLBST0 is output.)
6-33
6.5 Programming of the Internal Flash Memory
FLBST1
7
8
9
10
11
INTERNAL MEMORY
12
13
14
D15
<When reset : Indeterminate>
R
W
?
?
?
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents