256/128 Kbit Serial I C Bus EEPROM Without Chip Enable Lines
256/128 Kbit Serial I C Bus EEPROM Without Chip Enable Lines
256/128 Kbit Serial I C Bus EEPROM Without Chip Enable Lines
M24128
256/128 Kbit Serial I²C Bus EEPROM
Without Chip Enable Lines
PRELIMINARY DATA
VSS Ground
M24256 M24256
M24128 M24128
NC 1 8 VCC NC 1 8 VCC
NC 2 7 WC NC 2 7 WC
NC 3 6 SCL NC 3 6 SCL
VSS 4 5 SDA VSS 4 5 SDA
AI01883 AI01884
The memory behaves as a slave device in the I2C held active until the V CC voltage has reached the
protocol, with all memory operations synchronized POR threshold value, and all operations are dis-
by the serial clock. Read and Write operations are abled – the device will not respond to any com-
initiated by a START condition, generated by the mand. In the same way, when VCC drops from the
bus master. The START condition is followed by a operating voltage, below the POR threshold value,
Device Select Code and RW bit (as described in all operations are disabled and the device will not
Table 3), terminated by an acknowledge bit. respond to any command. A stable and valid V CC
When writing data to the memory, the memory in- must be applied before applying any logic signal.
serts an acknowledge bit during the 9th bit time,
following the bus master’s 8-bit transmission. SIGNAL DESCRIPTION
When data is read by the bus master, the bus Serial Clock (SCL)
master acknowledges the receipt of the data byte The SCL input pin is used to strobe all data in and
in the same way. Data transfers are terminated by out of the memory. In applications where this line
a STOP condition after an Ack for WRITE, and af- is used by slaves to synchronize the bus to a slow-
ter a NoAck for READ. er clock, the master must have an open drain out-
Power On Reset: V CC Lock-Out Write Protect put, and a pull-up resistor must be connected from
In order to prevent data corruption and inadvertent the SCL line to V CC. (Figure 3 indicates how the
write operations during power up, a Power On Re- value of the pull-up resistor can be calculated). In
set (POR) circuit is included. The internal reset is most applications, though, this method of synchro-
nization is not employed, and so the pull-up resis-
2/16
M24256, M24128
tor is not necessary, provided that the master has device is always a slave device in all communica-
a push-pull (rather than open drain) output. tion.
Serial Data (SDA) Start Condition
The SDA pin is bi-directional, and is used to trans- START is identified by a high to low transition of
fer data in or out of the memory. It is an open drain the SDA line while the clock, SCL, is stable in the
output that may be wire-OR’ed with other open high state. A START condition must precede any
drain or open collector signals on the bus. A pull data transfer command. The memory device con-
up resistor must be connected from the SDA bus tinuously monitors (except during a programming
to VCC. (Figure 3 indicates how the value of the cycle) the SDA and SCL lines for a START condi-
pull-up resistor can be calculated). tion, and will not respond unless one is given.
Write Control (WC) Stop Condition
The hardware Write Control pin (WC) is useful for STOP is identified by a low to high transition of the
protecting the entire contents of the memory from SDA line while the clock SCL is stable in the high
inadvertent erase/write. The Write Control signal is state. A STOP condition terminates communica-
used to enable (WC=VIL) or disable (WC=V IH) tion between the memory device and the bus mas-
write instructions to the entire memory area. When ter. A STOP condition at the end of a Read
unconnected, the WC input is internally read as command, after (and only after) a NoAck, forces
VIL, and write operations are allowed. the memory device into its standby state. A STOP
When WC=1, Device Select and Address bytes condition at the end of a Write command triggers
are acknowledged, Data bytes are not acknowl- the internal EEPROM write cycle.
edged. Acknowledge Bit (ACK)
Please see the Application Note AN404 for a more An acknowledge signal is used to indicate a suc-
detailed description of the Write Control feature. cessful byte transfer. The bus transmitter, whether
it be master or slave, releases the SDA bus after
DEVICE OPERATION sending eight bits of data. During the 9th clock
The memory device supports the I2C protocol. pulse period, the receiver pulls the SDA bus low to
This is summarized in Figure 4, and is compared acknowledge the receipt of the eight data bits.
with other serial bus protocols in Application Note Data Input
AN1001. Any device that sends data on to the bus During data input, the memory device samples the
is defined to be a transmitter, and any device that SDA bus signal on the rising edge of the clock,
reads the data to be a receiver. The device that SCL. For correct device operation, the SDA signal
controls the data transfer is known as the master, must be stable during the clock low-to-high transi-
and the other as the slave. A data transfer can only tion, and the data must change only when the SCL
be initiated by the master, which will also provide line is low.
the serial clock for synchronization. The memory
Figure 3. Maximum R L Value versus Bus Capacitance (CBUS) for an I2C Bus
VCC
20
Maximum RP value (kΩ)
16
RL RL
12
SDA
8 MASTER CBUS
fc = 100kHz SCL
4
fc = 400kHz CBUS
0
10 100 1000
CBUS (pF)
AI01665
3/16
M24256, M24128
SCL
SDA
SCL 1 2 3 7 8 9
START
CONDITION
SCL 1 2 3 7 8 9
STOP
CONDITION
AI00792
4/16
M24256, M24128
later. A communication between the master and the byte in memory. Bit b15 is treated as a Don’t
the slave is ended with a STOP condition. Care bit on the M24256 memory. Bits b15 and b14
Each data byte in the memory has a 16-bit (two are treated as Don’t Care bits on the M24128
byte wide) address. The Most Significant Byte (Ta- memory.
ble 5) is sent first, followed by the Least significant
Byte (Table 6). Bits b15 to b0 form the address of
WC
STOP
R/W
WC
PAGE WRITE DEV SEL BYTE ADDR BYTE ADDR DATA IN 1 DATA IN 2
START
R/W
WC (cont'd)
NO ACK NO ACK
AI01120B
5/16
M24256, M24128
WC
START
STOP
R/W
WC
PAGE WRITE DEV SEL BYTE ADDR BYTE ADDR DATA IN 1 DATA IN 2
START
R/W
WC (cont'd)
ACK ACK
AI01106B
Table 5. Most Significant Byte condition until the end of the two address bytes)
b15 b14 b13 b12 b11 b10 b9 b8 will not modify the memory contents, and the ac-
Note: 1. b15 is treated as Don’t Care on the M24256 series.
companying data bytes will not be acknowledged,
b15 and b14 are Don’t Care on the M24128 series. as shown in Figure 5.
Byte Write
Table 6. Least Significant Byte In the Byte Write mode, after the Device Select
Code and the address bytes, the master sends
b7 b6 b5 b4 b3 b2 b1 b0
one data byte. If the addressed location is write
protected by the WC pin, the memory replies with
a NoAck, and the location is not modified. If, in-
Write Operations stead, the WC pin has been held at 0, as shown in
Following a START condition the master sends a Figure 6, the memory replies with an Ack. The
Device Select Code with the RW bit set to ’0’, as master terminates the transfer by generating a
shown in Table 4. The memory acknowledges this, STOP condition.
and waits for two address bytes. The memory re- Page Write
sponds to each address byte with an acknowledge The Page Write mode allows up to 64 bytes to be
bit, and then waits for the data byte. written in a single write cycle, provided that they
Writing to the memory may be inhibited if the WC are all located in the same ’row’ in the memory:
input pin is taken high. Any write command with that is the most significant memory address bits
WC=1 (during a period of time from the START (b14-b6 for the M24256 and b13-b6 for the
M24128) are the same. If more bytes are sent than
6/16
M24256, M24128
WRITE Cycle
in Progress
START Condition
DEVICE SELECT
with RW = 0
NO ACK
Returned
Next
NO Operation is YES
Addressing the
Memory
Send
Byte Address
ReSTART
STOP
Proceed Proceed
WRITE Operation Random Address
READ Operation
AI01847
will fit up to the end of the row, a condition known During the internal write cycle, the SDA input is
as ‘roll-over’ occurs. Data starts to become over- disabled internally, and the device does not re-
written (in a way not formally specified in this data spond to any requests.
sheet).
The master sends from one up to 64 bytes of data, Minimizing System Delays by Polling On ACK
each of which is acknowledged by the memory if
During the internal write cycle, the memory discon-
the WC pin is low. If the WC pin is high, the con-
tents of the addressed memory location are not nects itself from the bus, and copies the data from
its internal latches to the memory cells. The maxi-
modified, and each data byte is followed by a
mum write time (t w) is shown in Table 10, but the
NoAck. After each byte is transferred, the internal
byte address counter (the 6 least significant bits typical time is shorter. To make use of this, an Ack
only) is incremented. The transfer is terminated by polling sequence can be used by the master.
the master generating a STOP condition. The sequence, as shown in Figure 7, is:
When the master generates a STOP condition im- – Initial condition: a Write is in progress.
mediately after the Ack bit (in the “10th bit” time – Step 1: the master issues a START condition
slot), either at the end of a byte write or a page followed by a Device Select Code (the first byte
write, the internal memory write cycle is triggered. of the new instruction).
A STOP condition at any other time does not trig- – Step 2: if the memory is busy with the internal
ger the internal write cycle. write cycle, no Ack will be returned and the mas-
ter goes back to Step 1. If the memory has ter-
7/16
M24256, M24128
ACK NO ACK
CURRENT
ADDRESS DEV SEL DATA OUT
READ
START
STOP
R/W
START
STOP
R/W R/W
STOP
R/W
START
R/W R/W
ACK NO ACK
DATA OUT N
STOP
AI01105C
st th
Note: 1. The seven most significant bits of the Device Select Code of a Random Read (in the 1 and 4 bytes) must be identical.
minated the internal write cycle, it responds with the Device Select Code, with the RW bit set to ‘1’.
an Ack, indicating that the memory is ready to The memory acknowledges this, and outputs the
receive the second part of the next instruction contents of the addressed byte. The master must
(the first byte of this instruction having been sent not acknowledge the byte output, and terminates
during Step 1). the transfer with a STOP condition.
Read Operations Current Address Read
Read operations are performed independently of The device has an internal address counter which
the state of the WC pin. is incremented each time a byte is read. For the
Random Address Read Current Address Read mode, following a START
condition, the master sends a Device Select Code
A dummy write is performed to load the address
with the RW bit set to ‘1’. The memory acknowl-
into the address counter, as shown in Figure 8. edges this, and outputs the byte addressed by the
Then, without sending a STOP condition, the mas-
internal address counter. The counter is then in-
ter sends another START condition, and repeats
8/16
M24256, M24128
Table 7. DC Characteristics
(TA = –40 to 85 °C; VCC = 4.5 to 5.5 V or 2.5 to 5.5 V)
Symbol Parameter Test Condition Min. Max. Unit
Input Leakage Current
ILI 0 V ≤ VIN ≤ VCC ±2 µA
(SCL, SDA)
ILO Output Leakage Current 0 V ≤ VOUT ≤ VCC, SDA in Hi-Z ±2 µA
VCC=5V, fc=400kHz (rise/fall time < 30ns) 2 mA
ICC Supply Current
-W series: VCC =2.5V, fc=400kHz (rise/fall time < 30ns) 1 mA
9/16
M24256, M24128
tCLQV 3 tAA Clock Low to Data Out Valid 200 900 200 900 ns
tCLQX tDH Data Out Hold Time After Clock Low 200 200 ns
fC fSCL Clock Frequency 400 400 kHz
tW tWR Write Time 10 10 ms
Note: 1. For a reSTART condition, or following a write cycle.
2. Sampled only, not 100% tested.
3. To avoid spurious START and STOP conditions, a minimum delay is placed between SCL=1 and the falling or rising edge of SDA.
10/16
M24256, M24128
tCHCL tCLCH
SCL
SDA IN
SCL
tCLQV tCLQX
DATA OUTPUT
SCL
tW
SDA IN
tCHDH tCHDX
AI00795B
11/16
M24256, M24128
Example: M24256 – W MN 1 T
ORDERING INFORMATION
Devices are shipped from the factory with the
memory content set at all ‘1’s (FFh).
The notation used for the device number is as
shown in Table 11. 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 Office.
12/16
M24256, M24128
Table 12. PSDIP8 - 8 pin Plastic Skinny DIP, 0.25mm lead frame
mm inches
Symb.
Typ. Min. Max. Typ. Min. Max.
A 3.90 5.90 0.154 0.232
A1 0.49 – 0.019 –
A2 3.30 5.30 0.130 0.209
B 0.36 0.56 0.014 0.022
B1 1.15 1.65 0.045 0.065
C 0.20 0.36 0.008 0.014
D 9.20 9.90 0.362 0.390
E 7.62 – – 0.300 – –
E1 6.00 6.70 0.236 0.264
e1 2.54 – – 0.100 – –
eA 7.80 – 0.307 –
eB 10.00 0.394
L 3.00 3.80 0.118 0.150
N 8 8
A2 A
A1 L
B e1 C
B1 eA
D eB
E1 E
1
PSDIP-a
13/16
M24256, M24128
Table 13. SO8 - 8 lead Plastic Small Outline, 150 mils body width
mm inches
Symb.
Typ. Min. Max. Typ. Min. Max.
A 1.35 1.75 0.053 0.069
A1 0.10 0.25 0.004 0.010
B 0.33 0.51 0.013 0.020
C 0.19 0.25 0.007 0.010
D 4.80 5.00 0.189 0.197
E 3.80 4.00 0.150 0.157
e 1.27 – – 0.050 – –
H 5.80 6.20 0.228 0.244
h 0.25 0.50 0.010 0.020
L 0.40 0.90 0.016 0.035
α 0° 8° 0° 8°
N 8 8
CP 0.10 0.004
h x 45˚
A
C
B
e CP
E H
1
A1 α L
SO-a
14/16
M24256, M24128
Table 14. SO8 - 8 lead Plastic Small Outline, 200 mils body width
mm inches
Symb.
Typ. Min. Max. Typ. Min. Max.
A 2.03 0.080
A1 0.10 0.25 0.004 0.010
A2 1.78 0.070
B 0.35 0.45 0.014 0.018
C 0.20 – – 0.008 – –
D 5.15 5.35 0.203 0.211
E 5.20 5.40 0.205 0.213
e 1.27 – – 0.050 – –
H 7.70 8.10 0.303 0.319
L 0.50 0.80 0.020 0.031
α 0° 10° 0° 10°
N 8 8
CP 0.10 0.004
A2 A
C
B
e CP
E H
1
A1 α L
SO-b
15/16
M24256, M24128
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 implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.
© 1999 STMicroelectronics - All Rights Reserved
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners.
STMicroelectronics GROUP OF COMPANIES
Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain -
Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
16/16