Mitsubishi Electric M32R Series User Manual page 140

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

Advertisement

6
Flash Status Register 2 (FSTAT2)
D8
FBUSY
D
Bit Name
8
FBUSY
(Flash busy)
9
No functions assigned
10
ERASE
(Auto Erase operating condition)
11
WRERR1
(Program operating condition)
12
WRERR2
(Program operating condition)
13 - 15
No functions assigned
The Flash Status Register 2 (FSTAT2) consists of the following four read-only status bits which
indicate the operating condition of the flash memory.
(1) FBUSY (Flash Busy) bit (D8)
The FBUSY bit is used to determine whether the operation is terminated when programming or
erasing the flash memory. When FBUSY = 0, it means the program or erase operation is being
executed; when FBUSY = 1, the operation is terminated.
(2) ERASE (Auto Erase operating condition) bit (D10)
The ERASE bit is used to determine whether execution of the flash memory erase operation has
resulted in an error. When ERASE = 0, it means the erase operation terminated normally; when
ERASE = 1, the operation terminated in an error.
(3) WRERR1 (Program operating condition) bit (D11)
The WRERR1 bit is used to determine after completion of execution whether the flash memory
program operation resulted in an error. When WRERR1 = 0, it means the program operation
terminated normally; when WRERR1 = 1, the 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 a
0 by comparison between the write data and the data in the flash memory.
6.4 Registers Associated with the Internal Flash Memory
9
10
11
ERASE
WRERR1 WRERR2
Function
0 : Program or erase under way
1 : Ready state
0 : Erase normally operating/terminated
1 : Erase error occurred
0 : Program normally operating/terminated
1 : Program error occurred
0 : Program normally operating/terminated
1 : Over-programming occurred
6-6
INTERNAL MEMORY
12
13
14
D15
<When reset : H'80>
R
W
0
0
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents