
GT24C64
Giantec Semiconductor, Inc. www.giantec-semi.com
A0 7/20
5.9 Write Operation
5.9.1 Byte Write
In the Byte Write mode, the Master device sends the Start
condition and the Slave address information (with the R/W
set to Zero) to the Slave device. After the Slave generates
an ACK, the Master sends the byte address that is to be
written into the address pointer of the GT24C64. After
receiving another ACK from the Slave, the Master device
transmits the data byte to be written into the address
memory location. The GT24C64 acknowledges once more
and the Master generates the Stop condition, at which time
the device begins its internal programming cycle. While this
internal cycle is in progress, the device will not respond to
any request from the Master device.
5.9.2 Page Write
The GT24C64 is capable of 32-byte Page-Write operation.
A Page-Write is initiated in the same manner as a Byte
Write, but instead of terminating the internal Write cycle
after the first data word is transferred, the Master device
can transmit up to 31 more bytes. After the receipt of each
data word, the EEPROM responds immediately with an
ACK on SDA line, and the five lower order data word
address bits are internally incremented by one, while the
higher order bits of the data word address remain constant.
If a byte address is incremented from the last byte of a page,
it returns to the first byte of that page. If the Master device
should transmit more than 32 bytes prior to issuing the Stop
condition, the address counter will “roll over,” and the
previously written data will be overwritten. Once all 32 bytes
are received and the Stop condition has been sent by the
Master, the internal programming cycle begins. At this point,
all received data is written to the GT24C64 in a single Write
cycle. All inputs are disabled until completion of the internal
Write cycle.
5.9.3 Acknowledge (ACK) Polling
The disabling of the inputs can be used to take advantage
of the typical Write cycle time. Once the Stop condition is
issued to indicate the end of the host's Write operation, the
GT24C64 initiates the internal Write cycle. ACK polling can
be initiated immediately. This involves issuing the Start
condition followed by the Slave address for a Write
operation. If the EEPROM is still busy with the Write
operation, no ACK will be returned. If the GT24C64 has
completed the Write operation, an ACK will be returned and
the host can then proceed with the next Read or Write
operation.
5.10 Read Operation
Read operations are initiated in the same manner as Write
operations, except that the (R/W) bit of the Slave address is
set to “1”. There are three Read operation options: current
address read, random address read and sequential read.
5.10.1 Current Address Read
The GT24C64 contains an internal address counter which
maintains the address of the last byte accessed,
incremented by one. For example, if the previous operation
is either a Read or Write operation addressed to the
address location n, the internal address counter would
increment to address location n+1. When the EEPROM
receives the Slave Addressing Byte with a Read operation
(R/W bit set to “1”), it will respond an ACK and transmit the
8-bit data byte stored at address location n+1. The Master
should not acknowledge the transfer but should generate a
Stop condition so the GT24C64 discontinues transmission.
If 'n' is the last byte of the memory, the data from location '0'
will be transmitted. (Refer to Figure 5-8. Current Address
Read Diagram.)
5.10.2 Random Address Read
Selective Read operations allow the Master device to select
at random any memory location for a Read operation. The
Master device first performs a 'dummy' Write operation by
sending the Start condition, Slave address and byte
address of the location it wishes to read. After the GT24C64
acknowledges the byte address, the Master device resends
the Start condition and the Slave address, this time with the
R/W bit set to one. The EEPROM then responds with its
ACK and sends the data requested. The Master device
does not send an ACK but will generate a Stop condition.
(Refer to Figure 5-9. Random Address Read Diagram.)
5.10.3 Sequential Read
Sequential Reads can be initiated as either a Current