Flash Memory Control Register 1 (Fmr1); Flash Memory Control Register 4 (Fmr4) - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

20.5.2 Flash Memory Control Register 1 (FMR1)

•FMR11 Bit
EW mode 1 is entered by setting the FMR11 bit to 1 (EW mode 1). The FMR11 bit is valid only when
the FMR01 bit is set to 1.
•FMR16 Bit
The combined setting of bits FMR02 and FMR16 enables program and erase in the user ROM area.
To set the FMR16 bit to 1, first set it to 0 and then 1. The FMR16 bit is valid only when the FMR01 bit
is set to 1 (CPU rewrite mode enable).
•FMR17 Bit
If the FMR17 bit is set to 1 (with wait state), 1 wait state is inserted when blocks A and B are accessed,
regardless of the content of the PM17 bit in the PM1 register. The PM17 bit setting is reflected to
access other blocks and internal RAM, regardless of the FMR17 bit setting.
Set the FMR17 bit to 1 (with wait state) to rewrite more than 100 times (U7, U9).
Table 20.4 Protection using FMR16 and FMR02
FMR16
FMR02
0
0
1
1

20.5.3 Flash Memory Control Register 4 (FMR4)

•FMR40 Bit
The erase-suspend function is enabled when the FMR40 bit is set to 1 (enabled).
•FMR41 Bit
When the FMR41 bit is set to 1 by program during auto-erasing in EW mode 0, erase-suspend mode
is entered. In EW mode 1, the FMR41 bit is automatically set to 1 (suspend request) to enter erase-
suspend mode when an enabled interrupt request is generated. Set the FMR41 bit to 0 (erase restart)
to restart an auto-erasing operation.
•FMR46 Bit
The FMR46 bit is set to 0 during auto-erasing. It is set to 1 in erase-suspend mode.
Do not access to flash memory when the FMR46 bit is set to 0.
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
Block A, Block B
0
write enabled
1
write enabled
0
write enabled
1
write enabled
page 340
f o
4
5
8
Block 0, Block 1
other user block
write disabled
write disabled
write disabled
write disabled
write disabled
write enabled
write enabled
write enabled
20. Flash Memory Version

Advertisement

Table of Contents
loading

Table of Contents