10 AT25HP256/512 1113I–SEEPR–6/03
READ SEQUENCE (READ): Reading the AT25HP256/512 via the SO (Serial Output)
pin requires the following sequence. After the CS line is pulled low to select a device,
the REA D op-c ode is trans m itted via the SI line followed by t he by te addres s to be read
( Refer to Tabl e 6). Upo n co mplet ion , any data o n the S I line will b e ign ore d. Th e dat a
(D7-D0) at the specified address is then shifted out onto the SO line. If o nly o ne b yte is
to be read, the CS line should be driven high a fter the d ata comes out. The READ
sequence can be continued since the byte address is automatically increment ed and
dat a will cont inue to be s hifted out. Wh en the hi ghes t addr ess is reac hed, t he add ress
coun ter will roll over to the lowest address allowing the en tire mem ory to be read in o ne
continuous READ cycle.
WRITE SEQ UEN CE (WRITE): In orde r to prog ram the AT2 5HP2 56/512, two se parat e
instructions must be executed. First, the device must be write enabled via the Write
En able (W REN) Instru ction . Then a W rite (WRI TE) Inst ruction m ay be ex ecuted . Also,
the address of the me mory location(s) to be programm ed mu st be outside the protected
address field location selected by the Block Write Protection Level. During an internal
write cycle, all commands will be ignored except the RDSR i nstruction.
A Write Inst ruction requires the following sequence. After the CS line is pulled low to
selec t the dev ice, t he WRI TE op-cod e is transm itte d via th e S I lin e f ollowed by th e by te
addre ss and the data (D7-D0 ) to be pr ogramme d (Refe r to T able 6). Pro grammi ng will
start a fter the CS pin is brought high. (The LOW to High transition of the CS pin m us t
occur during the SCK low time immediately after clocking in the D0 (LSB) data bit.
The READY/BUSY status of the devic e can be determined by initiating a READ STA-
TUS REGIST ER (RD SR) Instruction. If Bit 0 = 1, the WRITE cycle is still in progress. If
Bit 0 = 0, th e W RITE cycle has ended. Only the READ STATUS REGIST ER in struction
is enabled during the WR ITE programming cycle.
The A T2 5HP 256/512 is c apa ble of a 128-byte PA GE WR ITE operat ion. A fter each byt e
of data is received, the se ven low orde r address bits are internally increm ented by one;
the high order bits of the address will remain constant. If more than 128-bytes of data
are tran smitt ed, the address c ou nte r will roll over and the prev io usly written data wi ll be
ov erwritten. The A T25HP2 56/51 2 is auto matically ret urned to th e write disab le state at
the comp letion of a WRITE cycle.
NOTE: If the device is not Write enab led (WREN), the devi ce will ignore the W rite
instruction a nd wi ll return to the s tandby st ate, when CS is brought high. A new CS fall-
ing edge is required to re-initiate the serial communicat ion.
NOTE: 128-byte PAGE W RITE operation only. Cont ent of th e page in the array will not
be guaranteed if less than 128 bytes of data is received (byte write is not supported).
1 Low 1 Protected Writable Protected
X High 0 Protected Protected Protected
X High 1 Protected Writable Writable
Table 6. Address Key
Address AT25HP256/512
ANA14 - A0 / A15 - A0
Don’t Care Bits A15 / none
Table 5. WPEN Operation
WPEN WP WEN ProtectedBlocks UnprotectedBlocks Status Register