Download Print this page

Renesas 7542 Manual page 75

Single-chip 8-bit cmos microcomputer
Hide thumbs Also See for 7542:

Advertisement

7542 Group
Figure 96 shows the flash memory control register 1.
Bit 0 of the flash memory control register 1 is the Erase suspend
enable bit. By setting this bit to "1", the erase suspend mode to
suspend erase processing temporarily when block erase com-
mand is executed can be used. In order to set this bit to "1",
writing "0" and "1" in succession to bit 0. In order to set this bit to
"0", write "0" only to bit 0.
Bit 1 of the flash memory control register 1 is the erase suspend
request bit. By setting this bit to "1" when erase suspend enable
bit is "1", the erase processing is suspended.
Bit 6 of the flash memory control register 1 is the erase suspend
flag. This bit is cleared to "0" at the flash erasing.
Figure 97 shows the flash memory control register 2.
Bit 0 of the flash memory control register 1 is the all user block E/
W enable bit. By setting this bit to "0", Erase/Write to all user block
(blocks 0, 1, 2) is disabled. As a result, error writing in program to
write only to data block can be prevented.
Table 10 Erase/Write disable setting
CPU rewrite
All user block
mode select bit
E/W enable bit
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Rev.3.02
Oct 31, 2006
REJ03B0006-0302
8KB user block
E/W enable bit
0
E/W disabled (RESET)
1
0
1
0
1
0
1
Page 75 of 134
b7
Notes 1: For this bit to be set to "1", the user needs to write a "0" and then a
"1" to it in succession. For this bit to be set to "0", write "0" only to
this bit.
2: Effective only when the suspend enable bit = "1".
Fig. 96 Structure of flash memory control register 1
b7
Notes 1: For this bit to be set to "1", the user needs to write a "0" and then a
"1" to it in succession. For this bit to be set to "0", write "0" only to
this bit.
2: Effective only when the CPU rewrite mode select bit = "1".
Fig. 97 Structure of flash memory control register 2
Block 0: 8KB
Block 2: 16KB
Block 1: 8KB
E/W disabled (RESET)
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W disabled
E/W enabled
E/W enabled
E/W enabled
b0
Flash memory control register 1
(FMCR1: address : 0FE1
: initial value: 40
16
Erase Suspend enble bit (Notes 1)
0 : Suspend invalid
1 : Suspend valid
request bit
Erase Suspend
(Notes 2)
0 : Erase restart
1 : Suspend request
Not used (do not write "1" to this bit.)
Erase Suspend flag
Erase
0 :
active
Erase
1 :
inactive (Erase Suspend mode)
Not used (do not write "1" to this bit.)
b0
Flash memory control register 2
(FMCR2: address : 0FE2
: initial value: 01
16
Reserved bit (returns "1" when read)
Reserved bits (do not write "1" to this bit.)
bit
All user block E/W enable
0 : E/W disabled
1 : E/W enabled
Not used (do not write "1" to this bit.)
Data block A: 2KB
Data block B: 2KB
E/W disabled (RESET)
E/W disabled
E/W disabled
E/W disabled
E/W enabled
E/W enabled
E/W enabled
E/W enabled
)
16
)
16
(Notes 1, 2)

Advertisement

loading