M34E02
2 Kbit Serial I²C Bus EEPROM with permanent and reversible, software Write protection
Feature summary
Permanent and Reversible Software Data Protection for Lower 128 Bytes Two Wire I²C Serial Interface 400kHz Transfer Rate Very Low Voltage Operation: 1.7 to 3.6V Single Supply Voltage Byte and Page Write (up to 16 Bytes) Self-Timed Write Cycle Noise filtering Schmitt trigger on bus inputs Noise filter on bus inputs Automatic Address Incrementing Enhanced ESD/Latch-Up Protection More than 1 Million Erase/Write Cycles More than 40 Years' Data Retention Packages ECOPACK (RoHS compliant) TSSOP8 (DW) 4.4x3mm² UFDFPN8 (MB) 2x3mm² (MLP)
April 2006
Rev 6
1/33
www.st.com 1
Contents
M34E02
Contents
1 Summary description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Internal device reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2
Signal description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 2.2 2.3 2.4 Serial Clock (SCL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Serial Data (SDA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Chip Enable (E0, E1, E2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Write Control (WC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
Device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 3.2 3.3 3.4 3.5 3.6 Star t Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Stop Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Acknowledge Bit (ACK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Data Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Memory addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Setting the write-protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6.1 3.6.2 SWP and CWP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 PSWP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7
Write Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.1 3.7.2 3.7.3 Byte Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Page Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Minimizing system delays by polling on ACK . . . . . . . . . . . . . . . . . . . . . 17
3.8
Read operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.8.1 3.8.2 3.8.3 3.8.4 Random Address Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Current Address Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Sequential Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Acknowledge in Read mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4 5
Initial delivery state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Use within a DDR2 DIMM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1 Programming the M34E02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.1 DDR2 DIMM isolated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2/33
M34E02 5.1.2
Contents DDR2 DIMM inserted in the application mother board . . . . . . . . . . . . . 21
6 7 8 9 10
Maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 DC and AC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Package mechanical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3/33
List of tables
M34E02
List of tables
Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Signal names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Device Select Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 DRAM DIMM Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Acknowledge when writing data or defining the write-protection (instructions with R/W bit=0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Acknowledge when reading the write protection (instructions with R/W bit=1). . . . . . . . . . 22 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 AC measurement conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Input parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 DC characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 UFDFPN8 (MLP8) 8-lead Ultra thin Fine pitch Dual Flat Package No lead 2x3mm², package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 TSSOP8 8 lead Thin Shrink Small Outline, Package Mechanical Data. . . . . . . . . . . . . . 30 Ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4/33
M34E02
List of figures
List of figures
Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Logic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 TSSOP and MLP connections (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Device Select Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Maximum RP value versus bus parasitic capacitance (C) for an I2C bus . . . . . . . . . . . . . . 10 I2C bus protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Result of setting the write protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Setting the write protection (WC = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Write mode sequences in a non write-protected area . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Write cycle polling flowchart using ACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Read mode sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Serial presence detect block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 AC measurement I/O waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 AC waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 UFDFPN8 (MLP8) 8-lead Ultra thin Fine pitch Dual Flat Package No lead 2x3mm², package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 TSSOP8 8 lead Thin Shrink Small Outline, package outline . . . . . . . . . . . . . . . . . . . . . . 30
5/33
Summary description
M34E02
1
Summary description
The M34E02 is a 2 Kbit serial EEPROM memory able to lock permanently the data in its first half (from location 00h to 7Fh). This facility has been designed specifically for use in DRAM DIMMs (dual interline memory modules) with Serial Presence Detect. All the information concerning the DRAM module configuration (such as its access speed, its size, its organization) can be kept write protected in the first half of the memory. The first half of the memory area can be write-protected using two different software write protection mechanisms. By sending the device a specific sequence, the first 128 bytes of the memory become write protected: permanently or resetable. In addition, the device allows the entire memory area to be write protected, using the WC input (for example by tieing this input to VCC). These I2C-compatible electrically erasable programmable memory (EEPROM) devices are organized as 256x8 bits. I2C uses a two wire serial interface, comprising a bi-directional data line and a clock line. The device carries a built-in 4-bit Device Type Identifier code (1010) in accordance with the I2C bus definition to access the memory area and a second Device Type Identifier Code (0110) to define the protection. These codes are used together with the voltage level applied on the three chip enable inputs (E2, E1, E0). The device behaves as a slave device in the I2C protocol, 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), terminated by an acknowledge bit. When writing data to the memory, the memory inserts an acknowledge bit during the 9th bit time, following the bus master's 8-bit transmission. When data is read by the bus master, the bus master acknowledges the receipt of the data byte in the same way. Data transfers are terminated by a STOP condition after an Ack for WRITE, and after a NoAck for READ. In order to meet environmental requirements, ST offers these devices in ECOPACK packages. ECOPACK packages are Lead-free and RoHS compliant. ECOPACK is an ST trademark. ECOPACK specifications are available at: www.st.com.
6/33
M34E02 Figure 1. Logic diagram
VCC
Summary description
3 E0-E2 SCL WC M34E02 SDA
VSS
AI09020
Figure 2.
TSSOP and MLP connections (top view)
M34E02 E0 E1 E2 VSS 1 2 3 4 8 7 6 5
AI09021
VCC WC SCL SDA
1. See the Package mechanical section for package dimensions, and how to identify pin-1.
Table 1.
E0, E1, E2 SDA SCL WC VCC VSS
Signal names
Chip Enable Serial Data Serial Clock Write Control Supply Voltage Ground
7/33
Summary description
M34E02
1.1
Internal device reset
In order to prevent inadvertent Write operations during Power-up, a Power On Reset (POR) circuit is included. At Power-up (phase during which VCC is lower than VCCmin but increases continuously), the device will not respond to any instruction until VCC has reached the Power On Reset threshold voltage (this threshold is lower than the minimum VCC operating voltage defined in the DC and AC parameters tables). Once VCC has passed the POR threshold, the device is reset. Prior to selecting the memory and issuing instructions, a valid and stable VCC voltage must be applied. This voltage must remain stable and valid until the end of the transmission of the instruction and, for a Write instruction, until the completion of the internal write cycle (tW). At Power-down (phase during which VCC decreases continuously), as soon as VCC drops from the normal operating voltage below the Power On Reset threshold voltage, the device stops responding to any instruction sent to it.
8/33
M34E02
Signal description
2
2.1
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 can be connected from Serial Clock (SCL) to VCC. (Figure 4 indicates how the value of the pull-up resistor can be calculated). In most applications, though, this method of synchronization is not employed, and so the pullup resistor is not necessary, provided that the bus master has a push-pull (rather than open drain) output.
2.2
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 VCC. (Figure 4 indicates how the value of the pull-up resistor can be calculated).
2.3
Chip Enable (E0, E1, E2)
These input signals are used to set the value that is to be looked for on the three least significant bits (b3, b2, b1) of the 7-bit Device Select Code. In the end application, E0, E1 and E2 must be directly (not through a pull-up or pull-down resistor) connected to VCC or VSS to establish the Device Select Code. When these inputs are not connected, an internal pull-down circuitry makes (E0,E1,E2) = (0,0,0). The E0 input is used to detect the VHV voltage, when decoding an SWP or CWP instruction. Figure 3. Device Select Code
VCC VCC
M34E02 Ei
M34E02 Ei
VSS
VSS
Ai12301
2.4
Write Control (WC)
This input signal is provided for protecting the contents of the whole memory from inadvertent write operations. Write Control (WC) is used to enable (when driven Low) or disable (when driven High) write instructions to the entire memory area or to the Protection Register. When Write Control (WC) is tied Low or left unconnected, the write protection of the first half of the memory is determined by the status of the Protection Register.
9/33
Signal description Figure 4.
20 16 RP SDA MASTER fc = 100kHz fc = 400kHz SCL
M34E02 Maximum RP value versus bus parasitic capacitance (C) for an I2C bus
VCC
Maximum RP value (k)
RP
12 8 4 0 10 100 C (pF) 1000
C
C
AI01665b
Figure 5.
I2C bus protocol
SCL
SDA SDA Input SDA Change
START Condition
STOP Condition
SCL
1
2
3
7
8
9
SDA
MSB
ACK
START Condition
SCL
1
2
3
7
8
9
SDA
MSB
ACK
STOP Condition
AI00792B
10/33
M34E02 Table 2. Device Select Code
Chip Enable Signals Memory Area Select Code (two arrays)(2) Set Write Protection (SWP) Clear Write Protection (CWP) Permanently Set Write Protection (PSWP)(2) Read SWP Read CWP Read PSWP(2) E2 VSS VSS E2 VSS VSS E2 E1 VSS VCC E1 VSS VCC E1 E0 VHV VHV E0 VHV VHV E0 0 1 1 0 Device Type Identifier b7(1) 1 b6 0 b5 1 b4 0
Signal description
Chip Enable Bits b3 E2 0 0 E2 0 0 E2 b2 E1 0 1 E1 0 1 E1 b1 E0 1 1 E0 1 1 E0
RW b0 RW 0 0 0 1 1 1
1. The most significant bit, b7, is sent first. 2. E0, E1 and E2 are compared against the respective external pins on the memory device.
11/33
Device operation
M34E02
3
Device operation
The device supports the I2C protocol. This is summarized in Figure 5 Any device that sends data on to the bus is defined to be a transmitter, and 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, which will also provide the serial clock for synchronization. The memory device is always a slave in all communication.
3.1
Start Condition
Star t 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 device continuously monitors (except during a Write cycle) Serial Data (SDA) and Serial Clock (SCL) for a Start condition, and will not respond unless one is given.
3.2
Stop Condition
Stop is identified by a rising edge 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 condition to force the device into the Standby mode. A Stop condition at the end of a Write command triggers the internal EEPROM Write cycle.
3.3
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 9th clock pulse period, the receiver pulls Serial Data (SDA) Low to acknowledge the receipt of the eight data bits.
3.4
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 driven Low.
12/33
M34E02
Device operation
3.5
Memory addressing
To start communication between the bus master and the slave device, the bus master must initiate a Start condition. Following this, the bus master sends the Device Select Code, shown in Table 2 (on Serial Data (SDA), most significant bit first). The Device Select Code consists of a 4-bit Device Type Identifier, and a 3-bit Chip Enable "Address" (E2, E1, E0). To address the memory array, the 4-bit Device Type Identifier is 1010b; to access the write-protection settings, it is 0110b. Up to eight memory devices can be connected on a single I2C bus. Each one is given a unique 3-bit code on the Chip Enable (E0, E1, E2) inputs. When the Device Select Code is received, the device only responds if the Chip Enable Address is the same as the value on the Chip Enable (E0, E1, E2) inputs. The 8th bit is the Read/Write bit (RW). This bit is set to 1 for Read and 0 for Write operations. If a match occurs on the Device Select code, the corresponding device gives an acknowledgment on Serial Data (SDA) during the 9th bit time. If the device does not match the Device Select code, it deselects itself from the bus, and goes into Standby mode. Table 3. Operating modes
Mode Current Address Read Random Address Read 1 Sequential Read Byte Write Page Write
1. X = VIH or VIL.
RW bit 1 0
WC(1) X X
Bytes 1 1
Initial Sequence START, Device Select, RW = 1 START, Device Select, RW = 0, Address reSTART, Device Select, RW = 1
X X VIL VIL 1 1 16
1 0 0
Similar to Current or Random Address Read START, Device Select, RW = 0 START, Device Select, RW = 0
Figure 6.
Result of setting the write protection
FFh Standard Array Memory Area Standard Array 00h Default EEPROM memory area state before write access to the Protect Register 80h 7Fh Standard Array Write Protected Array
FFh
80h 7Fh
00h
State of the EEPROM memory area after write access to the Protect Register
AI01936C
13/33
Device operation
M34E02
3.6
Setting the write-protection
The M34E02 has a hardware write-protection feature, using the Write Control (WC) signal. This signal can be driven High or Low, and must be held constant for the whole instruction sequence. When Write Control (WC) is held High, the whole memory array (addresses 00h to FFh) is write protected. When Write Control (WC) is held Low, the write protection of the memory array is dependent on whether software write-protection has been set. Software write-protection allows the bottom half of the memory area (addresses 00h to 7Fh) to be write protected irrespective of subsequent states of the Write Control (WC) signal. Software write-protection is handled by three instructions:
SWP: Set Write Protection CWP: Clear Write Protection PSWP: Permanently Set Write Protection
The level of write-protection (set or cleared) that has been defined using these instructions, remains defined even after a power cycle.
3.6.1
SWP and CWP
If the software write-protection has been set with the SWP instruction, it can be cleared again with a CWP instruction. The two instructions (SWP and CWP) have the same format as a Byte Write instruction, but with a different Device Type Identifier (as shown in Table 2). Like the Byte Write instruction, it is followed by an address byte and a data byte, but in this case the contents are all "Don't Care" (Figure 7). Another difference is that the voltage, VHV, must be applied on the E0 pin, and specific logical levels must be applied on the other two (E1 and E2, as shown in Table 2).
3.6.2
PSWP
If the software write-protection has been set with the PSWP instruction, the first 128 bytes of the memory are permanently write-protected. This write-protection cannot be cleared by any instruction, or by power-cycling the device, and regardless the state of Write Control (WC). Also, once the PSWP instruction has been successfully executed, the M34E02 no longer acknowledges any instruction (with a Device Type Identifier of 0110) to access the write-protection settings. Figure 7. Setting the write protection (WC = 0)
START BUS ACTIVITY MASTER SDA LINE BUS ACTIVITY ACK ACK ACK CONTROL BYTE WORD ADDRESS STOP
AI01935B
DATA
VALUE VALUE (DON'T CARE) (DON'T CARE)
14/33
M34E02
Device operation
3.7
Write Operations
Following a Start condition the bus master sends a Device Select Code with the RW bit reset to 0. The device acknowledges this, as shown in Figure 8, and waits for an address byte. The device responds to the address byte with an acknowledge bit, and then waits for the data byte. When the bus master generates a Stop condition immediately after the Ack bit (in the "10th bit" time slot), either at the end of a Byte Write or a Page Write, the internal memory Write cycle is triggered. A Stop condition at any other time slot does not trigger the internal Write cycle. During the internal Write cycle, Serial Data (SDA) and Serial Clock (SCL) are ignored, and the device does not respond to any requests.
3.7.1
Byte Write
After the Device Select Code and the address byte, the bus master sends one data byte. If the addressed location is hardware write-protected, the device replies to the data byte with NoAck, and the location is not modified. If, instead, the addressed location is not Writeprotected, the device replies with Ack. The bus master terminates the transfer by generating a Stop condition, as shown in Figure 8
3.7.2
Page Write
The Page Write mode allows up to 16 bytes to be written in a single Write cycle, provided that they are all located in the same page in the memory: that is, the most significant memory address bits are the same. If more bytes are sent than will fit up to the end of the page, a condition known as `roll-over' occurs. This should be avoided, as data starts to become overwritten in an implementation dependent way. The bus master sends from 1 to 16 bytes of data, each of which is acknowledged by the device if Write Control (WC) is Low. If the addressed location is hardware write-protected, the device replies to the data byte with NoAck, and the locations are not modified. After each byte is transferred, the internal byte address counter (the 4 least significant address bits only) is incremented. The transfer is terminated by the bus master generating a Stop condition.
15/33
Device operation Figure 8. Write mode sequences in a non write-protected area
ACK BYTE WRITE START DEV SEL R/W ACK PAGE WRITE START DEV SEL R/W ACK DATA IN N STOP ACK ACK DATA IN 1 ACK DATA IN STOP ACK
M34E02
BYTE ADDR
ACK DATA IN 2
BYTE ADDR
AI01941
Figure 9.
Write cycle polling flowchart using ACK
WRITE Cycle in Progress
START Condition DEVICE SELECT with RW = 0
NO First byte of instruction with RW = 0 already decoded by the device
ACK Returned YES
NO
Next Operation is Addressing the Memory
YES
ReSTART
Send Address and Receive ACK
STOP
NO
START Condition
YES
DATA for the WRITE Operation
DEVICE SELECT with RW = 1
Continue the WRITE Operation
Continue the Random READ Operation
AI01847C
16/33
M34E02
Device operation
3.7.3
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 (tw) is shown in Table 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. 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).
17/33
Device operation
M34E02
3.8
Read operations
Read operations are performed independently of whether hardware or software protection has been set. The device has an internal address counter which is incremented each time a byte is read.
3.8.1
Random Address Read
A dummy Write is first performed to load the address into this address counter (as shown 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 the contents of the addressed byte. The bus master must not acknowledge the byte, and terminates the transfer with a Stop condition.
3.8.2
Current Address Read
For the Current Address Read operation, following a Start condition, the bus master only sends a Device Select Code with the RW bit set to 1. The device acknowledges this, and outputs the byte addressed by the internal address counter. The counter is then incremented. The bus master terminates the transfer with a Stop condition, as shown in Figure 10, without acknowledging the byte.
3.8.3
Sequential Read
This operation can be used after a Current Address Read or a Random Address Read. The bus master does 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 addresses, 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.
3.8.4
Acknowledge in Read mode
For all Read commands, the device waits, after each byte read, for an acknowledgment during the 9th bit time. If the bus master does not drive Serial Data (SDA) Low during this time, the device terminates the data transfer and switches to its Standby mode.
18/33
M34E02 Figure 10. Read mode sequences
ACK CURRENT ADDRESS READ START DEV SEL R/W NO ACK DATA OUT STOP
Device operation
ACK RANDOM ADDRESS READ START DEV SEL * R/W
ACK DEV SEL * START
ACK
NO ACK DATA OUT
BYTE ADDR
R/W
ACK SEQUENTIAL CURRENT READ START DEV SEL R/W
ACK
ACK
NO ACK
DATA OUT 1
DATA OUT N STOP
ACK SEQUENTIAL RANDOM READ START DEV SEL * R/W
ACK DEV SEL * START
ACK
ACK
BYTE ADDR
DATA OUT 1 R/W
ACK
NO ACK
DATA OUT N STOP
AI01942
1. The seven most significant bits of the Device Select Code of a Random Read (in the 1st and 3rd bytes) must be identical.
STOP
19/33
Initial delivery state
M34E02
4
Initial delivery state
The device is delivered with all bits in the memory array set to `1' (each Byte contains FFh).
5
Use within a DDR2 DIMM
In the application, the M34E02 is soldered directly in the printed circuit module. The three Chip Enable inputs (E0, E1, E2) must be connected to VSS or VCC directly (that is without using a pull-up or pull-down resistor) through the DIMM socket (see Table 4). The pull-up resistors needed for normal behavior of the I2C bus are connected on the I2C bus of the mother-board (as shown in Figure 11). The Write Control (WC) of the M34E02 can be left unconnected. However, connecting it to VSS is recommended, to maintain full read and write access. Table 4. DRAM DIMM Connections
DIMM Position 0 1 2 3 4 5 6 7 E2 VSS VSS VSS VSS VCC VCC VCC VCC E1 VSS VSS VCC VCC VSS VSS VCC VCC E0 VSS VCC VSS VCC VSS VCC VSS VCC
5.1
Programming the M34E02
The situations in which the M34E02 is programmed can be considered under two headings:
when the DDR2 DIMM is isolated (not inserted on the PCB motherboard) when the DDR2 DIMM is inserted on the PCB motherboard
5.1.1
DDR2 DIMM isolated
With specific programming equipment, it is possible to define the M34E02 content, using Byte and Page Write instructions, and its write-protection using the SWP and CWP instructions. To issue the SWP and CWP instructions, the DDR2 DIMM must be inserted in the DDR2-specific slot where the E0 signal can be driven to VHV during the whole instruction. This programming step is mainly intended for use by DDR2 DIMM makers, whose end application manufacturers will want to clear this write-protection with the CWP on their own specific programming equipment, to modify the lower 128 Bytes, and finally to set permanently the write-protection with the PSWP instruction.
20/33
M34E02
Use within a DDR2 DIMM
5.1.2
DDR2 DIMM inserted in the application mother board
As the final application cannot drive the E0 pin to VHV, the only possible action is to freeze the write-protection with the PSWP instruction. Table 5 and Table 6 show how the Ack bits can be used to identify the write-protection status. Table 5. Acknowledge when writing data or defining the write-protection (instructions with R/W bit=0)
WC Input Level Instruction PSWP, SWP or CWP X Page or Byte Write in lower 128 Bytes SWP CWP 0 PSWP Page or Byte Write in lower 128 Bytes SWP 1 CWP PSWP Page or Byte Write 0 Not Protected 1 PSWP, SWP or CWP Page or Byte Write PSWP, SWP or CWP Page or Byte Write Ack NoAck Ack Ack Ack NoAck Ack Ack Ack Ack Ack Ack Ack Address Ack Data NoAck No No Yes Yes No No No No No Yes Yes No No Ack Address Ack Data Byte Ack Write Cycle (tW) No
Status
NoAck
Permanently protected
Not Not NoAck NoAck significant significant
Not Not NoAck NoAck significant significant Not significant Not significant Address Ack Ack Ack Not significant Not significant Data Ack Ack NoAck
Protected with SWP
Not Not NoAck NoAck significant significant Not significant Not significant Address Not significant Address Not significant Address Ack Ack Ack Ack Ack Ack Ack Not NoAck significant Not NoAck significant Data Not significant Data NoAck Ack Ack
Not NoAck significant Data NoAck
21/33
Use within a DDR2 DIMM Table 6.
Status Permanently protected Protected with SWP Not Protected
M34E02
Acknowledge when reading the write protection (instructions with R/W bit=1)
Instruction PSWP, SWP or CWP SWP CWP PSWP PSWP, SWP or CWP Ack NoAck NoAck Ack Ack Ack Address Not significant Not significant Not significant Not significant Not significant Ack NoAck NoAck NoAck NoAck NoAck Data byte Not significant Not significant Not significant Not significant Not significant Ack NoAck NoAck NoAck NoAck NoAck
22/33
M34E02 Figure 11. Serial presence detect block diagram
Use within a DDR2 DIMM
DIMM Position 7 E2 E1 VCC DIMM Position 6 E2 E1 E0 SCL SDA E0 SCL SDA
R = 4.7k
VCC DIMM Position 5 E2 E1
VSS
E0
SCL SDA
VCC VSS VCC DIMM Position 4 E2 VCC DIMM Position 3 E2 VSS DIMM Position 2 E2 E1 E0 SCL SDA E1 E0 VCC SCL SDA E1 E0 VSS SCL SDA
VSS VCC VSS DIMM Position 1 E2 VSS DIMM Position 0 E2 E1 E0 SCL SDA E1 E0 VCC SCL SDA
VSS SCL line SDA line
AI01937
From the motherboard I2C master controller
1. E0, E1 and E2 are wired at each DIMM socket in a binary sequence for a maximum of 8 devices. 2. Common clock and common data are shared across all the devices. 3. Pull-up resistors are required on all SDA and SCL bus lines (typically 4.7 k) because these lines are open drain when used as outputs.
23/33
Maximum rating
M34E02
6
Maximum rating
Stressing the device above the rating listed in the 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 above those indicated in the Operating sections of this specification is not implied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device reliability. Refer also to the STMicroelectronics SURE Program and other relevant quality documents. Table 7.
Symbol TSTG VIO VCC VESD Storage Temperature Input or Output range Supply Voltage Electrostatic Discharge Voltage (Human Body model)(1) E0 Others
Absolute maximum ratings
Parameter Min. 65 0.50 0.50 0.5 4000 Max. 150 10.0 6.5 6.5 4000 Unit C V V V
1. JEDEC Std JESD22-A114A (C1=100 pF, R1=1500 , R2=500 )
24/33
M34E02
DC and AC parameters
7
DC and AC parameters
This section summarizes the operating and measurement conditions, and the DC and AC characteristics of the device. The parameters in the DC and AC Characteristic tables that follow are derived from tests performed under the Measurement Conditions summarized in the relevant tables. Designers should check that the operating conditions in their circuit match the measurement conditions when relying on the quoted parameters. Table 8.
Symbol VCC TA Supply Voltage Ambient Operating Temperature
Operating conditions
Parameter Min. 1.7 0 Max. 3.6 70 Unit V C
Table 9.
Symbol CL
AC measurement conditions
Parameter Load Capacitance Input Rise and Fall Times Input Levels Input and Output Timing Reference Levels Min. 100 50 0.2VCC to 0.8VCC 0.3VCC to 0.7VCC Max. Unit pF ns V V
Figure 12. AC measurement I/O waveform
Input Levels 0.8VCC Input and Output Timing Reference Levels 0.7VCC 0.3VCC
AI00825B
0.2VCC
25/33
DC and AC parameters Table 10.
Symbol CIN CIN ZEiL ZEiH ZWCL ZWCH tNS
M34E02 Input parameters
Parameter(1)(2) Test Condition Min. Max. 8 6 VIN < 0.3VCC VIN > 0.7VCC VIN < 0.3VCC VIN > 0.7VCC 30 800 5 500 200 Unit pF pF k k k k ns
Input Capacitance (SDA) Input Capacitance (other pins) Ei (E0, E1, E2) Input Impedance Ei (E0, E1, E2) Input Impedance WC Input Impedance WC Input Impedance Pulse width ignored (Input Filter on SCL and SDA)
1. TA = 25 C, f = 400 kHz 2. Sampled only, not 100% tested.
Table 11.
Symbol ILI ILO
DC characteristics
Parameter Input Leakage Current (SCL, SDA) Output Leakage Current Test Condition (in addition to those in Table 8) VIN = VSS or VCC VOUT = VSS or VCC, SDA in Hi-Z VCC=1.7V, fc=100kHz (rise/fall time < 30ns) Min(1) Max(1) 2 2 1 2 2 1 0.45 0.7VCC VHV VCC 4.8V IOL = 2.1mA, 2.2V VCC 3.6V IOL = 0.7mA, VCC = 1.7V 7 0.3 VCC VCC+1 10 0.4 0.2 Unit A A mA mA A A V V V V V
ICC
Supply Current VCC=3.6V, fc=100kHz (rise/fall time < 30ns) Standby Supply Current Input Low Voltage (SCL, SDA, WC) Input High Voltage (SCL, SDA, WC) E0 High Voltage Output Low Voltage VIN = VSS or VCC, VCC = 3.6V VIN = VSS or VCC, VCC = 1.7V
ICC1 VIL VIH VHV VOL
1. Preliminary Data.
26/33
M34E02 Table 12. AC characteristics
DC and AC parameters
Test conditions specified in Table 9 and Table 8 Symbol fC tCHCL tCLCH tDL1DL2(1) tDXCX tCLDX tCLQX tCLQV(2) tCHDX(3) tDLCL tCHDH tDHDL tW Alt. fSCL tHIGH tLOW tF Clock Frequency Clock Pulse Width High Clock Pulse Width Low SDA Fall Time 600 1300 20 100 0 200 200 600 600 600 1300 10 900 300 Parameter Min. Max. 400 Unit kHz ns ns ns ns ns ns ns ns ns ns ns ms
tSU:DAT Data In Set Up Time tHD:DAT Data In Hold Time tDH tAA Data Out Hold Time Clock Low to Next Data Valid (Access Time)
tSU:STA Star t Condition Set Up Time tHD:STA Star t Condition Hold Time tSU:STO Stop Condition Set Up Time tBUF tWR Time between Stop Condition and Next Start Condition Write Time
1. Sampled only, not 100% tested. 2. To avoid spurious START and STOP conditions, a minimum delay is placed between SCL=1 and the falling or rising edge of SDA. 3. For a reSTART condition, or following a Write cycle.
27/33
DC and AC parameters Figure 13. AC waveforms
tCHCL tCLCH
M34E02
SCL tDLCL SDA In tCHDX START Condition SDA Input tCLDX SDA tDXCX Change tCHDH tDHDL START STOP Condition Condition
SCL
SDA In tCHDH STOP Condition tW Write Cycle tCHDX START Condition
SCL tCLQV SDA Out Data Valid
AI00795C
tCLQX
28/33
M34E02
Package mechanical
8
Package mechanical
Figure 14. UFDFPN8 (MLP8) 8-lead Ultra thin Fine pitch Dual Flat Package No lead 2x3mm², package outline
D L3 e b L1
E
E2
L A D2 ddd A1
UFDFPN-01
1. Drawing is not to scale. 2. The central pad (the area E2 by D2 in the above illustration) is pulled, internally, to VSS. It must not be allowed to be connected to any other voltage or signal line on the PCB, for example during the soldering process. 3. The circle in the top view of the package indicates the position of pin 1.
Table 13.
UFDFPN8 (MLP8) 8-lead Ultra thin Fine pitch Dual Flat Package No lead 2x3mm², package mechanical data
millimeters inches Max. 0.60 0.05 0.30 0.010 0.079 1.55 1.65 0.05 3.00 0.15 0.50 0.45 0.40 0.25 0.50 0.15 0.30 8 0.012 8 0.020 0.018 0.118 0.006 0.016 0.010 0.020 0.006 0.061 0.065 0.002 Typ. 0.022 Min. 0.020 0.000 0.008 Max. 0.024 0.002 0.012
Sym bol
Typ. A A1 b D D2 ddd E E2 e L L1 L3 N (number of pins) 0.25 2.00 0.55
Min. 0.50 0.00 0.20
29/33
Package mechanical Figure 15. TSSOP8 8 lead Thin Shrink Small Outline, package outline
M34E02
D
8
5
c
E1 E
1
4
A1 A CP b e A2
L L1
TSSOP8AM
1. Drawing is not to scale. 2. The circle around the number 1 in the top view of the package indicates the position of pin 1. The numbers 4, 5 and 8 indicate the positions of pins 4, 5 and 8, respectively.
Table 14.
Symbol
TSSOP8 8 lead Thin Shrink Small Outline, Package Mechanical Data
millimeters Typ. Min. Max. 1.200 0.050 1.000 0.800 0.190 0.090 0.150 1.050 0.300 0.200 0.100 3.000 0.650 6.400 4.400 0.600 1.000 0 8 8 2.900 6.200 4.300 0.450 3.100 6.600 4.500 0.750 0.1181 0.0256 0.2520 0.1732 0.0236 0.0394 0 8 8 0.1142 0.2441 0.1693 0.0177 0.0394 0.0020 0.0315 0.0075 0.0035 Typ. inches Min. Max. 0.0472 0.0059 0.0413 0.0118 0.0079 0.0039 0.1220 0.2598 0.1772 0.0295
A A1 A2 b c CP D e E E1 L L1 N
30/33
M34E02
Part numbering
9
Part numbering
Table 15.
Example:
Ordering information scheme
M34E02 F DW 1 T P
Device Type M34 = ASSP I2C serial access EEPROM
Device Function E02 = 2 Kbit (256 x 8) SPD (Serial Presence Detect) for DDR2
Operating Voltage F = VCC = 1.7 to 3.6V
Package MB = UDFDFPN8 (MLP8) DW = TSSOP8 (4.4x3mm² body size)
Temperature Range 1 = 0 to 70 C
Option blank = Standard Packing T = Tape & Reel Packing
Plating Technology blank = Standard SnPb plating P or G = RoHS compliant
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. The category of second-Level Interconnect is marked on the package and on the inner box label, in compliance with JEDEC Standard JESD97. The maximum ratings related to soldering conditions are also marked on the inner box label.
31/33
Revision history
M34E02
10
Revision history
Table 16.
Date 13-Nov-2003 01-Dec-2003
Document revision history
Revision 1.0 1.1 First release TSSOP8 4.4x3 package replaces TSSOP8 3x3 (MSOP8) package. Correction to sentence in "Setting the Write Protection". Correction to specification of tNS values. Always NoACK after Address and Data bytes in Table 6. Improvement in VIO and VCC (min) in Absolute Maximum Ratings table. IOL changed for test condition of VOL. MLP package mechanical data respecified. Soldering temperature information clarified for RoHS compliant devices. First public release Direct connection of E0, E1, E2 to VSS and VCC (see Chip Enable (E0, E1, E2) and Use within a DDR2 DIMM paragraphs). ZEiL and ZEiH parameters added to Table 10: Input parameters. E0, E1, E2 removed from the Parameter descriptions of VIL and VIH in Table 11: DC characteristics. Document status promoted from Product Preview to full Datasheet. Datasheet title changed. Feature summary revised. Plating Technology options updated in Table 15: Ordering information scheme. Resistance and capacitance renamed in Figure 4: Maximum RP value versus bus parasitic capacitance (C) for an I2C bus. Text in Power On Reset changed. Noise filter value in Table 10: Input parameters modified. ICC value 2mA, when Vcc=3/6V, added to Table 11: DC characteristics. In Table 12: AC characteristics: Frequency fC changed from 100kHz to 400kHz, related AC timings (tCHCL, tCLCH, tDXCX, tCLQV max, tCHDX, tDLCL, tCHDH, tDHDL) also modified. Power On Reset paragraph removed replaced by Internal device reset. Figure 3: Device Select Code inserted. ICC1 modified in Table 11: DC characteristics. Note 3 added to Figure 14 and Note 2 added to Figure 15 All packages are ECOPACK (see text added under Summary description and Part numbering, TLEAD removed from Table 7: Absolute maximum ratings). Changes
29-Mar-2004
1.2
14-Apr-2004
2.0
24-Nov-2004
3.0
11-Mar-2005
4.0
28 -Apr-2005
5.0
10-Apr-2006
6
32/33
M34E02
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST's terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST'S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS, WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
2006 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com
33/33
|