Fujitsu mb91192 用户手册

下载
页码 348
284
CHAPTER 21  Flash Memory
21.2
Flash Memory Status Register (FSTR) 
The flash memory status register (FSTR) indicates the flash memory operation status.
Flash Memory Status Register (FSTR)
Figure 21.2-1  Flash memory status register (FSTR) 
It is a register that indicates the operation status of flash memory.
Controls interrupts to the CPU and writing to the flash memory.
It can be accessed only by CPU. It cannot be accessed at mounting the writer. 
Do not use the read modify write command to access this register.
[bit 7]: INTE 
Controls generation of interrupts when auto algorithm (write, erase, etc.) of the flash memory ends. 
Be initialized to "0" when resetting.
This bit can be read and written.
[bit 6]: RDYINT 
It will be "1" when the auto algorithm (write, erase, etc.) of the flash memory ends.
The auto algorithm termination interrupt request is generated if this bit becomes "1" when interrupt
generation is enabled by specifying bit7:INTE= "1". 
Be initialized to "0" when resetting.
This bit can be read and written. However, "0" only is possible for writing, and even if "1" is written,
the bit value will not be changed.
[bit 5]: WE 
Controls the writing data and command to the flash memory under the CPU mode.
While this bit is "0", writing data and command to the flash memory will be invalid. Reading data from
the flash memory will be 32-bit access.
While this bit is "1", writing data and command to the flash memory will be valid, and initiation of the
auto algorithm is enabled. However, reading data from the flash memory will be 16-bit access, and 32-
bit access is impossible. So during this period, it cannot be used as the program memory.
This bit must be re-written after confirming the auto algorithm (write/erase) is stopped by the RDY bit.
While the RDY bit is "0", the value of this bit cannot be re-written. 
7 6 5 4 3 2 1 0 
000- ---0
B
Initial value
bit
INTE
RDYINT
WE
RDY
R/W
R/W
R/W
R
R/W
Address: 007C0
H
Access
Disables auto algorithm termination interrupt output. (Initial value)
Enables auto algorithm termination interrupt output.