![Renesas M16C/62P Group Hardware Manual Download Page 292](http://html1.mh-extra.com/html/renesas/m16c-62p-group/m16c-62p-group_hardware-manual_1440174292.webp)
M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
Rev.2.41
Jan 10, 2006
Page 277 of 390
REJ09B0185-0241
Figure 22.5
FMR0 Register
Flash Memory Control Register 0
Symbol
Address
After Reset
FMR0
01B7h
00000001b
Bit Symbol
Bit Name
Function
RW
RY/BY
___
Status Flag
NOTES :
1.
2.
3.
4.
5.
6.
Effective w hen the FMR01 bit = 1 (CPU rew rite mode). If the FMR01 bit = 0, although the FMR03 bit can be set to “1”
by w riting “1” in a program, the flash memory is neither placed in low pow er mode nor initialized.
This status includes w riting or reading w ith the Lock Bit Program or Read Lock Bit Status command.
Write to this bit w hen the NMI
____
pin is in the high state. Also, w hile in EW0 mode, w rite to this bit from a program in
than the flash memory.
Enter read array mode and set this bit to “0”.
Write to this bit from a program in other than the flash memory.
This flag is cleared to “0” by executing the Clear Status command.
RO
0 : Disables CPU rew rite mode
1 : Enables CPU rew rite mode
CPU Rew rite Mode Select
Bit
(1)
Erase Status Flag
(4)
0 : Terminated normally
1 : Terminated in error
RW
RW
RW
RW
User ROM Area Select Bit
(3)
(Effective in Only Boot Mode)
0 : Terminated normally
1 : Terminated in error
0 : Boot ROM area is accessed
1 : User ROM area is accessed
0 : Enables lock bit
1 : Disables lock bit
0 : Enables flash memory operation
1 : Stops flash memory operation
(placed in low pow er mode, flash memory
initialized)
Set to “0”
RW
FMR07
FMR00
RO
0 : Busy (being w ritten or erased)
1 : Ready
FMR02
FMSTP
—
(b4)
FMR05
RO
To set this bit to “1,” w rite “0” and then “1” in succession. Make sure no interrupts or DMA transfers w ill occur
before w riting “1” after w riting “0”.
To set this bit to “1,” w rite “0” and then “1” in succession w hen the FMR01 bit = 1. Make sure no interrupts or no
DMA transfers w ill occur before w riting “1” after w riting “0”.
b3 b2 b1 b0
b7 b6 b5 b4
FMR01
FMR06
Lock Bit Disable Select Bit
(2)
0
Program Status Flag
(4)
Flash Memory Stop Bit
(3, 5)
Reserved Bit
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655