EasyManua.ls Logo

Renesas M32R/ECU Series

Renesas M32R/ECU Series
839 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6
6-5
INTERNAL MEMORY
32180 Group Users Manual (Rev.1.0)
6.4 Registers Associated with the Internal Flash Memory
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 (H0080 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) <Address: H0080 01E1>
9 1011121314b15b8
FSTAT
1
0
0
0
0
0
0
0
<After reset: H01>
b Bit Name Function R W
8–14 No function assigned. Fix to "0". 00
15 FSTAT 0: Busy R
Ready/busy status bit 1: Ready
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)
9 1011121314b15b8
WRERR2
WRERR1ERASEFBUSY
1
00
0
0
0
0
0
<After reset: H80>
b Bit Name Function R W
8 FBUSY 0: Being programmed or erased R
Flash busy bit 1: Ready state
9 No function assigned. Fix to "0". 00
10 ERASE 0: Erase normally operating or terminated R
Erase status confirmation bit 1: Erase error occurred
11 WRERR1 0: Programming normally operating or terminated R
Write status confirmation bit 1 1: Programming error occurred
12 WRERR2 0: Programming normally operating or terminated R
Write status confirmation bit 2 1: Over-programming occurred
1315 No function assigned. Fix to "0". 00

Table of Contents

Related product manuals