Flash Status Registers; Flash Status Register 2 (Fstat2) - Renesas M32R/ECU Series User Manual

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

Advertisement

6

6.4.2 Flash Status Registers

There are two registers to indicate the status of the internal flash memory: Flash Status Register 1 (FSTAT1)
located in the SFR area (H'0080 01E1) and Flash Status Register 2 (FSTAT2) included in the internal flash
memory. Use these two status registers (FSTAT1 and FSTAT2) to control the programming or erase operation
performed on the internal flash memory.
Flash Status Register 1 (FSTAT1)
b8
9
10
0
0
0
b
Bit Name
8–14
No function assigned. Fix to "0".
15
FSTAT
Ready/busy status bit
Flash Status Register 1 (FSTAT1) is a read-only status register used to know the status of the programming or
erase operation performed on the internal flash memory. When FSTAT = "0" (busy), the internal flash memory is
being programmed or erased, during which time do not start a new programming or erase operation on it. When
FSTAT = "1" (ready), a new programming or erase operation can be started on it.
Furthermore, while FSTAT = "0" (busy), do not operate on the FCNT4 register FRESET bit described later.

6.4.3 Flash Status Register 2 (FSTAT2)

Flash Status Register 2 (FSTAT2)
b8
9
10
FBUSY
ERASE
WRERR1
1
0
0
b
Bit Name
8
FBUSY
Flash busy bit
9
No function assigned. Fix to "0".
10
ERASE
Erase status confirmation bit
11
WRERR1
Write status confirmation bit 1
12
WRERR2
Write status confirmation bit 2
13–15
No function assigned. Fix to "0".
6.4 Registers Associated with the Internal Flash Memory
11
12
13
14
FSTAT
0
0
0
0
11
12
13
14
WRERR2
0
0
0
0
b15
1
Function
0: Busy
1: Ready
b15
0
Function
0: Being programmed or erased
1: Ready state
0: Erase normally operating or terminated
1: Erase error occurred
0: Programming normally operating or terminated
1: Programming error occurred
0: Programming normally operating or terminated
1: Over-programming occurred
6-5
INTERNAL MEMORY
<Address: H'0080 01E1>
<After reset: H'01>
R
0
R
<After reset: H'80>
R
R
0
R
R
R
0
32180 Group User's Manual (Rev.1.0)
W
0
W
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents