English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (186/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
PSD module
UPSD33xx
accessible for a new READ or WRITE operation. The operation is finished when two
successive READs yield the same value for DQ6.
DQ6 may also be used to indicate when an erase operation has completed. During an erase
operation, DQ6 will toggle from '0' to '1' and '1' to ’0’ until the erase operation is complete,
then DQ6 stops toggling. The erase is finished when two successive READs yield the same
value of DQ6. The correct sector select signal, FSx or CSBOOTx, must be active during the
entire procedure.
DQ6 is valid after the fourth instruction byte WRITE operation (for program instruction
sequence) or after the sixth instruction byte WRITE operation (for erase instruction
sequence).
If all the Flash memory sectors selected for erasure are protected, DQ6 toggles to ’0’ for
about 100µs, then returns value of D6 of the previously addressed byte.
Error Flag (DQ5)
During a normal program or erase operation, the Error Flag Bit (DQ5) is to ’0’. This bit is set
olete Product(s) 27.4.8
Obsolete Product(s) - Obs 27.4.9
to ’1’ when there is a failure during Flash memory byte program, sector erase, or bulk erase
operations.
In the case of Flash memory programming, DQ5 Bit indicates an attempt to program a Flash
memory bit from the programmed state of 0, to the erased state of 1, which is not valid. DQ5
may also indicate a particular Flash cell is damaged and cannot be programmed.
In case of an error in a Flash memory sector erase or byte program operation, the Flash
memory sector in which the error occurred or to which the programmed byte belongs must
no longer be used. Other Flash memory sectors may still be used. DQ5 is reset after a
Reset Flash instruction sequence.
Erase timeout flag (DQ3)
The Erase Timeout Flag Bit (DQ3) reflects the timeout 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 within 80us
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), indication 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.
Programming Flash memory
When a byte of Flash memory is programmed, individual bits are programmed to logic '0.'
The user cannot program a bit in Flash memory to a logic ’1’ once it has been programmed
to a logic '0.' A bit must be erased to logic ’1’, and programmed to logic '0.' That means
Flash memory must be erased prior to being programmed. A byte of Flash memory is
erased to all 1s (FFh). The 8032 may erase the entire Flash memory array all at once, or
erase individual sector-by-sector, but not erase byte-by-byte. However, even though the
Flash memories cannot be erased byte-by-byte, the 8032 may program Flash memory byte-
by-byte. This means the 8032 does not need to program group of bytes (64, 128, etc.) at
one time, like some Flash memories.
186/272
Doc ID 9685 Rev 7