AT45DB321-CC ATMEL [ATMEL Corporation], AT45DB321-CC Datasheet - Page 5

no-image

AT45DB321-CC

Manufacturer Part Number
AT45DB321-CC
Description
32-Megabit 2.7-volt Only Serial DataFlash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Block Erase Addressing
MAIN MEMORY PAGE PROGRAM: This operation is a
combination of the Buffer Write and Buffer to Main Memory
Page Program with Built-In Erase operations. Data is first
shifted into buffer 1 or buffer 2 from the SI pin and then pro-
grammed into a specified page in the main memory. An 8-
bit opcode, 82H for buffer 1 or 85H for buffer 2, is followed
by one reserved bit and 23 address bits. The 13 most sig-
nificant address bits (PA12-PA0) select the page in the
main memory where data is to be written, and the next 10
address bits (BFA9-BFA0) select the first byte in the buffer
to be written. After all address bits are shifted in, the part
will take data from the SI pin and store it in one of the data
buffers. If the end of the buffer is reached, the device will
wrap around back to the beginning of the buffer. When
there is a low to high transition on the CS pin, the part will
first erase the selected page in main memory to all 1s and
then program the data stored in the buffer into the specified
page in the main memory. Both the erase and the program-
ming of the page are internally self timed and should take
place in a maximum of time t
register will indicate that the part is busy.
AUTO PAGE REWRITE: This mode is only needed if multi-
ple bytes within a page or multiple pages of data are modi-
fied in a random fashion. This mode is a combination of two
operations: Main Memory Page to Buffer Transfer and
Buffer to Main Memory Page Program with Built-In Erase.
A page of data is first transferred from the main memory to
buffer 1 or buffer 2, and then the same data (from buffer 1
or buffer 2) is programmed back into its original page of
main memory. An 8-bit opcode, 58H for buffer 1 or 59H for
buffer 2, is followed by one reserved bit, 13 address bits
(PA12-PA0) that specify the page in main memory to be
rewritten, and 10 additional don't care bits. When a low to
high transition occurs on the CS pin, the part will first trans-
fer data from the page in main memory to a buffer and then
PA12
0
0
0
0
1
1
1
1
PA11
0
0
0
0
1
1
1
1
PA10
0
0
0
0
1
1
1
1
EP
. During this time, the status
PA9
0
0
0
0
1
1
1
1
PA8
0
0
0
0
1
1
1
1
PA7
0
0
0
0
1
1
1
1
PA6
0
0
0
0
1
1
1
1
program the data from the buffer back into same page of
main memory. The operation is internally self-timed and
should take place in a maximum time of t
time, the status register will indicate that the part is busy.
If a sector is programmed or reprogrammed sequentially
page by page, then the programming algorithm shown in
Figure 1 is recommended. Otherwise, if multiple bytes in a
page or several pages are programmed randomly in a sec-
tor, then the programming algorithm shown in Figure 2 is
recommended.
STATUS REGISTER: The status register can be used to
determine the device’s ready/busy status, the result of a
Main Memory Page to Buffer Compare operation, or the
device density. To read the status register, an opcode of
57H must be loaded into the device. After the last bit of the
opcode is shifted in, the eight bits of the status register,
starting with the MSB (bit 7), will be shifted out on the SO
pin during the next eight clock cycles. The five most-signifi-
cant bits of the status register will contain device informa-
tion, while the remaining three least-significant bits are
reserved for future use and will have undefined values.
After bit 0 of the status register has been shifted out, the
sequence will repeat itself (as long as CS remains low and
SCK is being toggled) starting again with bit 7. The data in
the status register is constantly updated, so each repeating
sequence will output new data.
Ready/busy status is indicated using bit 7 of the status reg-
ister. If bit 7 is a 1, then the device is not busy and is ready
to accept the next command. If bit 7 is a 0, then the device
is in a busy state. The user can continuously poll bit 7 of the
status register by stopping SCK once bit 7 has been output.
The status of bit 7 will continue to be output on the SO pin,
and once the device is no longer busy, the state of SO will
change from 0 to 1. There are eight operations which can
PA5
0
0
0
0
1
1
1
1
PA4
0
0
1
1
0
0
1
1
PA3
0
1
0
1
0
1
0
1
PA2
X
X
X
X
X
X
X
X
PA1
X
X
X
X
X
X
X
X
PA0
X
X
X
X
X
X
X
X
EP
. During this
Block
1020
1021
1022
1023
0
1
2
3
5

Related parts for AT45DB321-CC