m28f410 STMicroelectronics, m28f410 Datasheet - Page 28

no-image

m28f410

Manufacturer Part Number
m28f410
Description
4 Megabit X8 Or X16, Block Erase Flash Memory
Manufacturer
STMicroelectronics
Datasheet
Erase (EE) instruction. This instruction uses two
write operations. The first command written is the
Erase Set-up command 20h. The second com-
mand is the Erase Confirm command 0D0h. During
the input of the second command an address of the
block to be erased is given and this is latched into
the memory. If the second command given is not
the Erase Confirm command then the status regis-
ter bits b4 and b5 are set and the instruction aborts.
Read operations output the status register after
erasure has started.
During the execution of the erase by the P/E.C., the
memory accepts only the RSR (Read Status Reg-
ister) and ES (Erase Suspend) instructions. Status
Register bit b7 returns ’0’ while the erasure is in
progress and ’1’ when it has completed. After com-
pletion the Status Register bit b5 returns ’1’ if there
has been an Erase Failure because erasure has
not been verified even after the maximum number
of erase cycles have been executed. Status Reg-
ister bit b3 returns ’1’ if V
level when the erasure is attempted and/or proced-
ing.
V
not be attempted when V
will be uncertain. If V
Low the erase aborts and must be repeated, after
having cleared the Status Register (CLRS).
The Boot Block can only be erased when RP is also
at V
Program (PG) instruction. This instruction uses
two write operations. The first command written is
the Program Set-up command 40h (or 10h). A
second write operation latches the Address and the
Data to be written and starts the P/E.C. Read
operations output the status register after the pro-
gramming has started.
Memory programming is only made by writing ’0’ in
place of ’1’ in a byte or word.
During the execution of the programming by the
P/E.C., the memory accepts only the RSR (Read
Status Register) instruction. The Status Register bit
b7 returns ’0’ while the programming is in progress
and ’1’ when it has completed. After completion the
Status register bit b4 returns ’1’ if there has been a
Program Failure. Status Register bit b3 returns a
’1’ if V
ming is attempted and/or during programming.
V
ming should not be attempted when V
as the results will be uncertain. Programming
aborts if V
aborted the data may be incorrect. Then after
having cleared the Status Register (CLRS), the
memory must be erased and re-programmed.
28/38
PP
PP
HH
must be at V
must be at V
PP
.
does not remain at V
PP
drops below V
PPH
PPH
PP
when programming, program-
when erasing, erase should
falls below V
PP
PP
does not remain at V
PPH
< V
PPH
or RP goes Low. If
PPH
when program-
PPH
as the results
or RP goes
PP
< V
PPH
PPH
The Boot Block can only be programmed when RP
is at V
Clear Status Register (CLRS) instruction. The
Clear Status Register uses a single write operation
which clears bits b3, b4 and b5, if latched to ’1’ by
the P/E.C., to ’0’. Its use is necessary before any
new operation when an error has been detected.
Erase Suspend (ES) instruction. The Erase op-
eration may be suspended by this instruction which
consists of writing the command 0B0h. The Status
Register bit b6 indicates whether the erase has
actually been suspended, b6 = ’1’, or whether the
P/E.C. cycle was the last and the erase is com-
pleted, b6 = ’0’.
During the suspension the memory will respond
only to Read (RD), Read Status Register (RSR) or
Erase Resume (ER) instructions. Read operations
initially output the status register while erase is
suspended but, following a Read instruction, data
from other blocks of the memory can be read. V
must be maintained at V
pended. If V
signal goes Low while erase is suspended then
erase is aborted while bits b5 and b3 of the status
register are set. Erase operation must be repeated
after having cleared the status register, to be cer-
tain to erase the block.
Erase Resume (ER) instruction. If an Erase Sus-
pend instruction was previously executed, the
erase operation may be resumed by giving the
command 0D0h. The status register bit b6 is
cleared when erasure resumes. Read operations
output the status register after the erase is re-
sumed.
The suggested flow charts for programs that use
the programming, erasure and erase suspend/re-
sume features of the memories are shown in Figure
11 to Figure 13.
Programming. The memory can be programmed
byte-by-byte(or word-by-word in x16 organization).
The Program Supply voltage V
before program instructions are given, and if the
programming is in the Boot Block, RP must also be
raised to V
gram Supply voltage may be applied continuously
during programming.
The program sequence is started by writing a Pro-
gram Set-up command (40h) to the Command
Interface,this is followed by writing the address and
data byte or word to the memory. The Pro-
gram/Erase Controllerautomaticallystarts and per-
forms the programming after the second write
operation, providing that the V
voltage if programming the Boot Block) are correct.
During the programming the memory status is
checked by reading the status register bit b7 which
HH
.
HH
PP
to unlock the Boot Block. The Pro-
does not remain at V
PPH
while erase is sus-
PP
PP
voltage (and RP
must be applied
PPH
or the RP
PP

Related parts for m28f410