Renesas M16C/60 Series Hardware Manual page 279

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

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
Flash memory control register 0
b7
b6
b5
b4
b3
b2
0
Note 1: This status includes writing or reading with the Lock Bit Program or Read Lock Bit Status command.
Note 2: To set this bit to "1", write "0" and then "1" in succession. Make sure no interrupts or no DMA transfers will occur
before writing "1" after writing "0".
Write to this bit when the NMI pin is in the high state. Also, while in EW0 mode, make sure this bit is modified in
other than the flash memory area.
To set this bit to "0", in a read array mode.
Note 3: To set this bit to "1", write "0" and then "1" in succession when the FMR01 bit = 1. Make sure no interrupts or no
DMA transfers will occur before writing "1" after writing "0".
Note 4: Make sure this bit is modified in other than the flash memory area.
Note 5: Effective when the FMR01 bit = 1 (CPU rewrite mode). If the FMR01 bit = 0, although the FMSTP bit can be set
to "1" by writing "1" in a program, the flash memory is neither placed in low power mode nor initialized.
Note 6: This flag is set to "0" by executing the Clear Status command.
Flash memory control register 1
b7
b6
b5
b4
b3
b2
0
0
0
Note: To set this bit to "1", write "0" and then "1" in succession when the FMR01 bit = 1. Make sure no interrupts or no DMA
transfers will occur before writing "1" after writing "0".
Write to this bit when the NMI pin is in the high state.
Note that the FMR01 and FMR11 bits both are set to "0" by setting the FMR01 bit to "0".
Figure 1.22.4 FMR0 Register and FMR1 Register
Rev.1.00
2003.05.30
page 265
b1
b0
Symbol
FMR0
Bit symbol
RY/BY status flag
FMR00
CPU rewrite mode
FMR01
select bit
Lock bit disable select bit
FMR02
Flash memory stop bit
FMSTP
-
Reserved bit
(b4)
User ROM area select bit
(Effective in only boot mode)
FMR05
Program status flag
FMR06
Erase status flag (Note 6)
FMR07
b1
b0
Symbol
FMR1
Bit symbol
-
Reserved bit
(b0)
FMR11
EW1 mode select bit (Note)
-
Reserved bit
(b3-b2)
-
Reserved bit
(b5-b4)
Lock bit status flag
FMR16
-
Reserved bit
(b7)
Address
After reset
01B7
XX000001
16
Bit name
0 : Busy (being written or erased) (Note 1)
1 : Ready
0 : Disables CPU rewrite mode
(Note 2)
1 : Enables CPU rewrite mode
0: Enables lock bit
(Note 3)
1: Disables lock bit
0 Enables flash memory operation
1: Stops flash memory operation
(placed in low power dissipation mode,
(Notes 4, 5)
Set to "0"
0 : Boot ROM area is accessed
1 : User ROM area is accessed
(Note 4)
0 : Terminated normally
(Note 6)
1 : Terminated in error
0 : Terminated normally
1 : Terminated in error
Address
After reset
01B5
0X00XX0X
16
Bit name
The value in this bit when read is
indeterminate.
0 : EW0 mode
1 : EW1 mode
The value in this bit when read is
indeterminate.
Set to "0"
0 : Lock
1 : Unlock
Set to "0"
Flash Memory
2
Function
flash memory initialized)
2
Function
RW
RO
RW
RW
RW
RW
RW
RO
RO
RW
RO
RW
RO
RW
RO
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents