Renesas M16C/62P Series Hardware Manual page 294

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
22.3.3.1
FMR00 Bit
This bit indicates the flash memory operating state. It is set to "0" while the program, block erase, erase all
unlocked block, lock bit program, or read lock bit status command is being executed; otherwise, it is set to "1".
22.3.3.2
FMR01 Bit
The microcomputer can accept commands when the FMR01 bit is set to "1" (CPU rewrite mode). Set the
FMR05 bit to "1" (user ROM area access) as well if in boot mode.
22.3.3.3
FMR02 Bit
The lock bit is disabled by setting the FMR02 bit to "1" (lock bit disabled). (Refer to 22.3.6 Data Protect
Function.) The lock bit is enabled by setting the FMR02 bit to "0" (lock bit enabled).
The FMR02 bit does not change the lock bit status but disables the lock bit function. If the block erase or erase
all unlocked block command is executed when the FMR02 bit is set to "1", the lock bit status changes "0"
(locked) to "1" (unlocked) after command execution is completed.
22.3.3.4
FMSTP Bit
The FMSTP bit resets the flash memory control circuits and minimizes power consumption in the flash
memory. Access to the flash memory is disabled when the FMSTP bit is set to "1". Set the FMSTP bit by
program in a space other than the flash memory.
Set the FMSTP bit to "1" if one of the followings occurs: A flash memory access error occurs while erasing
or programming in EW0 mode (FMR00 bit does not switch back to "1" (ready)).
Low-power consumption mode or on-chip oscillator low-power consumption mode is entered
Use the following the procedure to change the FMSTP bit setting.
(1) Set the FMSTP bit to "1"
(2) Set tps (the wait time to stabilize flash memory circuit)
(3) Set the FMSTP bit to "0"
(4) Set tps (the wait time to stabilize flash memory circuit)
Figure 22.9 shows a Flow Chart Illustrating How To Start and Stop the Flash Memory Processing Before and
After Low Power Dissipation Mode or On-chip Oscillator Low-Power Consumption Mode. Follow the
procedure on this flow chart.
When entering stop or wait mode, the flash memory is automatically turned off. When exiting stop or wait
mode, the flash memory is turned back on. The FMR0 register does not need to be set.
22.3.3.5
FMR05 Bit
This bit selects the boot ROM or user ROM area in boot mode. Set to "0" to access (read) the boot ROM area or
to "1" (user ROM access) to access (read, write or erase) the user ROM area.
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
Page 279 of 390
提供单片机解密、IC解密、芯片解密业务
22. Flash Memory Version
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents