CAT24S128
www.onsemi.com
6
Write Operations
Byte Write
In Byte W rite mode the Master sends a START, followed
by Slave address, two byte address (Table 8) and data to be
written (Figure 7). The Slave, CAT24S128 acknowledges
all 4 bytes, and the Master then follows up with a STOP,
which in turn starts the internal Write operation (Figure 8).
During the internal Write cycle (tWR), the CAT24S128 will
not acknowledge any Read or Write request from the Master.
Page Write
The CAT24S128 contains 16,384 bytes of data, arranged
in 256 pages of 64 bytes each. A two byte address word
(Table 8), following the Slave address, points to the first
byte to be written into the memory array. The most
significant 8 bits from the address active bits (a13 to a6)
identify the page and the last 6 bits (a5 to a0) identify the byte
within the page. Up to 64 bytes can be written in one Write
cycle (Figure 9). The internal byte address counter is
automatically incremented after each data byte is loaded. If
the Master transmits more than 64 data bytes, then earlier
bytes will be overwritten by later bytes in a ‘wrap−around’
fashion (within the selected page). The internal Write cycle
starts immediately following the STOP.
Acknowledge Polling
The ready/busy status of the CAT24S128 can be
ascertained by sending Read or Write requests immediately
following the STOP condition that initiated the internal
Write cycle. As long as internal Write is in progress, the
CAT24S128 will not acknowledge the Slave address.
Software Write Protection
The user can select to write-protect partial or full memory
array by writing a specific data into the Write Protect
Register (WPR). The WPR is located outside of the 16K
bytes memory addressing space, at address 1xxx xxx x xxxx
xxxx.
The software write protect control bits from the Write
Protect Register are shown in Table 9. The write protect
control bits, b0 to b3 are non-volatile.
The WPEN (Write Protect Enable) bit enables the write
protection when it is set to “1”. When the WPEN bit is “0”,
the whole memory array can be written.
The BP0 and BP1 (Block Protect) bits determine which
area is write protected. The user can select to protect a
quarter, one half, three quarters or the entire memory by
setting these bits according to Table 10. The protected
blocks then become read-only.
The least significant bit from the Write Protect Register,
WPL allows the user to lock the write protection status.
When the WPL bit is set to “1” the control bits, b0 to b3 from
WPR cannot be modified. Therefore the protected blocks
can be permanently protected. If WPL bit is “0” the status of
control bits from the WPR can be changed.
The CAT24S128 will not acknowledge the data byte and
the write request will be rejected for the addresses located in
the protected area.
NOTE: Once the WPL bit is set to “1”, the user can no
longer modify the WPR bits, therefore the write
protection status is permanently locked.
Table 8. BYTE ADDRESS
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
Memory
Array 0 x a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0
Write
Protect
Register
1 x x x x x x x x x x x x x x x
Table 9. WRITE PROTECT REGISTER
b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 0 WPEN BP1 BP0 WPL
Table 10. BLOCK PROTECTION
BP1 BP0 Array Address Protected Protection
0 0 3000 - 3FFF Upper Quarter Protection
0 1 2000 - 3FFF Upper Half Protection
1 0 1000 - 3FFF Upper 3/4 Array Protection
1 1 0000 - 3FFF Full Array Protection