Fmr0, Fmr1 Registers - Renesas M16C/6NK Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)

21.3.3 FMR0, FMR1 Registers

Figure 21.4 shows FMR0 and FMR1 registers.
Flash Memory Control Register 0
b7
b6
b5
b4
b3
b2
0
NOTES:
1.This status includes writing or reading with the lock bit program or read lock bit status command.
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, write to this bit from a program in
other than the flash memory.
To set this bit to "0", in a read array mode.
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".
4. Write to this bit from a program in other than the flash memory.
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 dissipation state nor initialized.
6. This bit 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:
1. To set this bit to "1", write "0" and then "1" in succession when the FMR01 bit in the FMR0 register = 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.
The FMR01 and FMR11 bits both are set to "0" by setting the FMR01 bit to "0".
Figure 21.4 FMR0 Register and FMR1 Register
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
b1
b0
Symbol
FMR0
Bit Symbol
RY/BY Status Flag
FMR00
CPU Rewrite Mode
FMR01
Select Bit
Lock Bit Disable Select
FMR02
(3)
Bit
Flash Memory Stop
FMSTP
(4) (5)
Bit
-
Reserved Bit
(b4)
User ROM Area Select
(4)
Bit
FMR05
(Effective in only boot mode)
Program Status Flag
FMR06
Erase Status Flag
FMR07
b1
b0
Symbol
FMR1
Bit Symbol
-
Reserved Bit
(b0)
FMR11
EW1 Mode Select Bit
-
Reserved Bit
(b3-b2)
-
Reserved Bit
(b5-b4)
Lock Bit Status Flag
FMR16
-
Reserved Bit
(b7)
page 266 of 378
Address
After Reset
01B7h
00000001b
Bit Name
0 : Busy (being written or erased)
1 : Ready
0 : Disables CPU rewrite mode
(2)
1 : Enables CPU rewrite mode
0: Enables lock bit
1: Disables lock bit
0 Enables flash memory operation
1: Stops flash memory operation
(placed in low power dissipation mode,
Set to "0"
0 : Boot ROM area is accessed
1 : User ROM area is accessed
0 : Terminated normally
(6)
1 : Terminated in error
0 : Terminated normally
(6)
1 : Terminated in error
Address
After Reset
01B5h
0X00XX0Xb
Bit Name
The value in this bit when read is
indeterminate.
0 : EW0 mode
(1)
1 : EW1 mode
The value in this bit when read is
indeterminate.
Set to "0"
0 : Lock
1 : Unlock
Set to "0"
21. Flash Memory Version
Function
RW
(1)
RO
RW
RW
RW
flash memory initialized)
RW
RW
RO
RO
Function
RW
RO
RW
RO
RW
RO
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents