2 block erase, Figure 8-1. byte program figure 8-2. page program, Sck cs si so – Rainbow Electronics AT25DF081 User Manual

Page 10

Advertising
background image

10

3674E–DFLASH–8/08

AT25DF081

Figure 8-1.

Byte Program

Figure 8-2.

Page Program

8.2

Block Erase

A block of 4K-, 32K-, or 64K-bytes can be erased (all bits set to the logical “1” state) in a single
operation by using one of three different opcodes for the Block Erase command. An opcode of
20h is used for a 4K-byte erase, an opcode of 52h is used for a 32K-byte erase, and an opcode
of D8h is used for a 64K-byte erase. Before a Block Erase command can be started, the Write
Enable command must have been previously issued to the device to set the WEL bit of the Sta-
tus Register to a logical “1” state.

To perform a Block Erase, the CS pin must first be asserted and the appropriate opcode (20h,
52h, or D8h) must be clocked into the device. After the opcode has been clocked in, the three
address bytes specifying an address within the 4K-, 32K-, or 64K-byte block to be erased must
be clocked in. Any additional data clocked into the device will be ignored. When the CS pin is
deasserted, the device will erase the appropriate block. The erasing of the block is internally
self-timed and should take place in a time of t

BLKE

.

Since the Block Erase command erases a region of bytes, the lower order address bits do not
need to be decoded by the device. Therefore, for a 4K-byte erase, address bits A11-A0 will be
ignored by the device and their values can be either a logical “1” or “0”. For a 32K-byte erase,
address bits A14-A0 will be ignored, and for a 64K-byte erase, address bits A15-A0 will be
ignored by the device. Despite the lower order address bits not being decoded by the device, the
complete three address bytes must still be clocked into the device before the CS pin is deas-
serted, and the CS pin must be deasserted on an even byte boundary (multiples of eight bits);
otherwise, the device will abort the operation and no erase operation will be performed.

SCK

CS

SI

SO

MSB

MSB

2

3

1

0

0

0

0

0

0

0

1

0

6

7

5

4

10 11

9

8

12

39

37 38

33

36

35

34

31 32

29 30

OPCODE

HIGH-IMPEDANCE

A

A

A

A

A

A

A

A

A

MSB

D

D

D

D

D

D

D

D

ADDRESS BITS A23-A0

DATA IN

SCK

CS

SI

SO

MSB

MSB

2

3

1

0

0

0

0

0

0

0

1

0

6

7

5

4

9

8

39

37 38

33

36

35

34

31 32

29 30

OPCODE

HIGH-IMPEDANCE

A

A

A

A

A

A

MSB

D

D

D

D

D

D

D

D

ADDRESS BITS A23-A0

DATA IN BYTE 1

MSB

D

D

D

D

D

D

D

D

DATA IN BYTE n

Advertising