English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (188/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
PSD module
UPSD33xx
When using the Data Polling method during an erase operation, Figure 60 on page 188 still
applies. However, the Data Polling Flag Bit (DQ7) is '0' until the erase operation is complete.
A ’1’ on the Error Flag Bit (DQ5) indicates a timeout condition on the Erase cycle, a ’0’
indicates no error. The 8032 can read any location within the sector being erased to get the
Data Polling Flag Bit (DQ7) and the Error Flag Bit (DQ5).
PSDsoft Express generates ANSI C code functions for implementation of these Data Polling
algorithms.
Figure 60. Data Polling flowchart
START
READ DQ5 & DQ7
at VALID ADDRESS
DQ7
=
YES
DATA
t(s) NO
uc NO DQ5
=1
rod YES
P READ DQ7
lete DQ7
o =
YES
DATA
bsNO
t(s) - OFAIL
PASS
AI01369B
Obsolete Produc 27.4.11
Data toggle
Checking the Toggle Flag Bit (DQ6) is another method of determining whether a program or
erase operation is in progress or has completed. Figure 61 on page 189 shows the Data
Toggle algorithm.
When the 8032 issues a program instruction sequence, the embedded algorithm within the
Flash memory array begins. The 8032 then reads the location of the byte to be programmed
in Flash memory to check status. The Toggle Flag Bit (DQ6) of this location toggles each
time the 8032 reads this location until the embedded algorithm is complete. The 8032
continues to read this location, checking the Toggle Flag Bit (DQ6) and monitoring the Error
Flag Bit (DQ5). When the Toggle Flag Bit (DQ6) stops toggling (two consecutive reads yield
the same value), then the embedded algorithm is complete. If the Error Flag Bit (DQ5) is '1,'
the 8032 should test the Toggle Flag Bit (DQ6) again, since the Toggle Flag Bit (DQ6) may
have changed simultaneously with the Error Flag Bit (DQ5) (see Figure 61 on page 189).
188/272
Doc ID 9685 Rev 7