English
Language : 

M16C6NK Datasheet, PDF (284/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
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.
21. Flash Memory Version
Flash Memory Control Register 0
b7 b6 b5 b4 b3 b2 b1 b0
0
Symbol
FMR0
Address
01B7h
After Reset
00000001b
Bit Symbol
Bit Name
Function
RW
FMR00 RY/BY Status Flag
0 : Busy (being written or erased) (1)
1 : Ready
RO
FMR01
FMR02
FMSTP
-
(b4)
FMR05
CPU Rewrite Mode
Select Bit (2)
0 : Disables CPU rewrite mode
1 : Enables CPU rewrite mode
RW
Lock Bit Disable Select 0: Enables lock bit
Bit (3)
1: Disables lock bit
RW
Flash Memory Stop
Bit (4) (5)
0 Enables flash memory operation
1: Stops flash memory operation
(placed in low power dissipation mode, RW
flash memory initialized)
Reserved Bit
Set to "0"
RW
User ROM Area Select
Bit (4)
(Effective in only boot mode)
0 : Boot ROM area is accessed
1 : User ROM area is accessed
RW
FMR06 Program Status Flag (6)
0 : Terminated normally
1 : Terminated in error
RO
FMR07 Erase Status Flag (6)
0 : Terminated normally
1 : Terminated in error
RO
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 b1 b0
0 00
Symbol
FMR1
Address
01B5h
After Reset
0X00XX0Xb
Bit Symbol
Bit Name
Function
RW
-
(b0)
Reserved Bit
The value in this bit when read is
indeterminate.
RO
FMR11
EW1 Mode Select Bit (1)
0 : EW0 mode
1 : EW1 mode
RW
-
(b3-b2)
-
(b5-b4)
Reserved Bit
Reserved Bit
The value in this bit when read is
RO
indeterminate.
Set to "0"
RW
FMR16 Lock Bit Status Flag
0 : Lock
1 : Unlock
RO
-
(b7)
Reserved Bit
Set to "0"
RW
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 page 266 of 378
REJ09B0124-0200