BAT32G1x9 user manual | Chapter 35 FLASH control
1143 / 1149
Rev.1.02
35.3.4
Flash Status Register (FLSTS).
The status register allows you to query the status of the FLASH controller.
Address:
0x40020000
reset:
00H
R/W
Symbol
7
6
5
4
3
2
1
0
FLSTS
OVF
Flash wipe operation
finished
flag
0
Flash wipe operation
incomplete
1
The FLASH wipe operation
is complete
Note: OVF requires the software to write "1" to clear. If not cleared, the next erase and write operation
cannot be performed.
EVF
FLASH erases the hardware validation error
flag
0
After flash wipe, no errors occur in the hardware check
1
After flash wipe, an error occurred in the hardware check
Note: EVF requires software to write "1" to clear.
35.3.5
Flash full-chip erase time control register (FLCERCNT).
The FLCERCNT register allows you to set the time for flash full-slice erase.
Address:
0x40020010
After reset:
indefinite
R/W
symbol
FLCERCNT
Load
Selection of erase time settings Note
0
Use the hardware-set erase time
1
Use the software-set erase time (F-LCERCNT [9:0]).
Note: When the master clock is an internal high-speed OCO,
or when the external input clock <=20M, the
hardware time can be set without setting FLCERCNT.
FLCERCNT[9:0]
Software erase time setting
Chip erase time = (CERCNT*2048*Tfclk), which meets the
hardware requirements of
>
20ms
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
load
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
FLCERCNT[9:0]
0
0
0
0
0
EVF
Note
0
OVF
Note