Renesas M32R/ECU Series User Manual page 135

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
This status register is included in the internal flash memory, and can be enabled for read by writing the Read
Status command (H'7070) to any address of the internal flash memory. For details, see Section 6.5, "Program-
ming the Internal Flash Memory."
Flash Status Register 2 (FSTAT2) consists of the following four read-only status bits that indicate the operation
condition of the internal flash memory.
(1) FBUSY (Flash Busy) bit (Bit 8)
The FBUSY bit is used to determine whether the operation on the internal flash memory is finished when it is
being programmed or erased. When FBUSY = "0", it means that the programming or erase operation is being
executed; when FBUSY = "1", the operation is finished.
(2) ERASE (Erase status) bit (Bit 10)
The ERASE bit is used to determine after execution of processing whether the erase operation performed on
the internal flash memory resulted in an error. When ERASE = "0", it means that the erase operation termi-
nated normally; when ERASE = "1", the erase operation terminated in an error.
(3) WRERR1 (Write status 1) bit (Bit 11)
The WRERR1 bit is used to determine after completion of processing whether the programming operation
performed on the internal flash memory resulted in an error. When WRERR1 = "0", it means that the pro-
gramming operation terminated normally; when WRERR1 = "1", the programming operation terminated in an
error.
The condition under which WRERR1 is set to "1" is when any bit other than those that must be "0" is found to
be "0" by comparison between the write data and the data in the internal flash memory.
(4) WRERR2 (Write status 2) bit (Bit 12)
The WRERR2 bit is used to determine after execution of processing whether the programming operation
performed on the internal flash memory resulted in an error. When WRERR2 = "0", it means that the pro-
gramming operation terminated normally; when WRERR2 = "1", the programming operation terminated in an
error.
The condition under which WRERR2 is set to "1" is when the internal flash memory cannot be written to even
by repeating the programming operation a specified number of times.
6.4 Registers Associated with the Internal Flash Memory
6-6
INTERNAL MEMORY
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents