PSD913G2 STMICROELECTRONICS [STMicroelectronics], PSD913G2 Datasheet - Page 24

no-image

PSD913G2

Manufacturer Part Number
PSD913G2
Description
Configurable Memory System on a Chip for 8-Bit Microcontrollers
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
PSD935G2
The
PSD935G2
Functional
Blocks
(cont.)
9.1.1.7.2 Data Toggle
It is suggested (as with all Flash memories) to read the location again after the embedded
programming algorithm has completed to compare the word that was written to Flash with
the word that was intended to be written.
When using the Data Toggle method after an erase instructin, Figure 5 still applies. DQ6
will toggle until the erase operation is complete. A ‘1’ on DQ5 will indicate a timeout failure
of the erase operation, a ‘0’ indicates no error. The MCU can read any even location within
the sector being erased to get DQ6 and DQ5.
PSDsoft generates ANSI C code functions which implement these Data Toggling
algorithms.
Figure 5. Data Toggle Flow Chart
(cont.)
NO
Issue Reset Instruction
Operation Failed
Program/Erase
DQ5 & DQ6
READ DQ6
TOGGLE
TOGGLE
START
READ
DQ6
DQ5
DQ6
FAIL
=1
=
=
YES
YES
YES
NO
NO
Program/Erase
Operation is
Completed
PASS
PSD9XX Family
23

Related parts for PSD913G2