with 1 Inverting and 2 Non-Inverting Chip Enable Lines
M24164
16 Kbit Serial I²C Bus EEPROM
FEATURES SUMMARY
■ Two Wire I
Supports 400 kHz Protocol
■ Single Supply Voltage:
– 4.5V to 5.5V for M24164
– 2.5V to 5.5V for M24164-W
■ Write Control Input
■ BYTE and PAGE WRITE (up to 16 Bytes)
■ RANDOM and SEQUENTIAL READ Modes
■ Self-Tim e d P rogramming Cycle
■ Automatic Address Incrementing
■ Enhanced ESD/Latch-Up Behavior
■ More than 1 Million Erase/Write Cycles
■ More than 40 Year Data Retention
2
C Serial Interface
Figure 1. Packages
8
1
PDIP8 (BN)
0.25 mm frame
8
1
SO8 (MN)
150 mil width
1/21October 2001
M24164
SUMMARY DESCRIPTION
The M24164 is a 16 Kbit (2048 x 8) electrically
erasable programmable memory (EEPROM ) accessed by an I
Figure 2. Logic Diagram
2
C-compatible bus .
following the bus master’s 8-bit transmission.
When data is read by the bus master, the bus
master acknowledges the receipt of t he data b yte
in the same way. Data transfers are terminated by
a Stop condition after an Ack for Write, and after a
NoAck for Read.
V
CC
3
E0-E2SDA
SCL
WC
M24164
V
SS
Table 1. Signal Names
E0, E1, E2Chip Enable
SDASerial Data
SCLSerial Clock
WC
V
CC
V
SS
Write Control
Supply Voltage
Ground
AI02264
Figure 3. DIP Connections
M24164
1
E0V
2
3
E2
4
SS
AI02265B
Figure 4. SO Connection s
M24164
E0V
E2
SS
1
2
3
4
AI02266B
8
CC
7
WCE1
6
SCL
5
SDAV
8
CC
7
WCE1
6
SCL
5
SDAV
These devices are com pat ible with a two-wire serial interface that uses a bi-directional data bus
and serial clock. By setting the three chip enables
(E0, E1
vices can be attached to the s ame I
, E2) appropriately, up to eigh t 16 K bit de-
2
C bus, and
selected individually.
These devices behave as sla ve devices, with all
memory operations synchronized by the serial
clock. Read and Write operations are initiated by a
Start condition, generated by the bus master. The
Start condition is followed by a Device Select
Code and RW
bit (as described in Table 2), termi-
nated by an acknowledge bit.
When writing data to the memory, the device in-
serts an acknowledge bit during the 9
2/21
th
bit time,
Power On Reset: V
Lock-Out Write Protect
CC
In order to prevent data corruption and inadvertent
Write operations during Power-up, a Power On
Reset (POR) circuit is included. The internal reset
is held active until V
has reached the POR
CC
threshold value, and all operations are disabled –
the device will not respond to any command. In the
same way, when V
drops from the operating
CC
voltage, below the POR threshold value, all operations are disabled and the device will not respond
to any command. A stable and valid V
must be
CC
applied before applying any logic signal.
SIGNAL DESCRIPTION
Serial Clock (SCL)
This input signal is used to strobe all data in and
out of the device. In applications where this signal
is used by slave devices to synchronize the bus to
a slower clock, the bus master must have an open
drain output, and a pull-up resistor must be connected from Serial Clock (SCL) to V
. (Figure 4
CC
indicates how the value of the pull-up resist or can
be calculated). In most applications, thoug h, this
method of synchronization is no t employed, and
so the pull-up resistor is not necessary, provided
that the bus maste r has a push-pull (rather than
open drain) output.
Serial Data (SDA)
This bi-directional signal is used to transfer data in
or out of the device. It is an open drain output that
may be wire-OR’ed with other open drain or open
collector signals on the bus. A pull up resistor must
be connected from Serial Data (SDA) to V
CC
. (Fig-
M24164
ure 4 indicates how the value of the pull-up resistor
can be calculated).
Chip Enable (E0, E1
These input signals are used to set the value that
is to be looked for on three bits (b6, b5, b4) of the
7-bit Device Select Code. These inputs must be
tied to V
or VSS, to establish the Device Select
CC
Code.
Write Control (WC
This input signal is useful for protecting the entire
contents of the memory from inadvertent write operations. Write operations are disabled to the entire memory array when Write Control (WC
driven High. When unconnected, the signal is internally read as V
lowed.
When Write Control (WC
Select and Address bytes are acknowledged,
Data bytes are not acknowledged.
, E2)
)
, and Write operations are al-
IL
) is driven High, Device
) is
Figure 5. Maximum R
20
16
12
8
Maximum RP value (kΩ)
4
0
101000
Value versus Bus Capacitance (C
L
fc = 100kHz
fc = 400kHz
100
C
(pF)
BUS
) for an I2C Bus
BUS
MASTER
V
CC
R
SDA
SCL
R
C
BUS
L
C
BUS
AI01665
L
3/21
M24164
DEVICE OPERATION
2
The device supports the I
C proto col. This is su m marized in Figure 2. Any device that sends data on
to the bus is defined to be a transmitter, a nd any
device that reads the data to be a receiver. The
device that controls the data transfer is known as
the bus master, and the other as the slave device.
A data transfer can only be initiated by the bus
master, w h ic h will als o provid e t h e s e r i a l c lo c k f or
synchronization. The M24164 d evice is always a
slave in all communication.
Start Condition
Start is identified by a falling edge of Serial Data
(SDA) while Serial Clock (SCL) is stable in the
High state. A Start condition must precede any
data transfer command. The devi ce continuously
monitors (except duri ng a Write cycle ) Se ri a l Data
(SDA) and Serial Clock (SCL) for a Start condition,
and will not respond unless one is give n.
Stop Condition
Stop is identified by a rising edg e of Serial Data
(SDA) while Serial Clock (SCL) is stable and driven High. A Stop condition terminates communication between the device and the bus master. A
Read command that is followed by NoAck can be
followed by a Stop condi tion to force the device
into the Stand-by mode. A Stop condition at the
end of a Write command triggers the internal EEPROM Wr ite cyc le.
Acknowledge Bit (ACK)
The acknowledge bit is used to indicate a successful byte transfer. The bus transmitter, whether it be
bus master or slave device, releases Serial Data
(SDA) after sending eight bits of data. During the
th
clock pulse period, the receiver pulls Serial
9
Data (SDA) Low to acknowledge the receipt of the
eight data bits.
Data Input
During data input, the device samples Serial Data
(SDA) on the rising edge of Serial Clock (SCL).
For correct device operation, Serial Data (SDA)
must be stable during the rising edge of Serial
Clock (SCL), and the Serial Data (SDA) signal
must change
only
when Serial Clock (SCL) is driv-
en Low.
Memory Addressing
To start communication betwee n the bus master
and the slave device, the bus mas ter mus t initiate
a Start condition. Following this, t he bus master
sends eight bits, on Serial Data (SDA), most significant bit first. These consist of the 7-bit Device Select Code, and the Read/Write
bit (RW), as shown
in Table 2. This last bi t is set to 1 for Read, and 0
for Write operations.
The Device Select Code contains the three most
significant bits of the address within the memory
(A10, A9, A8), and a 3-bit Chip Ena ble “Add ress”
(E2, E1, E0).
When the Device Select Code is received on Serial Data (SDA), the device only responds if the Chip
Enable Address is the same as the value on the
Chip Enable (E0, E2, and the inverse of E1
) inputs. Up to eight devices can be connected on the
same bus, giving a total memory capacity of
128 K bi ts, 16 KBytes.
If a match occurs on the Device Select code , the
corresponding device gives an acknowledgment
on Serial Data (SDA) during the 9
th
bit time. If the
device does not match the Device Select code, it
deselects itself from the bus, and goes into Standby mode.
Table 2. Device Select Code
Device
Type
Identifier
b7b6b5b4b3b2b1b0
Device Select Code1E2E1E 0A10A9A8RW
Note: 1. The most si gnifican t bit, b7, is se nt first.
Figure 7. Wri te M ode Sequences with WC=1 (data wri te inhib ite d)
WC
ACKACKNO ACK
Byte WriteDEV SELBYTE ADDRDATA IN
R/W
START
WC
ACKACKNO ACKNO ACK
Page WriteDEV SELBYTE ADDR
R/W
START
WC (cont'd)
NO ACKNO ACK
Page Write
(cont'd)
DATA IN N
STOP
STOP
DATA IN 1DATA IN 2
DATA IN 3
AI02803C
Write Operations
Following a Start condition the bus master sends
a Device Select Code with the RW
bit rese t to 0 .
The device acknowledges this, as shown in Figure
8, and waits for an address byte. The de vice responds to the address byte with an acknowle dge
bit, and then waits for the data byte.
Writing to the memory may be inhibited if Write
Control (WC
with Write Control (WC
) is driven High. Any Write instruction
) driven High (during a period of time from the Start condition until the end of
the address byte) will not modify the memory contents, and the accompanying d ata bytes are
not
acknowledged, as shown in Figure 7.
When the bus mast er generates a Stop con dition
immediately after the Ack bi t (in t he “10
th
bit” time
slot), either at the end of a Byte Write or a Page
Write, the internal memory Write cycle is triggered.
6/21
A Stop condition at any other time slot does not
trigger the internal Write cycle.
During the internal Write cycle, Serial Da ta (SDA)
is disabled internally, and the devi ce does not respond to any requests.
Byte Write
After the Device Select code and the address byte,
the bus master sends one data byte. If the addressed location is Write-protected, by Write Control (WC
) being driven High, the device replies with
NoAck, and the location is not modified. If, instead,
the addressed location is not Write-protected, the
device replies with Ack. The bus master terminates the transfer by generating a Stop condit ion,
as shown in Figure 8.
Page Write
The Page Write mode allows u p to 16 by tes to be
written in a single Write cycle, provided that they
are all located in the same ’row’ in the memory:
M24164
that is, the most significant m emory address bits
are the same. If more bytes are sent than will fit up
to the end of the row, a condition known as ‘rollover’ occurs. This should be avoided, as data
starts to become overwritten in an implementation
dependent way.
The bus master sends fr om 1 to 16 bytes of data,
each of which is acknowledged by the device if
Figure 8. Wri te Mo de S e qu e nces with WC
WC
BYTE WRITEDEV SELBYTE ADDRDATA IN
R/W
START
WC
=0 (data write enabled)
ACK
ACKACKACKACK
Write Control (WC) is Low. If Write Control (WC) is
High, the contents of the addressed memory location are not modified, and each dat a byte is followed by a NoAck. After each byt e is transferred,
the internal byte address counte r (the 4 least s ignificant address bits only) is incremented. The
transfer is terminated by the bus master generating a Stop condition.
ACKACK
STOP
PAGE WRITEDEV SELBYTE ADDRDATA IN 1DATA IN 2
R/W
START
WC (cont'd)
ACKACK
PAGE WRITE
(cont'd)
DATA IN N
STOP
DATA IN 3
AI02804
7/21
M24164
Figure 9. Wri te Cy cle Pol l in g Fl owchart usin g A C K
WRITE Cycle
in Progress
START Condition
DEVICE SELECT
with RW = 0
ACK
NO
Returned
First byte of instruction
with RW = 0 already
decoded by the device
ReSTART
STOP
YES
Next
Operation is
Addressing the
Memory
DATA for the
WRITE Operation
Continue the
WRITE Operation
Minimizing System Delays by Polling On ACK
During the internal Write cycle, the device disconnects itself from the bus, and writes a copy of the
data from its internal latches to the memory cells.
The maximum Write time (t
) is shown in Tables
w
11 and 12, but the typical time is shorter. To make
use of this, a polling sequence can be used by the
bus master.
The sequence, as shown in Figure 9, is:
– Initial condition: a Write cycle is in progress.
YESNO
Send Address
and Receive ACK
START
Condition
YESNO
DEVICE SELECT
with RW = 1
Continue the
Random READ Operation
AI01847C
– Step 1: the bus master issues a Start condition
followed by a Device Select Code (the first byte
of the new instruction).
– Step 2: if the device is busy with the internal
Write cycle, no Ack will be returned and the bus
master goes back to Step 1. If the device has
terminated the internal Write cycle, it responds
with an Ack, indicating that the device is ready
to receive the second part of the instruction (the
first byte of this instruction having been sent
during Step 1).
8/21
Figure 10. Read Mode Sequences
M24164
CURRENT
ADDRESS
READ
RANDOM
ADDRESS
READ
SEQUENTIAL
CURRENT
READ
SEQUENTIAL
RANDOM
READ
ACK
DEV SELDATA OUT
R/W
START
ACK
DEV SEL *BYTE ADDR
R/W
START
ACKACKACKNO ACK
DEV SELDATA OUT 1
R/W
START
ACKACK
DEV SEL *BYTE ADDR
NO ACK
STOP
ACKACK
DEV SEL *DATA OUT
START
DEV SEL *DATA OUT 1
NO ACK
R/W
DATA OUT N
ACKACK
STOP
STOP
R/W
START
ACKNO ACK
DATA OUT N
STOP
Note: 1. The sev en m ost significant bits o f the Device Sel ect Code of a Random Read (in the 1st and 3rd bytes) must be identic al .
Read Operations
Read operations are performed independently of
the state of the Write Control (WC
) signal.
Random Address Read
A dummy Write is performed to load the address
into the address counter (as s hown in Figure 10 )
but
without
sending a Stop condition. Then, the
bus master sends another Start condition, and repeats the Device Select Code, with the RW
bit set
to 1. The device acknowledges this, and outputs
START
ter must
not
the transfer with a Stop condition.
Current Address Read
The device has an internal address counter which
is incremented each time a byte is read. For the
Current Address Read operation, following a Start
condition, the bus master only sends a Device Select Code with the RW
knowledges this, an d outpu ts the byt e address ed
by the internal address counter. The counter is
then incremented. The bus master t erm inates t he
R/W
AI01942
acknowledge the byte, and terminates
bit set to 1. The device ac-
the contents of the addressed byte. The bus mas-
9/21
M24164
transfer with a Stop condition, a s shown i n Figure
10,
without
acknowledging the byte.
Sequenti a l Rea d
This operation can be used after a Current Address Read or a Random Address Read. The bus
does
master
acknowledge the data byte output,
and sends additional clock pulses so that the device continues to output the next byte in sequence.
To terminate the stream of bytes, the bus master
must
not
acknowledge the last byte, and
must
generate a Stop condition, as shown in Figure 10.
The output data comes from consecutive address-
es, with the internal address counter automatically
incremented after each byte output. After the last
memory address, the address counter ‘rolls-over’,
and the device continues to output data from
memory address 00h.
Acknowledge in Read Mode
For all Read commands, the device waits, after
each byte read, for an acknowledgment during the
th
9
bit time. If the bus master does not drive Serial
Data (SDA) Low during this time, the device terminates the data transfer and s witches to its St andby mode.
10/21
MAXI MUM RATI N G
Stressing the device ab ove the rating listed in t he
Absolute Maximum Ratings" table may cause permanent damage to the device. These are stress
ratings only and operation of the device at these or
any other conditions ab ove those i ndicated in t he
plied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device
reliability. Refer also to the STMicroelectronics
SURE Program and ot her relevant quality documents.
Operating sections of this specificat ion is not im-
Table 4. Absolute Maximum Ratings
SymbolParameterMin.Max.Unit
T
STG
T
LEAD
V
IO
V
CC
V
ESDElectrostatic Discharge Voltage (Human Body model)
Note: 1. IPC/JEDEC J-STD-020 A
2. JE DEC Std JESD22-A114A (C1=100 pF, R1=1500 Ω, R2=500 Ω)
Storage Temperature–65150°C
Lead Temperature during Soldering
PDIP: 10 seconds
SO: 20 seconds (max)
1
260
235
Input or Output range–0.66.5V
Supply Voltage–0.36.5V
2
–40004000V
M24164
°C
11/21
M24164
DC AND AC PARAMETERS
This section summarizes the operat ing and measurement conditions, and the DC and AC characteristics of the device. The parameters in t he DC
and AC Characteristic tables that follow are derived from tests performed under the Measure-
Table 5. Operating Conditions (M24164)
SymbolParameterMin.Max.Unit
ment Conditions summarized in the relevant
tables. Designers should chec k th at the o perat ing
conditions in their circuit matc h the meas urement
conditions when relying on the quoted parameters.
BN = PDIP8 (0.25 mm frame)
MN = SO8 (150 mil width)
Temperature Range
1 = 0 to 70 °C
C serial access EEPROM
= 4.5 to 5.5V
CC
= 2.5 to 5.5V
CC
M24164
Option
T = Tape & Reel Packing
For a list of available options (speed, package,
etc.) or for further information on any aspect of this
device, please contact your nearest ST Sales O ffice.
19/21
M24164
REVISION HIST ORY
Table 14. Document Revision History
DateRev.Description of Revision
Jan-19991.0Document written
23-Oct-20012.0
Document reformatted.
-R voltage range taken out
20/21
M24164
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implic ation or otherwise under any patent or patent r i ght s of STMi croelectr oni cs. Spec i fications mentioned i n this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics product s are not
authorized for use as cri tical comp onents in lif e support devi ces or systems without express written approva l of STMicroe l ectronics.
The ST logo is registered trademark of STMicroelectronics
All other names are the propert y of their resp ective owne rs