7 block erase, 6 page erase – Rainbow Electronics AT45DB021E User Manual
Page 12

12
AT45DB021E [PRELIMINARY DATASHEET]
8789B–DFLASH–11/2012
Example:
If only two data bytes were clocked into the device, then only two bytes will be programmed into main
memory and the remaining bytes in the memory page will remain in their previous state.
The CS pin must be deasserted on a byte boundary (multiples of eight bits); otherwise the operation will be aborted and
no data will be programmed. The programming of the data bytes is internally self-timed and should take place in a
maximum time of t
P
(the program time will be a multiple of the t
BP
time depending on the number of bytes being
programmed). During this time, the RDY/BUSY
bit in the Status Register will indicate that the device is busy.
The device also incorporates an intelligent programming algorithm that can detect when a byte location fails to program
properly. If a programming error arises, it will be indicated by the EPE bit in the Status Register.
6.6
Page Erase
The Page Erase command can be used to individually erase any page in the main memory array allowing the Buffer to
Main Memory Page Program without Built-In Erase command or the Main Memory Byte/Page Program through Buffer
command to be utilized at a later time.
To perform a Page Erase with the standard DataFlash page size (264 bytes), an opcode of 81h must be clocked into the
device followed by three address bytes comprised of five dummy bits, 10 page address bits (PA9 - PA0) that specify the
page in the main memory to be erased, and nine dummy bits.
To perform a Page Erase with the binary page size (256 bytes), an opcode of 81h must be clocked into the device
followed by three address bytes comprised of six dummy bits, 10 page address bits (A17 - A8) that specify the page in
the main memory to be erased, and eight dummy bits.
When a low-to-high transition occurs on the CS pin, the device will erase the selected page (the erased state is a
Logic 1). The erase operation is internally self-timed and should take place in a maximum time of t
PE
. During this time, the
RDY/BUSY
bit in the Status Register will indicate that the device is busy.
The device also incorporates an intelligent erase algorithm that can detect when a byte location fails to erase properly. If
an erase error arises, it will be indicated by the EPE bit in the Status Register.
6.7
Block Erase
The Block Erase command can be used to erase a block of eight pages at one time. This command is useful when
needing to pre-erase larger amounts of memory and is more efficient than issuing eight separate Page Erase
commands.
To perform a Block Erase with the standard DataFlash page size (264 bytes), an opcode of 50h must be clocked into the
device followed by three address bytes comprised of five dummy bits, seven page address bits (PA9 - PA3), and
12 dummy bits. The seven page address bits are used to specify which block of eight pages is to be erased.
To perform a Block Erase with the binary page size (256 bytes), an opcode of 50h must be clocked into the device
followed by three address bytes comprised of six dummy bits, seven page address bits (A17 - A11), and 11 dummy bits.
The seven page address bits are used to specify which block of eight pages is to be erased.
When a low-to-high transition occurs on the CS pin, the device will erase the selected block of eight pages. The erase
operation is internally self-timed and should take place in a maximum time of t
BE
. During this time, the RDY/BUSY
bit in
the Status Register will indicate that the device is busy.
The device also incorporates an intelligent erase algorithm that can detect when a byte location fails to erase properly. If
an erase error arises, it will be indicated by the EPE bit in the Status Register.