Fujitsu FR30 Computer Hardware User Manual


 
367
16.7 Execution Status of the Automatic Algorithm
Suppose that the data polling and toggle bit functions indicate that the erase algorithm is
running. If this flag is "1" in this case, an internally controlled erase operation has started and
succeeding command entries are ignored until the data polling or toggle bit indicates the end of
the erase operation. (Only the input of a temporary erase stop code is accepted.)
When this flag is "1", flash memory accepts another sector erase code entry. In this case, it is
recommended to check the status of this flag by software before writing the succeeding sector
erase code. If this flag is "1" at the second time of status check, the additional sector erase
code may not be accepted.
When a read operation is performed during a temporary sector erase stop operation, flash
memory outputs "1" if the address indicated by the address signal is included in the sector that
is subject to the erase operation. If the address is not included in the sector that is subject to
the erase operation, flash memory outputs the data of bit 3 of the read value at the address
indicated by the address signal.
[bit 2] TOGGL2 (Toggle bit)
Sector erase operation status
Together with toggle bit 6, this toggle bit is used to indicate whether flash memory is subject to
automatic erase operation or temporary erase stop operation. If data is read consecutively from
a sector that is subject to erasing during an automatic erase operation, bit 2 toggles. If data is
consecutively read from a sector that is subject to a temporary erase stop operation when flash
memory is in temporary erase stop and read mode, bit 2 toggles also.
If addresses are read consecutively from a sector not subject to a temporary erase stop
operation when flash memory is in temporary erase stop and write mode, bit 2 becomes "1".
Unlike bit 2, bit 6 toggles only in usual write and erase or temporary erase stop and write
operations.
For example, bit 2 and bit 6 are used together to detect a temporary erase stop and read mode
(bit 2 toggles but bit 6 does not). Bit 2 is also used to detect sectors that are subject to erase
operations. If data is read from a sector that is subject to an erase operation for the flash
memory, bit 2 toggles.