2010-2011 Microchip Technology Inc. Preliminary DS22237C-page 13
25A512
2.5 Write Status Register Instruction
(WRSR)
The Write Status Register instruction (WRSR) allows the
user to write to the nonvolatile bits in the STATUS
register as shown in Table 2-2. The user is able to
select one of four levels of protection for the array by
writing to the appropriate bits in the STATUS register.
The array is divided up into four segments. The user
has the ability to write-protect none, one, two or all four
of the segments of the array. The partitioning is
controlled as shown in Table 2-3.
The Write-Protect Enable (WPEN) bit is a nonvolatile
bit that is available as an enable bit for the WP
pin. The
Write-Protect (WP
) pin and the Write-Protect Enable
(WPEN) bit in the STATUS register control the
programmable hardware write-protect feature. Hard-
ware write protection is enabled when WP
pin is low
and the WPEN bit is high. Hardware write protection is
disabled when either the WP
pin is high or the WPEN
bit is low. When the chip is hardware write-protected,
only writes to nonvolatile bits in the STATUS register
are disabled. See Table 2-4 for a matrix of functionality
on the WPEN bit.
See Figure 2-7 for the WRSR timing sequence.
TABLE 2-3: ARRAY PROTECTION
FIGURE 2-7: WRITE STATUS REGISTER TIMING SEQUENCE (WRSR)
BP1 BP0
Array Addresses
Write-Protected
Array Addresses
Unprotected
00
none All (Sectors 0, 1, 2 and 3)
(0000h-FFFFh)
01
Upper 1/4 (Sector 3)
(C000h-FFFFh)
Lower 3/4 (Sectors 0, 1 and 2)
(0000h-BFFFh)
10
Upper 1/2 (Sectors 2 and 3)
(8000h-FFFFh)
Lower 1/2 (Sectors 0 and 1)
(0000h-7FFFh)
11
All (Sectors 0, 1, 2 and 3)
(0000h-FFFFh)
none
SO
SI
CS
9101112131415
01000000
7654
210
Instruction Data to STATUS Register
High-Impedance
SCK
0 2345671
8
3
25A512
DS22237C-page 14 Preliminary 2010-2011 Microchip Technology Inc.
2.6 Data Protection
The following protection has been implemented to
prevent inadvertent writes to the array:
The write enable latch is reset on power-up
A write enable instruction must be issued to set
the write enable latch
After a byte write, page write or STATUS register
write, the write enable latch is reset
•CS
must be set high after the proper number of
clock cycles to start an internal write cycle
Access to the array during an internal write cycle
is ignored and programming is continued
2.7 Power-On State
The 25A512 powers on in the following state:
The device is in low-power Standby mode
(CS
= 1)
The write enable latch is reset
SO is in high-impedance state
A high-to-low-level transition on CS
is required to
enter active state
TABLE 2-4: WRITE-PROTECT FUNCTIONALITY MATRIX
WEL
(SR bit 1)
WPEN
(SR bit 7)
WP
(pin 3)
Protected Blocks Unprotected Blocks STATUS Register
0xx
Protected Protected Protected
10x
Protected Writable Writable
1
1
0 (low)
Protected Writable Protected
1
1
1 (high)
Protected Writable Writable
x = don’t care
2010-2011 Microchip Technology Inc. Preliminary DS22237C-page 15
25A512
2.8 PAGE ERASE
The PAGE ERASE instruction will erase all bits (FFh)
inside the given page. A Write Enable (WREN) instruc-
tion must be given prior to attempting a PAGE ERASE.
This is done by setting CS
low and then clocking out
the proper instruction into the 25A512. After all eight
bits of the instruction are transmitted, the CS must be
brought high to set the write enable latch.
The PAGE ERASE instruction is entered by driving CS
low, followed by the instruction code (Figure 2-8) and
two address bytes. Any address inside the page to be
erased is a valid address.
CS
must then be driven high after the last bit of the
address or the PAGE ERASE will not execute. Once
the CS is driven high the self-timed PAGE ERASE
cycle is started. The WIP bit in the STATUS register
can be read to determine when the PAGE ERASE cycle
is complete.
If a PAGE ERASE instruction is given to an address
that has been protected by the Block Protect bits (BP0,
BP1) then the sequence will be aborted and no erase
will occur.
FIGURE 2-8: PAGE ERASE SEQUENCE
SO
SI
SCK
CS
0 234567891011 2122231
0011011015 14 13 12
210
Instruction 16-bit Address
High-Impedance

25A512-I/P

Mfr. #:
Manufacturer:
Microchip Technology
Description:
EEPROM 512k 64K X 8 1.8V SER EE IND
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union