X1242 – Preliminary Information
Characteristics subject to change without notice.
11 of 24
REV 1.1.3 10/15/00
www.xicor.com
Figure 13. Byte Write Sequence
Figure 14. Writing
30
-bytes to a
64
-byte memory page starting at address
40
.
S
t
a
r
t
S
t
o
p
Slave
Address
Word
Address 1
Data
A
C
K
A
C
K
A
C
K
SDA Bus
Signals From
The Slave
Signals from
the Master
0
A
C
K
Word
Address 0
1
1
1
1
0 0 00 0
Address
63
Address
40
23 Bytes
7 Bytes
Address
= 6
Address Pointer
Ends Here
Addr =
7
A write to a protected block of memory is ignored, but
will still receive an acknowledge. At the end of the
write command, the X1242 will not initiate an internal
write cycle, and will continue to ACK commands.
Page Write
The X1242 has a page write operation. It is initiated in
the same manner as the byte write operation; but
instead of terminating the write cycle after the first
data byte is transferred, the master can transmit up to
63
more bytes to the memory array and up to 7 more
bytes to the clock/control registers. (
Note:
Prior to writ-
ing to the CCR, the master must write a 02h, then 06h
to the status register in two preceding operations to
enable the write operation. See “Writing to the Clock/
Control Registers” on page 6.)
After the receipt of each byte, the X1242 responds
with an acknowledge, and the address is internally
incremented by one. When the counter reaches the
end of the page, it “rolls over” and goes back to the
first address on the same page. This means that the
master can write 64 bytes to a memory array page or 8
bytes to a CCR section starting at any location on that
page. If the master begins writing at location 40 of the
memory and loads 30 bytes, then the first 23 bytes are
written to addresses 40 through 63, and the last 7
bytes are written to columns 0 through 6. Afterwards,
the address counter would point to location 7 on the
page that was just written. If the master supplies more
than the maximum bytes in a page, then the previously
loaded data is over written by the new data, one byte
at a time.
The master terminates the Data Byte loading by issu-
ing a stop condition, which causes the X1242 to begin
the nonvolatile write cycle. As with the byte write oper-
ation, all inputs are disabled until completion of the
internal write cycle. Refer to Figure 15 for the address,
acknowledge, and data transfer sequence.
Stops and Write Modes
Stop conditions that terminate write operations must
be sent by the master after sending at least 1 full data
byte and it’s associated ACK signal. If a stop is issued
in the middle of a data byte, or before 1 full data byte +
ACK is sent, then the X1242 resets itself without per-
forming the write. The contents of the array are not
affected.