|
M16C6NK Datasheet, PDF (285/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. Flash Memory Version
21.3.3.1 FMR00 Bit
This bit indicates the flash memory operating status. 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â.
21.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.
21.3.3.3 FMR02 Bit
The lock bit is disabled by setting the FMR02 bit to â1â (lock bit disabled). (Refer to 21.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.
21.3.3.4 FMSTP Bit
This 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 dissipation mode or on-chip oscillator low power dissipation 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 21.7 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 dissipation 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.
21.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.
21.3.3.6 FMR06 Bit
This is a read-only bit indicating an auto program operation state. The FMR06 bit is set to â1â when a
program error occurs; otherwise, it is set to â0â. Refer to 21.3.8 Full Status Check.
Rev.2.00 Nov 28, 2005 page 267 of 378
REJ09B0124-0200
|
▷ |