English
Language : 

UPSD3422_06 Datasheet, PDF (210/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
PSD module
uPSD34xx
Bulk Erase operation are detailed in the section entitled “Section 28.5.9: Programming Flash
memory. on page 205.
During a Bulk Erase operation, the Flash memory does not accept any other Flash
instruction sequences.
28.5.16
Flash sector erase
The Sector Erase instruction sequence uses six WRITE operations, as described in
Table 107 on page 203. Additional Flash Sector Erase commands to other sectors within the
same Flash array may be issued by the 8032 if the additional commands are sent within a
limited amount of time.
The Erase Time-out Flag Bit (DQ3) reflects the time-out period allowed between two
consecutive sector erase instruction sequence bytes. If multiple sector erase commands are
desired, the additional sector erase commands (30h) must be sent by the 8032 to another
sector within 80µs after the previous sector erase command. DQ3 is 0 before this time
period has expired, indicating it is OK to issue additional sector erase commands. DQ3 will
go to logic ’1’ if the time has been longer than 80µs since the previous sector erase
command (time has expired), indicating that is not OK to send another sector erase
command. In this case, the 8032 must start a new sector erase instruction sequence (unlock
and command), beginning again after the current sector erase operation has completed.
During a Sector Erase operation, the memory status may be checked by reading the Error
Flag Bit (DQ5), the Toggle Flag Bit (DQ6), and the Data Polling Flag Bit (DQ7), as detailed in
Section 28.5.5: Reading the erase/program status bits on page 204.
During a Sector Erase operation, a Flash memory accepts only Reset Flash and Suspend
Sector Erase instruction sequences. Erasure of one Flash memory sector may be
suspended, in order to read data from another Flash memory sector, and then resumed.
The address provided with the initial Flash Sector Erase command sequence (Table 107 on
page 203) must select the first desired sector (FSx or CSBOOTx) to erase. Subsequent
sector erase commands that are appended within the time-out period must be addressed to
other desired segments within the same Flash memory array.
28.5.17
Suspend sector erase
When a Sector Erase operation is in progress, the Suspend Sector Erase instruction
sequence can be used to suspend the operation by writing B0h to any valid address within
the Flash array that currently is undergoing an erase operation. This allows reading of data
from a different Flash memory sector within the same array after the Erase operation has
been suspended. Suspend Sector Erase is accepted only during an Erase operation.
There is up to 15µs delay after the Suspend Sector Erase command is accepted and the
array goes to Read Array mode. The 8032 will monitor the Toggle Flag Bit (DQ6) to
determine when the erase operation has halted and Read Array mode is active.
210/293