2 reading the security register, Additional commands, 3 auto page rewrite – Rainbow Electronics AT45DB021D User Manual

Page 18

Advertising
background image

18

3638K–DFLASH–11/2012

AT45DB021D

8.2.2

Reading the Security Register

The Security Register can be read by first asserting the CS pin and then clocking in an opcode of 77H followed by
three dummy bytes. After the last don’t care bit has been clocked in, the content of the Security Register can be
clocked out on the SO pins. After the last byte of the Security Register has been read, additional pulses on the
SCK pin will simply result in undefined data being output on the SO pins.

Deasserting the CS pin will terminate the Read Security Register operation and put the SO pins into a high-
impedance state.

Figure 8-4.

Read Security Register

9.

Additional Commands

9.1

Main Memory Page to Buffer Transfer

A page of data can be transferred from the main memory to the buffer. To start the operation for the DataFlash
standard page size (264-bytes), a 1-byte opcode, 53H, must be clocked into the device, followed by three address
bytes comprised of five don’t care bits, 10 page address bits (PA9 - PA0), which specify the page in main memory
that is to be transferred, and 9 don’t care bits. To perform a main memory page to buffer transfer for the binary
page size (256-bytes), the opcode 53H must be clocked into the device followed by three address bytes consisting
of six don’t care bits, 10 page address bits (A17 - A8) which specify the page in the main memory that is to be
transferred, and eight don’t care bits. The CS pin must be low while toggling the SCK pin to load the opcode and
the address bytes from the input pin (SI). The transfer of the page of data from the main memory to the buffer will
begin when the CS pin transitions from a low to a high state. During the transfer of a page of data (t

XFR

), the status

register can be monitored to determine whether the transfer has been completed.

9.2

Main Memory Page to Buffer Compare

A page of data in main memory can be compared to the data in the buffer. To initiate the operation for the
DataFlash standard page size, a 1-byte opcode, 60H, must be clocked into the device, followed by three address
bytes consisting of five don’t care bits, 10 page address bits (PA9 - PA0) that specify the page in the main memory
that is to be compared to the buffer, and nine don’t care bits. To start a main memory page to buffer compare for a
binary page size, the opcode 60H must be clocked into the device followed by three address bytes consisting of six
don’t care bits, ten page address bits (A17 - A8) that specify the page in the main memory that is to be compared
to the buffer, and eight don’t care bits. The CS pin must be low while toggling the SCK pin to load the opcode and
the address bytes from the input pin (SI). On the low-to-high transition of the CS pin, the data bytes in the selected
main memory page will be compared with the data bytes in the buffer. During this time (t

COMP

), the status register

will indicate that the part is busy. On completion of the compare operation, bit 6 of the status register is updated
with the result of the compare.

9.3

Auto Page Rewrite

This mode is only needed if multiple bytes within a page or multiple pages of data are modified in a random fashion
within a sector. This mode is a combination of two operations: Main Memory Page to Buffer Transfer and Buffer to

Opcode

X

X

X

Data Byte

n

Data Byte

n + 1

CS

Data Byte

n + x

Each transition
represents 8 bits

SI

SO

Advertising