10
1937J–DFLSH–9/05
AT45DB021B
Note: In Tables 2 and 3, an SCK mode designation of “Any” denotes any one of the four modes of operation (Inactive Clock Polarity
Low, Inactive Clock Polarity High, SPI Mode 0, or SPI Mode 3).
Table 5-4. Program and Erase Commands
Command SCK Mode Opcode
Buffer 1 Write Any 84H
Buffer 2 Write Any 87H
Buffer 1 to Main Memory Page Program with Built-in Erase Any 83H
Buffer 2 to Main Memory Page Program with Built-in Erase Any 86H
Buffer 1 to Main Memory Page Program without Built-in Erase Any 88H
Buffer 2 to Main Memory Page Program without Built-in Erase Any 89H
Page Erase Any 81H
Block Erase Any 50H
Main Memory Page Program through Buffer 1 Any 82H
Main Memory Page Program through Buffer 2 Any 85H
Table 5-5. Additional Commands
Command SCK Mode Opcode
Main Memory Page to Buffer 1 Transfer Any 53H
Main Memory Page to Buffer 2 Transfer Any 55H
Main Memory Page to Buffer 1 Compare Any 60H
Main Memory Page to Buffer 2 Compare Any 61H
Auto Page Rewrite through Buffer 1 Any 58H
Auto Page Rewrite through Buffer 2 Any 59H
11
1937J–DFLSH–9/05
AT45DB021B
Note: r = Reserved Bit
P = Page Address Bit
B = Byte/Buffer Address Bit
x = Don’t Care
Table 5-6. Detailed Bit-level Addressing Sequence
Opcode Opcode
Address Byte Address Byte Address Byte
Additional
Don’t Care
Bytes
Required
50H 01010000r r r r r PPPPPPPxxxxxxxxxxxx N/A
52H 01010010r r r r r PPPPPPPPPPBBBBBBBBB 4 Bytes
53H 01010011r r r r r PPPPPPPPPPxxxxxxxxx N/A
54H 01010100x x xxxxxxxxxxxxxBBBBBBBBB 1 Byte
55H 01010101r r r r r PPPPPPPPPPxxxxxxxxx N/A
56H 01010110x x xxxxxxxxxxxxxBBBBBBBBB 1 Byte
57H 01010111 N/A N/A N/A N/A
58H 01011000r r r r r PPPPPPPPPPxxxxxxxxx N/A
59H 01011001r r r r r PPPPPPPPPPxxxxxxxxx N/A
60H 01100000r r r r r PPPPPPPPPPxxxxxxxxx N/A
61H 01100001r r r r r PPPPPPPPPPxxxxxxxxx N/A
68H 01101000r r r r r PPPPPPPPPPBBBBBBBBB 4 Bytes
81H 10000001r r r r r PPPPPPPPPPxxxxxxxxx N/A
82H 10000010r r r r r PPPPPPPPPPBBBBBBBBB N/A
83H 10000011r r r r r PPPPPPPPPPxxxxxxxxx N/A
84H 10000100x x xxxxxxxxxxxxxBBBBBBBBB N/A
85H 10000101r r r r r PPPPPPPPPPBBBBBBBBB N/A
86H 10000110r r r r r PPPPPPPPPPxxxxxxxxx N/A
87H 10000111x x xxxxxxxxxxxxxBBBBBBBBB N/A
88H 10001000r r r r r PPPPPPPPPPxxxxxxxxx N/A
89H 10001001r r r r r PPPPPPPPPPxxxxxxxxx N/A
D2H 11010010r r r r r PPPPPPPPPPBBBBBBBBB 4 Bytes
D4H 11010100x x xxxxxxxxxxxxxBBBBBBBBB 1 Byte
D6H 11010110x x xxxxxxxxxxxxxBBBBBBBBB 1 Byte
D7H 11010111 N/A N/A N/A N/A
E8H 11101000r r r r r PPPPPPPPPPBBBBBBBBB 4 Bytes
R
eserve
d
Reserved
Reserved
R
eserve
d
R
eserve
d
PA
9
PA
8
PA
7
PA
6
PA
5
PA
4
PA
3
PA2
PA1
PA
0
BA
8
BA
7
BA
6
BA
5
BA
4
BA
3
BA
2
BA
1
BA0
12
1937J–DFLSH–9/05
AT45DB021B
5.5 Pin Descriptions
SERIAL INPUT (SI): The SI pin is an input-only pin and is used to shift data into the device. The
SI pin is used for all data input, including opcodes and address sequences.
SERIAL OUTPUT (SO): The SO pin is an output-only pin and is used to shift data out from the
device.
SERIAL CLOCK (SCK): The SCK pin is an input-only pin and is used to control the flow of data
to and from the DataFlash. Data is always clocked into the device on the rising edge of SCK and
clocked out of the device on the falling edge of SCK.
CHIP SELECT (CS
): The DataFlash is selected when the CS pin is low. When the device is not
selected, data will not be accepted on the SI pin, and the SO pin will remain in a high-impedance
state. A high-to-low transition on the CS
pin is required to start an operation, and a low-to-high
transition on the CS
pin is required to end an operation.
WRITE PROTECT: If the WP
pin is held low, the first 256 pages of the main memory cannot be
reprogrammed. The only way to reprogram the first 256 pages is to first drive the protect pin high
and then use the program commands previously mentioned. If this pin and feature are not uti-
lized it is recommended that the WP
pin be driven high externally.
RESET
: A low state on the reset pin (RESET) will terminate the operation in progress and reset
the internal state machine to an idle state. The device will remain in the reset condition as long
as a low level is present on the RESET
pin. Normal operation can resume once the RESET pin
is brought back to a high level.
The device incorporates an internal power-on reset circuit, so there are no restrictions on the
RESET
pin during power-on sequences. If this pin and feature are not utilized it is recommended
that the RESET
pin be driven high externally.
READY/BUSY
: This open-drain output pin will be driven low when the device is busy in an inter-
nally self-timed operation. This pin, which is normally in a high state (through a 1k external
pull-up resistor), will be pulled low during programming operations, compare operations, and
during page-to-buffer transfers.
The busy status indicates that the Flash memory array and one of the buffers cannot be
accessed; read and write operations to the other buffer can still be performed.
6. Power-on/Reset State
When power is first applied to the device, or when recovering from a reset condition, the device
will default to SPI Mode 3. In addition, the SO pin will be in a high-impedance state, and a high-
to-low transition on the CS
pin will be required to start a valid instruction. The SPI mode will be
automatically selected on every falling edge of CS
by sampling the inactive clock state. After
power is applied and V
CC
is at the minimum datasheet value, the system should wait 20 ms
before an operational mode is started.

AT45DB021B-SU

Mfr. #:
Manufacturer:
Description:
IC FLASH 2M SPI 20MHZ 8SOIC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union