![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
this is information on a product in full production. september 2014 docid4578 rev 24 1/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 32-kbit serial i2c bus eeprom datasheet - production data features ? compatible with all i 2 c bus modes: ?1 mhz ? 400 khz ? 100 khz ? memory array: ? 32 kbit (4 kbytes) of eeprom ? page size: 32 bytes ? additional write lockable page (m24c32-d order codes) ? single supply voltage: ? 1.7 v to 5.5 v over ?40 c / +85 c ? 1.6 v to 5.5 v over ?20 c / +85 c ? write: ? byte write within 5 ms (10 ms when v cc = 1.6 v) ? page write within 5 ms (10 ms when v cc = 1.6 v) ? random and sequential read modes ? write protect of the whole memory array ? enhanced esd/latch-up protection ? more than 4 million write cycles ? more than 200-year data retention packages ? pdip8 ecopack1 ? ? so8 ecopack2 ? ? tssop8 ecopack2 ? ? ufdfpn8 ecopack2 ? ? ufdfpn5 ecopack2 ? pdip8 (bn) so8 (mn) 150 mil width tssop8 (dw) 169 mil width ufdfpn8 (mc) ufdfpn5 (mh) unsawn wafer www.st.com
contents m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 2/42 docid4578 rev 24 contents 1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 signal description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 serial clock (scl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 serial data (sda) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 chip enable (e2, e1, e0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4 write control (wc ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 v ss (ground) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6 supply voltage (v cc ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6.1 operating supply voltage (v cc ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6.2 power-up conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6.3 device reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6.4 power-down conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1 start condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 stop condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.3 data input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.4 acknowledge bit (ack) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.5 device addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5 instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5.1 write operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5.1.1 byte write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1.2 page write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.1.3 write identification page (m24c32-d only) . . . . . . . . . . . . . . . . . . . . . . 17 5.1.4 lock identification page (m24c32-d only) . . . . . . . . . . . . . . . . . . . . . . 17 5.1.5 ecc (error correction code) and write cycling . . . . . . . . . . . . . . . . . . 17 5.1.6 minimizing write delays by polling on ack . . . . . . . . . . . . . . . . . . . . . . 18 5.2 read operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.2.1 random address read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 docid4578 rev 24 3/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df contents 3 5.2.2 current address read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.2.3 sequential read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.2.4 read identification page (m24c32-d only) . . . . . . . . . . . . . . . . . . . . . . 20 5.2.5 read the lock status (m24c32-d only) . . . . . . . . . . . . . . . . . . . . . . . . . 21 6 initial delivery state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7 maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8 dc and ac parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 9 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 10 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 11 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 list of tables m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 4/42 docid4578 rev 24 list of tables table 1. signal names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 table 2. device select code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 3. most significant address byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4. least significant address byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 5. absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 6. operating conditions (voltage range w) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 7. operating conditions (voltage range r) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 8. operating conditions (voltage range f) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 9. operating conditions (voltage range x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 10. input parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 11. ac measurement conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 12. cycling performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 13. memory cell data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 14. dc characteristics (m24c32-w, device grade 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 15. dc characteristics (m24c32-r, device grade 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 16. dc characteristics (m24c32-f, device grade 6). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 17. dc characteristics (m24c32-x, devi ce grade 5). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 18. 400 khz ac characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 19. 1 mhz ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 20. ufdfpn5 (mlp5) ? package dime nsions (ufdfpn: ult ra thin fine pitch dual flat package, no lead) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 21. ufdfpn8 (mlp8) ? package dime nsions (ufdfpn: ult ra thin fine pitch dual flat package, no lead) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 22. tssop8 ? 8-lead thin shrink small outline, pa ckage mechanical data. . . . . . . . . . . . . . . . 35 table 23. so8n ? 8-lead plastic small outline, 150 mils body width, package data. . . . . . . . . . . . . . 36 table 24. pdip8 ? 8-pin plastic dip, 0.25 mm lead fram e, package mechanical data. . . . . . . . . . . . 37 table 25. packaged products ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 26. ordering information scheme (unsawn wafer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 27. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 docid4578 rev 24 5/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df list of figures 5 list of figures figure 1. logic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 2. 8-pin package connections, top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 3. ufdfpn5 package connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 4. chip enable inputs connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 5. block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 6. i 2 c bus protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 7. write mode sequences with wc = 0 (data write enabled) . . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 8. write mode sequences with wc = 1 (data write inhibited) . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 9. write cycle polling flowchart using ack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 figure 10. read mode sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 11. ac measurement i/o wa veform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 12. maximum r bus value versus bus parasitic capacitance (c bus ) for an i 2 c bus at maximum frequency f c = 400 khz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 13. maximum r bus value versus bus parasitic capacitance c bus ) for an i 2 c bus at maximum frequency f c = 1mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 14. ac waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 15. ufdfpn5 (mlp5) ? package outline (ufdfpn: ultra thin fine pitch dual flat package, no lead) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 16. ufdfpn8 (mlp8) ? package outline (ufdfpn: ultra thin fine pitch dual flat package, no lead) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 17. tssop8 ? 8-lead thin shrink small outline, pa ckage outline . . . . . . . . . . . . . . . . . . . . . . . 35 figure 18. so8n ? 8-lead plastic small outline, 150 mils body width, package outline . . . . . . . . . . . . 36 figure 19. pdip8 ? 8-pin plastic dip, 0.25 mm lead frame, package outline . . . . . . . . . . . . . . . . . . . 37 description m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 6/42 docid4578 rev 24 1 description the m24c32 is a 32-kbit i 2 c-compatible eeprom (electri cally erasable programmable memory) organized as 4 k 8 bits. the m24c32-w can operate with a supply voltage from 2.5 v to 5.5 v, the m24c32-r can operate with a supply voltage from 1.8 v to 5.5 v, and the m24c32-f and m24c32-df can operate with a supply voltage from 1.7 v to 5.5 v, over an ambient temperature range of -40 c / +85 c; while the m24c32-x can operate with a supply voltage from 1.6 v to 5.5 v over an ambient temperature range of -20 c / +85 c. the m24c32-d offers an additional page, named the identification page (32 bytes). the identification page can be used to store se nsitive application parameters which can be (later) permanently locked in read-only mode. figure 1. logic diagram table 1. signal names signal name function direction e2, e1, e0 chip enable input sda serial data i/o scl serial clock input wc write control input v cc supply voltage - v ss ground - ! ) f % % 3 $ ! 6 # # - x x x 7 # 3 # , 6 3 3 docid4578 rev 24 7/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df description 41 figure 2. 8-pin package connections, top view 1. see section 9: package mechanical data for package dimensions, and how to identify pin 1. figure 3. ufdfpn5 package connections 1. inputs e2, e1, e0 are not connected, therefore read as (000). please refer to section 2.3 for further explanations. 3 $ ! 6 3 3 3 # , 7 # % % 6 # # % ! ) f - 3 6 3 $ ! 3 # , 7 # 6 # # 6 3 3 6 3 3 4 o p v i e w m a r k i n g s i d e " o t t o m v i e w p a d s s i d e ! " # $ 8 9 : 7 signal description m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 8/42 docid4578 rev 24 2 signal description 2.1 serial clock (scl) the signal applied on the scl input is used to strobe the data available on sda(in) and to output the data on sda(out). 2.2 serial data (sda) sda is an input/output used to transfer data in or data out of the device. sda(out) 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 co nnected from serial data (sda) to v cc ( figure 12 indicates how to calculate the value of the pull-up resistor). 2.3 chip enable (e2, e1, e0) (e2,e1,e0) 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 (see table 2 ). these inputs must be tied to v cc or v ss , as shown in figure 4 . when not connected (left floating), these inputs are read as low (0). for the ufdfpn5 package, the (e2,e1,e0) inputs are not connected, therefore read as (0,0,0). figure 4. chip enab le inputs connection 2.4 write control (wc ) this input signal is useful for protecting the entire contents of the memory from inadvertent write operations. write operations are disa bled to the entire memory array when write control ( wc ) is driven high. write operations are enabled when write control ( wc ) is either driven low or left floating. when write control ( wc ) is driven high, device select and address bytes are acknowledged, data bytes are not acknowledged. ai12806 v cc m24xxx v ss e i v cc m24xxx v ss e i docid4578 rev 24 9/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df signal description 41 2.5 v ss (ground) v ss is the reference for the v cc supply voltage. 2.6 supply voltage (v cc ) 2.6.1 operating supply voltage (v cc ) prior to selecting the memory and issuing instructions to it, a valid and stable v cc voltage within the specified [v cc (min), v cc (max)] range must be applied (see operating conditions in section 8: dc and ac parameters ) . in order to secure a stab le dc supply voltage, it is recommended to decouple the v cc line with a suitable capacitor (usually of the order of 10 nf to 100 nf) close to the v cc /v ss package pins. this voltage must remain stable and valid unt il the end of the transmission of the instruction and, for a write instructio n, until the completion of the internal write cycle (t w ). 2.6.2 power-up conditions the v cc voltage has to rise continuously from 0 v up to the minimum v cc operating voltage (see operating conditions in section 8: dc and ac parameters ) and the rise time must not vary faster than 1 v/s. 2.6.3 device reset in order to prevent inadvertent write operations during power-up, a power-on-reset (por) circuit is included. at power-up, the device does not re spond to any instruction until v cc has reached the internal reset threshold voltage. this threshold is lower than the minimum v cc operating voltage (see operating conditions in section 8: dc and ac parameters ). when v cc passes over the por threshold, the device is reset and enters the standby power mode; however, the device must not be accessed until v cc reaches a valid and stable dc voltage within the specified [v cc (min), v cc (max)] range (see operating conditions in section 8: dc and ac parameters ). in a similar way, during power-down (continuous decrease in v cc ), the device must not be accessed when v cc drops below v cc (min). when v cc drops below the internal reset threshold voltage, the device stops resp onding to any instruction sent to it. 2.6.4 power-down conditions during power-down (continuous decrease in v cc ), the device must be in the standby power mode (mode reached after decoding a stop condition, assuming that there is no internal write cycle in progress). memory organization m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 10/42 docid4578 rev 24 3 memory organization the memory is organized as shown below. figure 5. block diagram - 3 6 7 # # o n t r o l l o g i c ( i g h v o l t a g e g e n e r a t o r ) / s h i f t r e g i s t e r ! d d r e s s r e g i s t e r a n d c o u n t e r $ a t a r e g i s t e r p a g e 8 d e c o d e r 9 d e c o d e r ) d e n t i f i c a t i o n p a g e % % 3 # , 3 $ ! % docid4578 rev 24 11/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df device operation 41 4 device operation the device supports the i 2 c protocol. this is summarized in figure 6 . 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 dat a transfer can only be initia ted by the bus master, which will also provide the serial clock for synchronization. the device is always a slave in all communications. figure 6. i 2 c bus protocol 3 # , 3 $ ! 3 # , 3 $ ! 3 $ ! 3 4 ! 2 4 # o n d i t i o n 3 $ ! ) n p u t 3 $ ! # h a n g e ! ) " 3 4 / 0 # o n d i t i o n - 3 " ! # + 3 4 ! 2 4 # o n d i t i o n 3 # , - 3 " ! # + 3 4 / 0 # o n d i t i o n device operation m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 12/42 docid4578 rev 24 4.1 start condition start is identified by a falling edge of serial da ta (sda) while serial clock (scl) is stable in the high state. a start condition must prece de any data transfer instruction. the device continuously monitors (except during a writ e cycle) serial data (sda) and serial clock (scl) for a start condition. 4.2 stop condition stop is identified by a rising edge of serial da ta (sda) while serial clock (scl) is stable and driven high. a stop condition terminates communication between the device and the bus master. a read instruction that is followed by noack can be fo llowed by a stop condition to force the device into the standby mode. a stop condition at the end of a write instruction triggers the internal write cycle. 4.3 data input during data input, the device samples serial da ta (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. 4.4 acknowledge bit (ack) the acknowledge bit is used to indicate a succ essful byte transfer. the bus transmitter, whether it be bus master or slave device, releas es serial data (sda) after sending eight bits of data. during the 9 th clock pulse period, the receiver pulls serial data (sda) low to acknowledge the receipt of the eight data bits. docid4578 rev 24 13/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df device operation 41 4.5 device addressing to start communication between the bus master and the slave device, the bus master must initiate a start conditio n. following this, the bus master s ends the device select code, shown in table 2 (on serial data (sda), most significant bit first). when the device select code is received, the device only responds if the chip enable address is the same as the value on its chip enable e2,e1,e0 inputs. the 8 th bit is the read/ write bit (r w ). 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 9 th bit time. if the device does not match the device select code, the device deselects itself from the bus, and goes into standby mode. table 2. device select code device type identifier (1) 1. the most significant bit, b7, is sent first. chip enable address (2) 2. e0, e1 and e2 are compared with the value read on input pins e0, e1,and e2. rw b7 b6 b5 b4 b3 b2 b1 b0 device select code when addressing the memory array 1010e2e1e0rw device select code when accessing the identification page 1011e2e1e0rw instructions m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 14/42 docid4578 rev 24 5 instructions 5.1 write operations following a start condition the bus master sends a device select code with the r/ w bit (r w ) reset to 0. the device acknowledges this, as shown in figure 7 , and waits for two address bytes. the device responds to each address byte with an acknowledge bit, and then waits for the data byte. when the bus master generates a stop condit ion immediately after a data byte ack bit (in the ?10 th bit? time slot), either at the end of a byte write or a page write, the internal write cycle t w is triggered. a stop condition at any othe r time slot does not trigger the internal write cycle. after the stop condition and the successful completion of an internal write cycle (t w ), the device internal address counter is automatically incremented to point to the next byte after the last modified byte. during the internal write cycle, serial data (s da) is disabled internally, and the device does not respond to any requests. if the write control input (wc) is driven high, the write instruction is not executed and the accompanying data bytes are not acknowledged, as shown in figure 8 . table 3. most significant address byte a15 a14 a13 a12 a11 a10 a9 a8 table 4. least significant address byte a7 a6 a5 a4 a3 a2 a1 a0 docid4578 rev 24 15/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df instructions 41 5.1.1 byte write after the device select code and the address byte s, the bus master send s 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 condition, as shown in figure 7 . figure 7. write mode sequences with wc = 0 (data write enabled) 3 t o p 3 t a r t " y t e 7 r i t e $ e v s e l " y t e a d d r " y t e a d d r $ a t a i n 7 # 3 t a r t 0 a g e 7 r i t e $ e v s e l " y t e a d d r " y t e a d d r $ a t a i n 7 # $ a t a i n ! ) d 0 a g e 7 r i t e c o n t g d 7 # c o n t g d 3 t o p $ a t a i n . ! # + 2 7 ! # + ! # + ! # + ! # + ! # + ! # + ! # + 2 7 ! # + ! # + instructions m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 16/42 docid4578 rev 24 5.1.2 page write the page write mode allows up to 32 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, b16-b5, ar e the same. if more bytes are se nt than will fit up to the end of the page, a ?roll-over? occurs, i.e. the by tes exceeding the page end are written on the same page, from location 0. the bus master sends from 1 to 32 bytes of data, each of which is acknowledged by the device if write control ( wc ) is low. if write control ( wc ) is high, the contents of the addressed memory location are not modified, an d each data byte is followed by a noack, as shown in figure 8 . after each transferred byte, the internal page address counter is incremented. the transfer is terminated by the bu s master generating a stop condition. figure 8. write mode sequences with wc = 1 (data write inhibited) 3 t o p 3 t a r t " y t e 7 r i t e $ e v s e l " y t e a d d r " y t e a d d r $ a t a i n 7 # 3 t a r t 0 a g e 7 r i t e $ e v s e l " y t e a d d r " y t e a d d r $ a t a i n 7 # $ a t a i n ! ) d 0 a g e 7 r i t e c o n t g d 7 # c o n t g d 3 t o p $ a t a i n . ! # + ! # + ! # + . / ! # + 2 7 ! # + ! # + ! # + . / ! # + 2 7 . / ! # + . / ! # + docid4578 rev 24 17/42 m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df instructions 41 5.1.3 write identificati on page (m24c32-d only) the identification page (32 bytes) is an additional page which can be written and (later) permanently locked in read-only mode. it is writ ten by issuing the write identification page instruction. this instruction us es the same protocol and format as page write (into memory array), except for the following differences: ? device type identifier = 1011b ? msb address bits a15/a5 are don't care except for address bit a10 which must be ?0?. lsb address bits a4/a0 define the byte address inside the identification page. if the identification page is locked, the data bytes transferred during the write identification page instruction are not acknowledged (noack). 5.1.4 lock identificati on page (m24c32-d only) the lock identification page instruction (lock id) permanently locks the identification page in read-only mode. the lock id instruction is si milar to byte write (into memory array) with the following specific conditions: ? device type identifier = 1011b ? address bit a10 must be ?1?; all other address bits are don't care ? the data byte must be equal to the binary value xxxx xx1x, where x is don't care 5.1.5 ecc (error correction code) and write cycling the ecc is offered only in devices identified with process letter k, all other devices (identified with a different process letter) do not embed the ecc logic. the error correction code (ecc) is an internal logic function which is transparent for the i 2 c communication protocol. the ecc logic is implemented on each group of four eeprom bytes (1) . inside a group, if a single bit out of the four bytes happens to be erroneous during a read operation, the ecc detects this bit and replaces it with the correct value. the read reliability is therefore much improved. even if the ecc function is performed on group s of four bytes, a single byte can be written/cycled independently. in this case, th e ecc function also writes/cycles the three other bytes located in the same group (1) . as a consequence, the maximum cycling budget is defined at group level and the cycling can be di stributed over the 4 bytes of the group: the sum of the cycles seen by byte0, byte1, byte2 and byte3 of the same group must remain below the maximum value defined table 12: cycling performance . 1. a group of four bytes is located at addresses [4 *n, 4*n+1, 4*n+2, 4*n+3], where n is an integer. instructions m24c32-w m24c32-r m24c32-f m24c32-x m24c32-df 18/42 docid4578 rev 24 5.1.6 minimizing write delays by polling on ack the maximum write time (t w ) is shown in ac characteristics tables in section 8: dc and ac parameters , but the typical time is shorter. to ma ke 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 condi tion followed by a device select code (the first byte of the new instruction). ? step 2: if the device is bu sy with the internal write cycl e, no ack will be returned and the bus master goes back to step 1. if t he device has terminated the internal write cycle, it responds with an ack, indicating th at the device is ready to receive the second part of the instruction (the first byte of this instruction having been sent during step 1). figure 9. write cycle polling flowchart using ack 1. the seven most significant bits of the device se lect code of a random read (bottom right box in the figure) must be identical to the seven most significant bi ts of the device select code of the write (polling instruction in the figure). t?]? ?o ]v ??}p??? $ , h e?? k???]}v ]? ???]vp ?z uu}?? ^??? }v]?]}v ] ?o? ]?z z t a < ???v z ^ e k z ^ e k z ^??? ^?}? ? (}? ?z t?]? ???]}v ' h y l f h v h o h f w z l w k 5 : ^v ??? v z] < z ^ e k 6 w d u w & |