Part Number Hot Search : 
0A15M SB48U12 PT0815 TDA8771A NE350184 1206C 207SH3 MN65702H
Product Description
Full Text Search
 

To Download M24SR04-G Datasheet File

  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. february 2017 docid024754 rev 15 1/90 m24sr04-y M24SR04-G dynamic nfc/rfid tag ic with 4-kbit eeprom, nfc forum type 4 tag and i2c interface datasheet - production data features i 2 c interface ? two-wire i 2 c serial interface supports 1 mhz protocol ? single supply voltage: ? 2.7 v to 5.5 v for grade y ? 2.4 v to 5.5 v for grade g (1) contactless interface ? nfc forum type 4 tag ? iso/iec 14443 type a ? 106 kbps data rate ? internal tuning capacitance: 25 pf memory ? 512-byte (4-kbit) eeprom ? support of ndef data structure ? data retention: 200 years ? write cycle endurance: ? 1 million write cycles at 25 c ? 600k write cycles at 85 c ? read up to 246 bytes in a single command ? write up to 246 bytes in a single command ? 7 bytes unique identifier (uid) ? 128 bits passwords protection package ? 8-lead small-outline package (so8) ecopack2 ? ? tssop8 ecopack2 ? ? ufdfpn8 ecopack2 ? ? wfdfdn8 ecopack2 ?(2)(3) digital pad ? gpo: configurable general purpose output ? rf disable: activation/deactivation of rf commands temperature range ? from - 40 c up to 85 c description m24sr04 belongs to the st25 family which includes all stmicroelectronics nfc/rfid tag and reader products. the m24sr04 devices is a dynamic nfc/rfid tag ic with a dual interface. it embeds an eeprom memory. it can be operated from an i 2 c interface or by a 13.56 mhz rfid reader or an nfc phone. the i 2 c interface uses a two-wire serial interface, consisting of a bidirectional data line and a clock line. it behaves as a slave in the i 2 c protocol. the rf protocol is compatible with iso/iec 14443 type a and nfc forum type 4 tag. 1. limited temperature range -25 to 85 c so8 (mn) ufdfpn8 (mc) tssop8 (dw) wfdfpn8 (mf) wafer 2. preliminary data for automotive grade (under qualification). 3. package for automotive grade. www.st.com
contents m24sr04-y M24SR04-G 2/90 docid024754 rev 15 contents 1 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1 functional modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.1 i2c mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.2 tag mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.3 dual interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 signal descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1 serial clock (scl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2 serial data (sda) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3 antenna coil (ac0, ac1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.4 ground (vss) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5 supply voltage (v cc ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5.1 operating supply voltage v cc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5.2 power-up conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.5.3 device reset in i2c mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.5.4 power-down conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.6 rf disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.7 general purpose output (gpo) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.7.1 session open configuratio n (gpo field = 0xx1 or 0x1x) . . . . . . . . . . . 14 2.7.2 wip writing in progress configuratio n (gpo field = 0xx2 or 0x2x) . . . 15 2.7.3 i 2 c answer ready configuration (gpo field = 0xx3) . . . . . . . . . . . . . . . 16 2.7.4 mip ndef message writing in progress configuration (gpo field = 0x3x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.7.5 int interrupt configuratio n (gpo field = 0xx4 or 0x4x) . . . . . . . . . . . . 18 2.7.6 state control configuration (gpo field = 0xx5 or 0x5x) . . . . . . . . . . . . 19 2.7.7 rf busy configuration (gpo field = 0x6x) . . . . . . . . . . . . . . . . . . . . . . . 20 3 m24sr04 memory management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1 memory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1.1 file identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1.2 cc file layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1.3 ndef file layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.1.4 system file layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.2 read and write access rights to the memory . . . . . . . . . . . . . . . . . . . . . . 25
docid024754 rev 15 3/90 m24sr04-y M24SR04-G contents 5 3.2.1 state of the read and write access rights . . . . . . . . . . . . . . . . . . . . . . . 25 3.2.2 changing the read access right to ndef files . . . . . . . . . . . . . . . . . . . . 26 3.2.3 changing the write access right to ndef files . . . . . . . . . . . . . . . . . . . 27 3.3 access right life time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.4 ndef file passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.5 i2c password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.5.1 i2c password and i2c protect field of the system file . . . . . . . . . . . . . . . 28 4 communication mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.1 master and slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.2 m24sr04 session mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.2.1 rf token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.2.2 i 2 c token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5 i2c and rf command sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.1 structure of the command sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.2 i-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.2.1 c-apdu: payload format of a command . . . . . . . . . . . . . . . . . . . . . . . . 32 5.2.2 r-apdu: payload format of a response . . . . . . . . . . . . . . . . . . . . . . . . 33 5.3 r-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5.4 s-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.5 crc of the i2c and rf frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.6 nfc forum type 4 tag protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.6.1 commands set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.6.2 status and error codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.6.3 ndef tag application select command . . . . . . . . . . . . . . . . . . . . . . . . 38 5.6.4 capability container select command . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.6.5 ndef select command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.6.6 system file select command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.6.7 readbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 5.6.8 updatebinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.7 iso/iec 7816-4 commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.7.1 verify command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.7.2 change reference data command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.7.3 enable verification requirement command . . . . . . . . . . . . . . . . . . . . . . 45 5.7.4 disable verification requirement command . . . . . . . . . . . . . . . . . . . . . 46
contents m24sr04-y M24SR04-G 4/90 docid024754 rev 15 5.8 st proprietary command set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.8.1 extendedreadbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.8.2 enablepermanentstate command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 5.8.3 disablepermanentstate command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.8.4 updatefiletype command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 5.8.5 sendinterrupt command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5.8.6 statecontrol command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5.9 specific rf command set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 5.9.1 anticollision command set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 5.9.2 rats command and ats response . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 5.9.3 pps command & response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5.10 specific i2c command set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.10.1 geti2csession command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.10.2 killrfsession command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6 rf device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.1 anticollision and device activation command set for the rf interface . . 56 6.2 open an rfsession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.3 close an rfsession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.4 applicative command set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 7 i2c device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 7.1 i2c communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 7.2 start condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 7.3 stop condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 7.4 i2c token release sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 7.5 i2c timeout on clock period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.6 acknowledge bit (ack) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.7 data input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.8 i2c device address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.9 i2c frame format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.9.1 example of i2c frame commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.10 open an i2c session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 7.11 close the i2c session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
docid024754 rev 15 5/90 m24sr04-y M24SR04-G contents 5 8 functional procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 8.1 selection of an ndef message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 8.2 reading of an ndef message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 8.3 reading a locked ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 8.4 locking an ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 8.5 unlocking an ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 8.6 reaching the read-only state for an ndef file . . . . . . . . . . . . . . . . . . . . . 64 8.7 changing an ndef password procedure . . . . . . . . . . . . . . . . . . . . . . . . . 64 8.8 changing a file type procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 8.9 updating a ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 9 uid: unique identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 10 maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 11 i2c dc and ac parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 11.1 i2c timing measurement condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 12 gpo parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 13 write cycle definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 14 rf electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 15 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 15.1 so8n package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 15.2 tssop8 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 15.3 ufdfpn8 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 15.4 wfdfpn8 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 16 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 17 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
list of tables m24sr04-y M24SR04-G 6/90 docid024754 rev 15 list of tables table 1. signal names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 2. functional mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 3. file identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 4. cc file layout for 1 ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5. ndef file layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 6. field list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 7. details about i2c watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 8. details about the gpo field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 9. details about the rf session field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 10. details about the st reserved field. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 11. details about the rf enable field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 12. read access right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 13. write access right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 14. rf and i2c command sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 15. i-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 16. pcb field of the i-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 17. c-apdu format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 18. r-apdu format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 19. r-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 20. r-block detailed format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 21. s-block format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 22. s-block detailed format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 23. command set overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 24. status code of the m24sr04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 25. error code of the m24sr04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 26. c-apdu of the ndef tag applic ation select command . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 27. r-apdu of the ndef tag applic ation select command . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 28. c-apdu of the capability container sele ct command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 29. r-apdu of the capability container sele ct command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 30. c-apdu of the ndef select comman d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 31. r-apdu of the ndef select comman d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 32. c-apdu of the system file sele ct command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 33. r-apdu of the system file sele ct command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 34. c-apdu of the readbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 35. r-apdu of the readbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 36. c-apdu of the updatebinary comma nd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 37. r-apdu of the updatebinary comma nd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 38. verify command format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 39. r-apdu of the verify command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 40. change reference data command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 41. r-apdu of the change reference data command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 42. enable verification requirement command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 43. r-apdu of the enable verification requirement co mmand. . . . . . . . . . . . . . . . . . . . . . . . 46 table 44. disable verification requirement command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 45. r-apdu of the disable verification requirement command . . . . . . . . . . . . . . . . . . . . . . . 47 table 46. c-apdu of the extendedreadbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 47. r-apdu of the extendedreadbinary command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 48. enablepermanentstate command format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
docid024754 rev 15 7/90 m24sr04-y M24SR04-G list of tables 7 table 49. r-apdu table of the enablepermanentstate comman d . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 50. disablepermanentstate command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 51. r-apdu of the disablepermanentstate command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 52. updatefiletype command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 53. r-apdu of the updatefiletype co mmand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 54. sendinterrupt command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 55. r-apdu of the sendinterrupt command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 56. statecontrol command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 57. r-apdu of the statecontrol command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 58. commands issues by the rf host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 table 59. rats command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 60. conversion from fdsi to fsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 61. ats response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 62. pps command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 63. ascending and descending data rate coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 64. pps response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 65. specific i2c commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 66. geti2csession command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 table 67. killrfsession command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 68. i2c device address format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 69. i 2 c frame format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 70. i2c host to m24sr04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 71. m24sr04 to i2c host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 72. uid format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 73. absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 74. i 2 c operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 75. ac test measurement conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 76. input parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 77. i 2 c dc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 78. i 2 c ac characteristics (400 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 79. i 2 c ac characteristics (1 mhz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 80. device select code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 81. gpo timings measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 82. write cycle definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 83. default operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 84. rf characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 85. so8n - 8-lead plastic small outline, 150 mils body width, package data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 86. tssop8 - 8-lead thin shrink small outline, 16 9 mils width, package data . . . . . . . . . . . . . 81 table 87. ufdfpn8 - 8- lead, 2 x 3 mm, 0. 5 mm pitch ultra thin profile fine pitch dual flat package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 88. wfdfpn8 8-lead thin fine pitch dual flat package no lead mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 89. ordering information scheme for packaged devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 90. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
list of figures m24sr04-y M24SR04-G 8/90 docid024754 rev 15 list of figures figure 1. m24sr04 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2. 8-pin package connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 3. gpo configured as session open (gpo field = 0x x1 or 0x1x) . . . . . . . . . . . . . . . . . . . . . 14 figure 4. gpo configured as wip (gpo fi eld = 0xx2 or 0x2x). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 5. gpo configured as i 2 c answer ready (gpo field = 0xx3) . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 6. gpo configured as mip (gpo field = 0x3x). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 7. gpo configured as int (gpo fi eld = 0xx4 or 0x4x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 figure 8. gpo configured as state control (gpo field = 0x x5 or 0x5x). . . . . . . . . . . . . . . . . . . . . . 19 figure 9. gpo configured as rf busy (gpo field = 0x6x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 10. changing the read access right to an ndef file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 11. changing the write access right to an ndef file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 figure 12. command and response exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 13. i2c token release sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 figure 14. ndef tag application select command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 figure 15. ac test measurement i/o waveform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 8 figure 16. i 2 c ac waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 17. maximum rbus value with fc = 400 khz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 18. maximum rbus value with fc = 1 mhz. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 figure 19. i2c bus protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 figure 20. so8n - 8-lead plastic small outline, 150 mils body width, package outline . . . . . . . . . . . . 79 figure 21. so8n - 8-lead plastic small outline, 150 mils bosy width, package recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 22. tssop8 - 8-lead thin shrink small outline, 3 x 4 mm, 0.5 mm pitch package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 23. ufdfpn8 - 8-lead, 2 x 3 mm, 0. 5 mm pitch ultra thin profile fine pitch dual flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 24. wfdfpn8 (mlp8) 8-lead, 2 x 3 mm, 0.5 mm pitch very thin fine pitch dual flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
docid024754 rev 15 9/90 m24sr04-y M24SR04-G functional description 20 1 functional description the m24sr04 device is a dynamic nfc/rfid tag that can be accessed either from the i 2 c or the rf interface. the rf and i 2 c host can read or write to the same memory, that is why only one host can communicate at a time with the m24sr04. the management of the interface selection is controlled by the m24sr04 device itself. the rf interface is based on the iso/iec 14443 type a standard. the m24sr04 is compatible with th e nfc forum type 4 tag specifications and supports all corresponding commands. the i 2 c interface uses a two-wire serial interface consisting of a bidirectional data line and a clock line. the devices carry a built-in 4-bit dev ice type identifier code in accordance with the i2c bus definition. the device behaves as a slave in the i 2 c protocol. figure 1 displays the block diagram of the m24sr04 device. figure 1. m24sr04 block diagram 069 6xsso\yrowdjh iru,  &lqwhuidfh 5)lqwhuidfh edvhgrq ,62,(& 7\sh$ vwdqgdug ,  &lqwhuidfh 99 9 && $& $& 6&/ *32 6'$ *1' 3rzhu pdqdjhphqw xqlw h/?????u ? h??uu}?? $qdorj)urqwhqg edvhgrq ,62,(& 7\sh$vwdqgdug ,qwhuqdowxqlqj fdsdflwdqfh 1)&)ruxp 7\sh7dj surwrfro 1)&b,& lqwhuidfh 'ljlwdoxqlw  5) glvdeoh
functional description m24sr04-y M24SR04-G 10/90 docid024754 rev 15 figure 2. 8-pin package connections 1. see package mechanical data section for packa ge dimensions, and how to identify pin 1. 1.1 functional modes the m24sr04 has two functional modes avail able. the difference between the modes lies in the power supply source (see table 2 ). 1.1.1 i 2 c mode m24sr04 is powered by v cc . the i 2 c interface is connected to the m24sr04. the i 2 c host can communicate with the m24sr04 device. 1.1.2 tag mode the m24sr04 is supplied by the rf field and can communicate with an rf host (rfid reader or an nfc phone). the user memory can only be accessed by the rf commands. table 1. signal names signal name function direction sda serial data i/o scl serial clock input ac0, ac1 antenna coils - v cc supply voltage - vss ground - gpo interrupt output (1) 1. an external pull-up > 4.7 k ? is required. open drain output rf disable disable the rf communication (2) 2. an external pull-down is required when the voltage on v cc is above its por level. input 069 6'$ 6&/ *32 $&         $& 9 66 5)glvdeoh 9 && table 2. functional mode mode supply source comments i 2 c mode v cc the i 2 c interface is available tag mode rf field only the 2 c interface is disconnected dual interface mode rf field or v cc both i 2 c and rf interfaces are available
docid024754 rev 15 11/90 m24sr04-y M24SR04-G functional description 20 1.1.3 dual interface mode both interfaces, rf and i 2 c, are connected to the m24sr04 and both rf or i 2 c host can communicate with the m24sr04 device. the power supply and the access management are carried out by the m24sr04 itself. for further details, please refer to the token mechanism chapter.
signal descriptions m24sr04-y M24SR04-G 12/90 docid024754 rev 15 2 signal descriptions 2.1 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 re sistor must be connected from serial clock (scl) to v cc . ( figure 17 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 pull-up resistor is not necessary, provided th at the bus master has a push-pull (rather than open drain) output. 2.2 serial data (sda) this bidirectional signal is used to transfer dat a 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 connect ed from serial data (sda) to v cc . ( figure 17 indicates how the value of the pull-up resistor can be calculated). 2.3 antenna coil (ac0, ac1) these inputs are used to connect the device to an external coil exclusively. it is advised not to connect any other dc or ac path to ac0 or ac1. when correctly tuned, the coil is used to access the device using nfc forum type 4 commands. 2.4 ground (v ss ) v ss , when connected, is the reference for the v cc supply voltage for all pads, even ac0 and ac1. 2.5 supply voltage (v cc ) this pin can be connected to an external dc supply voltage. note: an internal voltage regulator allows the external voltage applied on v cc to supply the m24sr04. 2.5.1 operating supply voltage v cc prior to selecting the m24sr04 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. to maintain a stable dc supply voltage, it is recommended to decouple the v cc line with suitable ca pacitors (usually of the order of 10 nf and 100 pf) 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 writing instruction (upd atebinary, changereferencedata,
docid024754 rev 15 13/90 m24sr04-y M24SR04-G signal descriptions 20 enableverificationrequirement, disableverifi cationrequirement, enablepermanentstate, disablepermanentstate, unt il the completion of the internal i2c write cycle (t w ). 2.5.2 power-up conditions when the power supply is turned on, v cc rises from v ss to v cc . the v cc rise time must not vary faster than 1v/s. 2.5.3 device reset in i2c mode in order to prevent inadvertent write operations during power-up, a power-on reset (por) circuit is included. at power -up (continuous rise of v cc ), the m24sr04 does not respond to any i2c instruction until v cc has reached the power-on reset threshold voltage (this threshold is lower than the minimum v cc operating voltage defined). 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 has reached a valid and stable v cc voltage within the specified [v cc (min), v cc (max)] range. in a similar way, during power-down (continuous decrease in v cc ), as soon as v cc drops below the power-on reset threshold voltag e, the m24sr04 stops responding to any instruction sent to it. 2.5.4 power-down conditions during power-down (continuous decay of v cc ), the m24sr04 must be in standby power mode (mode reached after decoding a stop condition, assuming that there is no internal operation in progress). 2.6 rf disable this input signal is used to disable the rf communication. when the voltage on the v cc pin is below the por level or not connected, an internal pull-down resistor is connected on this pad. thus, the rf disable pad is maintained to the low level and the rf analog front end is activated. when the voltage on the v cc pin is higher than the por level, the i2c host shall set this pin to enable or disable the rf communication. in dual interface mode, rf disable must not be left floating. 2.7 general purpos e output (gpo) the gpo pad is an open drain pad and a external pull-up resistor shall be connected to it. this pad is a configurable output signal. on delivery, gpo is configured as session opened. its behavior is consistent with the i 2 c or rf session activated and with the mode chosen by the user. the gpo pad is enable when an rf or an i 2 c session is open. when neither an rf nor an i 2 c session is open, the gpo is high impedance.
signal descriptions m24sr04-y M24SR04-G 14/90 docid024754 rev 15 the user can select one of these configurations (1) : ? sessionopen: an rf or i 2 c session is ongoing. ? mip (ndef message updating in progress): the rf host is writing an ndef length different from 0x0000. this mode can be used to detect when the rf host changes the ndef message as defined by the nfc forum. ? wip (writing in progress): the m24s r04 is executing a writing operation. ? int (interrupt): the i 2 c or rf host can force the m24sr04 to send a negative pulse on the gpo pin. ? i 2 c ready response: an i 2 c response is ready to be read by the i2c host. ? state mode: the i 2 c or rf host can control the state of the gpo pad during the rf session. ? rf busy: an rf host is communicating with the m24sr04. 2.7.1 session open configuratio n (gpo field = 0xx1 or 0x1x) when the gpo is configured as "session open" , it goes to the low state when an rf or i 2 c session is ongoing (see figure 3 ). an rf session is taken when m24sr04 receives a valid select applic ation. the session is released after m24sr04 has received a valid deselect command, if m24sr04 has received a kill rf session command in i 2 c or when the rf field became off. an i 2 c session is taken when m24sr04 receives a valid get session command or a valid kill rf session command. the session is released after m24sr04 has received i 2 c token release sequence or after a power off. gpo is driven low after a delay (1) or (3) when the session is open. gpo is released after a delay (2) or (4) when the session is released. figure 3. gpo configured as session open (gpo field = 0xx1 or 0x1x) 1. cmdeoftogplow (rf command end of frame to gporf session pad low) 2. cmdeoftogphz (rf command end of frame to gporf session pad hz) 3. cmdstptogplow (i2c command stop to gpo low) 4. answerlblbtogphz (i2c answer last bit of last byte to gpo hz) 1. see table 81 for more details. d^??es? z&^??]}v /?^??]}v z& ^??]}v ^??]}v 'wk?^??]}vk?v <]oo???]}v}? '????]}v v?]}oo]?]}v? e&?o? ?o? ?o? ~? ~e ~ ~?
docid024754 rev 15 15/90 m24sr04-y M24SR04-G signal descriptions 20 2.7.2 wip writing in pr ogress configuration (gpo field = 0xx2 or 0x2x) when the gpo is configured as "wip", it goes to the low state during an i 2 c or rf writing operation. during an rf or i 2 c session, when m24sr04 updates a file, gpo is driven low after a delay (1) or (3) following the beginning of the correspondent updatebinary command execution. gpo will remain low during the writing time (2) or (4), before being released. figure 4. gpo configured as wip (gpo field = 0xx2 or 0x2x) 1. cmdstptogplow (i2c command stop to gpo low) 2. writing time duration 3. cmdeoftogplow (rf command end of frame to gpo low) 4. writing time duration d^??s? h?? }uuv v?}?z? }uuv ~?}?~e z&}?/? zvvo 'wk?t/w v}(?]?]vp }???]}v ~ }? ~?
signal descriptions m24sr04-y M24SR04-G 16/90 docid024754 rev 15 2.7.3 i 2 c answer ready configur ation (gpo field = 0xx3) when the gpo is configured as i 2 c answer ready, it goes to the low state when the m24sr04 has finished to treat the i 2 c command and is ready to send the i 2 c response. during an i 2 c session, after receiving a valid i 2 c command, gpo pin is driven low after a delay when m24sr04 is ready to deliver a response on the i 2 c bus. gpo is released when m24sr04 receives a new command. figure 5. gpo configured as i 2 c answer ready (gpo field = 0xx3) d^???se k?v ^??]}v /?zvvo 'wk?/? v???? v?/? }uuv d?e^z?? ???}v? v?/? }uuv d?e^z?? ???}v? v?/? }uuv d?e^z?? ???}v?
docid024754 rev 15 17/90 m24sr04-y M24SR04-G signal descriptions 20 2.7.4 mip ndef messa ge writing in pr ogress configuration (gpo field = 0x3x) when the gpo is configured as mip, its state goes to the low state when the rf host writes the ndef length to another value than 0x0000. during an rf session, when m24sr04 changes an ndef file and updates the ndef length with a value different from 0x0000, gpo is driven low after a de lay (1) following the beginning of the correspondent updatebinary command execution. gpo will remain low during the writin g time (2), before being released. figure 6. gpo configured as mip (gpo field = 0x3x) 1. cmdeoftogplow (rf command end of frame to gpo low) 2. writing time duration d^???s? v?}?z? }uuv h???ze& ovp?zja? z&zvvo 'wk?d/w d?e^z?? ???}v? ~ ~?
signal descriptions m24sr04-y M24SR04-G 18/90 docid024754 rev 15 2.7.5 int interrupt configurat ion (gpo field = 0xx4 or 0x4x) the i 2 c or rf host can send a negative pulse on the gpo pad. the gpo pad goes to the low state at the end of the command and goes to the high state at the end of the m24sr04 response. during an rf or i 2 c session, when m24sr04 receives a valid interrupt command, m24sr04 gpo pin is driven low after (1) or (3) for a duration of (4) in rf, or after responding in i2c (2). then gpo pin is released. figure 7. gpo configured as int (gpo field = 0xx4 or 0x4x) 1. cmdstptogplow (i2c command stop to gpo low) 2. after newcmdlbfb (new i2c comma nd last bit of first byte) or after answerlbfb (i2c answer last bit of first byte) 3. cmdeoftogplow (rf command end of frame to gpo low) 4. gpo pulse duration d^??s? ^v /v????? 'wk?/ed v?}?z? }???]}v z&}?/? zvvo d?e^z?? ???}v? ~ }? ~? ~? ~e
docid024754 rev 15 19/90 m24sr04-y M24SR04-G signal descriptions 20 2.7.6 state control configurati on (gpo field = 0xx5 or 0x5x) when the gpo is configured as state control, the i 2 c or rf host can control the state of the gpo by sending a dedicated command. during an rf or i 2 c session, the m24sr04 can control the gpo pin. after receiving a valid set gpo command, gpo pin is driven low after a delay (1) or (3). gpo will be released after a valid reset command or after a power off or upon closing the rf session. figure 8. gpo configured as state control (gpo field = 0xx5 or 0x5x) 1. cmdstptogplow (i2c set gpo command stop to gpo low) 2. cmdstptogphz (i2c reset gpo command stop to gpo hz) 3. cmdeoftogplow (rf set gpo command end of frame to gpo low) 4. cmdeoftogphz (rf reset gpo command end of frame to gpo hz) 069 5hvhw*32 frppdqg $q\rwkhu frppdqg 6hw*32 frppdqg 5)ru,e& fkdqqho *32dv 6wdwh&rqwuro   ru    ru 
signal descriptions m24sr04-y M24SR04-G 20/90 docid024754 rev 15 2.7.7 rf busy configurat ion (gpo field = 0x6x) when the gpo is configured as rf busy, the gpo goes to the low state when the m24sr04 is processing an rf command or when an rfsession is ongoing. when an rf field is present, gpo is driven low after a delay (1) when m24sr04 detects the first command. if the rf session is ongoing and m24sr04 receives a not-supported command, gpo remains low. it will be released only at the end of the rf session, after (2). figure 9. gpo configured as rf busy (gpo field = 0x6x) 1. cmdsoftogplow (rf command start of frame to gpo low) 2. cmdeoftogphz (rf command end of frame to gpo hz) d^??s? z&}uuv v}????}?? ^v?z?? ^v?z? z& }uuv z&zvvo 'wk?z&?? ^~^ ~ ~? ~ ~?
docid024754 rev 15 21/90 m24sr04-y M24SR04-G m24sr04 memory management 28 3 m24sr04 memory management 3.1 memory structure the m24sr04 supports the ndef tag application as defined in the nfc forum type 4 tag. the m24sr04 is composed of three files: ? one capability container file ? one ndef file ? one system file: this is an st-proprietary file the system file contains some information on the configuration of the m24sr04 device. the cc file gives some information about the m24sr04 itself and the ndef file. the ndef file contains the user data. 3.1.1 file identifier the file identifier is the value used in the select command to select a file. 3.1.2 cc file layout the cc file gives some information about the m24sr04 and the ndef file. this file is a read-only file for the rf or i2c host and cannot be modified by issuing a write command. the t field, read access and write access fields can be changed by the rf or i2c host by issuing a specific process (refer to section 8: functional procedures ). table 3. file identifier file identifier meaning 0xe101 system file 0xe103 cc file 0x0001 ndef file
m24sr04 memory management m24sr04-y M24SR04-G 22/90 docid024754 rev 15 3.1.3 ndef file layout the ndef file contains the ndef message wh ich contains the user data. the rf host or the i2c host can read and write data inside the file. the first two bytes named ndef message length define the size of the ndef message. the ndef message length shall be managed by the application and the m24sr04 device does not check if its value is relevant vs the data written by the rf or i2c host. the m24sr04 device uses the ndef message length, e. g. the standard read can be processed only inside the ndef message; otherwise, the m24sr04 device returns an er ror code. for more details about the read command, refer to section 5.6.7: readbinary command . table 4. cc file layout for 1 ndef file file offset meaning value comments 0x0000 number of bytes of cc file 0x000f 15 bytes 0x0002 mapping version (1) 1. according to the reader. 0x20 or 0x10 v 2.0 or v 1.0 0x0003 maximum number of bytes that can be read 0x00f6 246 bytes 0x0005 maximum number of bytes t hat can be written 0x00f6 246 bytes 0x0007 ndef file control tlv 0x04 (2) 2. delivery state. t field 0x0008 0x06 l field 0x0009 0x0001 fileid 0x000b 0x0200 maximum ndef file size 0x000d 0x00 (2) read access 0x000e 0x00 (2) write access
docid024754 rev 15 23/90 m24sr04-y M24SR04-G m24sr04 memory management 28 3.1.4 system file layout the system file specifies the configuration of the m24sr04. table 6 lists the different fields. table 5. ndef file layout file offset byte 0 byte 1 byte 2 byte 3 0x0000 ndef message length user data user data 0x0004 user data user data user data user data ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 0x01fc ... ... ... user data table 6. field list file offset field name number of bytes read access write access delivery state (1) 1. the delivery state for all passwords = 0x00000000000000000000000000000000. 0x0000 length system file 2 i2c or rf - 0x0012 0x0002 i2c protect 1 i2c or rf i2c (2) 2. the access is granted when the field i2c protect is set to the state unprotected or when the right i2c password was correctly received (see section 3.5: i2c password ). 0x01 0x0003 i2c watchdog 1 i2c or rf i2c (2) 0x00 0x0004 gpo 1 i2c or rf i2c (2) 0x11 0x0005 st reserved 1 i2c or rf i2c (2) 0x00 0x0006 rf enable 1 i2c or rf i2c (2) 0x xxxx xxx1 (3) 3. refer table 11 . 0x0007 ndef file number (rfu) 1 i2c or rf none 0x00 0x0008 uid 7 i2c or rf none 0x0286 xx xx xx xx xxor 0x028e xx xx xx xx xx (4) (5) 4. x values are defined by st to insure uid unicity. 5. automotive grade 0x000f memory size 2 i2c or rf none 0x01ff 0x0011 product code 1 i2c or rf none 0x86 or 0x8e (5)
m24sr04 memory management m24sr04-y M24SR04-G 24/90 docid024754 rev 15 table 7. details about i2c watchdog file offset b7- b0 0x0003 the ?i 2 c watchdog? ensures the i2c host will not keep the session open, while there is no more activity on the i 2 c bus (between the stop bit of the previous transaction and the start bit of the next one) ? 0x00 (default value): the watchdog is off ? other values: if programmed to a non null value n, the watchdog is enabled and counts n*30 ms (30 ms is approximate) before releasing the i 2 c session. table 8. details about the gpo field file offset b7 b6-b4 b3 b2-b0 0x0004 rfu when an rf session is open: 0b000: high impedance 0b001: session opened 0b010: wip 0b011: mip 0b100: interrupt 0b101: state control 0b110: rf busy 0b111: rfu rfu when an i2c session is open: 0b000: high impedance 0b001: session opened 0b010: wip 0b011: i2c answer ready 0b100: interrupt 0b101: state control 0b110: rfu 0b111: rfu table 9. details about the rf session field file offset b7 b6-b4 b3-b0 0x0004 rfu when an rf session is open: 0b001: session opened rfu
docid024754 rev 15 25/90 m24sr04-y M24SR04-G m24sr04 memory management 28 table 10 gives some details about the st reserved field. table 11 gives some details about the rf enable field. 3.2 read and write access rights to the memory an ndef file can be locked for read or write accesses. it is also protected by a 128-bit password that the host shall present before accessing the ndef file. there are two 128-bit passwords, one for the read access and the other one for the write access. an ndef file can be permanently locked for read or write accesses. thus, the host cannot access the ndef file. the read password shall be sent to the m24sr04 device before reading a read-locked ndef file. the write password shall be present on the m24sr04 device before writing a write-locked ndef file. the write password shall be sent to change the read or write access. the read or write access right is defined for the ndef file. 3.2.1 state of the read and write access rights two bytes in the cc file are used to define the read and write access rights to the ndef file. for more details, refer to section 3.1.2: cc f ile layout . table 10. details about the st reserved field file offset b7-b0 0x0005 0x00 table 11. details about the rf enable field file offset b7 b6-b4 b3 b2-b1 b0 0x0006 0: the rf field is off (1) 1: the rf field is on (1) 1. this field is written by the m24sr04. rfu 0: the rf disable pad is at low state (1) 1: the rf disable pad is at high state (1) rfu 0: the m24sr04 does not decode the co mmand received from the rf interface 1: the m24sr04 decodes the command received from the rf interface
m24sr04 memory management m24sr04-y M24SR04-G 26/90 docid024754 rev 15 the state 0xff and 0xfe cannot be changed by using the read or write passwords. 3.2.2 changing the read access right to ndef files the state diagram on figure 10 shows how to change the access right to read an ndef file. figure 10. changing the read access right to an ndef file 1. see the procedure to lock the read access ( section 8.4: locking an ndef file ). 2. see the procedure to unlock the read access ( section 8.5: unlocking an ndef file ). 3. see the procedure to permanently lock the read access ( section 8.6: reaching the read-only state for an ndef file ). 4. proprietary state, not defined by nfc forum type 4 tag. for nfc forum compatible tags, the only possible value of the read access righ ts are 0x00 (no restrictions on reads). table 12. read access right value meaning 0x00 read access without any security 0x80 locked (1) 1. the read password shall be sent before reading in the ndef file. 0xfe read not authorized table 13. write access right value meaning 0x00 write access without any security 0x80 locked (1) 1. the write password shall be sent before writing in the ndef file. 0xff write not authorized d^??se ? ?? ~e ?& ~e >}l?ze&(]o ~ hvo}l?ze&(]o ~? w?uvv?o?vo}l?ze&(]o w?uvv?o?o}l?ze&(]o ~?
docid024754 rev 15 27/90 m24sr04-y M24SR04-G m24sr04 memory management 28 3.2.3 changing the write access right to ndef files the state diagram on figure 11 shows how to change the write access right to an ndef file. figure 11. changing the write access right to an ndef file 1. see the procedure to lock the write access. 2. see the procedure to unlock the write access. 3. see the procedure to permanently lock the write access ( section 8.6: reaching the read-only state for an ndef file ). 4. proprietary state, not defined by nfc forum type 4 tag. for nfc forum compatible tags, it is mandatory that the write access rights are set to either 0x00 (no restrictions on writes) or 0xff (permanently locked). 0x80 might not be fully decoded with some smart phones. 3.3 access right life time the access right life time is validated while the nd ef file is selected or until the end of the rf or i2c session. once the read or write acce ss right is granted, the host can send one or more readbinary or updatebinary commands. at the end of a session or when the host selects another file, the read and write access rights are initialized. 3.4 ndef file passwords the ndef file passwords protect the read or write access from an rf or i2c interface from/to an ndef file. two ndef file passwords are av ailable for each ndef file: ? read password ? write password the length of a password is 128 bits (16 bytes). d^??se ? ?? ~e ?&& >}l?ze&(]o ~ hvo}l?ze&(]o ~? w?uvv?o?vo}l?ze&(]o w?uvv?o?o}l?ze&(]o ~?
m24sr04 memory management m24sr04-y M24SR04-G 28/90 docid024754 rev 15 3.5 i 2 c password the i2c password can be sent only by the i2c host. it activates the superuser rights. the i2c host with the superuser rights can: ? access the ndef file regardless of the right access and without sending the ndef file passwords. ? change the access rights regardless of the current state. the length of the i2c password is 128 bits (16 bytes). 3.5.1 i2c password and i2c prot ect field of th e system file the i2c protect field in the system file can be set to: ? 0x00: the i2c host has the superuser righ t access without sending the i2c password ? 0x01: the i2c host has the superuser right access after sending the i2c password for more details about the system file layout, refer to section 3.1.4: system file layout .
docid024754 rev 15 29/90 m24sr04-y M24SR04-G communication mechanism 78 4 communication mechanism this chapter describes the principle of communication between an rf or an i 2 c host and the m24sr04 device. 4.1 master and slave the m24sr04 acts as a slav e device on either the i 2 c-bus or the rf channel and therefore waits for a command from the i 2 c master or the rf host be fore sending its response. the rf host shall generate the rf field and the rf commands. the i 2 c host shall supply the m24sr04 through the v cc pin and shall generate the i 2 c clock on the scl pad. 4.2 m24sr04 session mechanism the m24sr04 is a dynamic nfc/rfid tag which can be accessed either from the rf or i 2 c interface. the m24sr04 implements a token sys tem. this token has two possible values, rf or i 2 c. when the token exists and is assigned to one interface (rf or i 2 c), the m24sr04 cannot communicate with the other host. 4.2.1 rf token the token is given to the rf interface once t he anticollision is done. the release condition can be either an rf field cut-off, or the reception of the command deselect, or when the i2c host sends th e killrfsession. 4.2.2 i 2 c token the token is given to the i 2 c interface when the i 2 c host has sent the co rrect device select. the release condition can be either a power down condition on v cc pin or the reception of a i 2 c token release sequence from the i 2 c host, after which m24sr04 goes in standby power mode.
i2c and rf command sets m24sr04-y M24SR04-G 30/90 docid024754 rev 15 5 i2c and rf command sets the command sets of the m24s r04 can be split in differ ent command families. most commands are common between the rf and the i2c interface. some commands are specific to the rf interface and some others ar e specific to the i2c in terface. this section describes the m24sr04 command sets that ca n be issued by the rf or the i2c host. there are th ree command families: ? the nfc forum type 4 tag command set ? the iso/iec 7816-4 command set ? the proprietary command set the nfc forum type 4 tag command set and the iso/iec 7816-4 command set use the i- block format. for more details about the i-block format, refer to section 5.2: i-block format . two other command formats exist: ? the commands using the r-block format ? the commands using the s-block format for more details about these formats, refer to the corresponding sections: section 5.3: r- block format and section 5.4: s-block format . this section gives a brief description of the rf and i2c host common commands. the format of these command se ts is the i-block format. table 14 lists the rf and i2c command sets. table 14. rf and i2c command sets family command set command name class byte instruction code brief description nfc forum type 4 tag ndef tag application select 0x00 0xa4 ndef tag application select cc select 0x00 0xa4 select the cc file ndef select 0x00 0xa4 select the ndef file system select 0x00 0xa4 select the system file readbinary 0x00 0xb0 read data from file updatebinary 0x00 0xd6 write or erase data to a ndef file iso/iec 7816-4 verify 0x00 0x20 checks the right access of a ndef file or sends a password changereferencedata 0x00 0x24 change a read or write password enableverificationrequirement 0x00 0x28 activate the password security disableverificationrequirement 0x00 0x26 disable the password security
docid024754 rev 15 31/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.1 structure of the command sets the exchange of data between the rf or the i2c host and the m24sr04 uses three kinds of data formats, called blocks: ? i-block: to exchange the command and the response ? r-block: to exchange positive or negative acknowledgment ? s-block: to use either the deselect command or the frame waiting extension (wtx) command or response note: max wtx value = 0x0b this section describes the structure of the i-bl ock, r-block and s-block. this format is used for the application command set. 5.2 i-block format the i-block is used to exchange data between th e rf or the i2c host and the m24sr04. it is composed of three fields. table 15 details the i-block format. st proprietary enablepermanentstate 0xa2 0x28 enables the read only or write only security state st proprietary extendedreadbinary 0xa2 0xb0 read data from file table 14. rf and i2c command sets (continued) family command set command name class byte instruction code brief description table 15. i-block format name sod payload eod pcb did 0 crc length 1 byte 1 byte 1 to 251 bytes 2 bytes pcb field did field (optional) rf or i2c host to m24sr04: c-apdu m24sr04 to rf or i2c host: r-apdu 2 crc bytes
i2c and rf command sets m24sr04-y M24SR04-G 32/90 docid024754 rev 15 when the rf or i2c host sends a command to the m24sr04 the format of the payload is the c-apdu. when the m24sr04 sends a command to the rf or i2c host, the format of the payload is the r-apdu. 5.2.1 c-apdu: payload format of a command the c-apdu format is used by the rf or the i2 c host to send a command to the m24sr04. table 17 describes its format. table 16. pcb field of the i-block format b7-b6b5b4b3b2b1b0 0b00 0 0 x 0 1 x i-block rfu must be set to 0 did field, if bit is set must be set to 0 must be set to 1 block number table 17. c-apdu format name payload field cla ins p1 p2 lc data le length 1 byte 1 byte 1 byte 1 byte 1 byte lc byte 1 byte class byte 0x00: standard command 0xa2: st command instruction byte param byte 1 param byte 2 number of bytes of the data field data bytes number of bytes to be read in the m24sr04 memory
docid024754 rev 15 33/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.2.2 r-apdu: payload format of a response the m24sr04 uses the i-block format to reply to a command which used the i-block format. this format is described in table 18 . 5.3 r-block format the r-block is used to convey positive or neg ative acknowledgment between the rf or i2c host and the m24sr04. there are two kinds of r-blocks: ? r(ack): the acknowledgment block sent by the rf or i2c host or by the m24sr04. ? r( nak ): the non-acknowledgment block sent by the rf or i2c host or by the m24sr04. table 18. r-apdu format name payload field data (optional) sw1 sw2 length le byte 1 byte 1 byte data status byte 1 status byte 2 table 19. r-block format pcb crc r(ack) without the did field: 0xa2 or 0xa3 r(ack) with the did field: 0xaa or 0xab r(nak) without the did field: 0xb2 0xb3 r(nak) with the did field: 0xba 0xbb 2 crc bytes
i2c and rf command sets m24sr04-y M24SR04-G 34/90 docid024754 rev 15 5.4 s-block format the s-block is used to exchange control information between a reader and a contactless tag. there are two requests using the s-block format: ? s(des): the deselect command ? s(des) is only applicable to rf ? s(wtx): the waiting frame extension command or response. a waiting time extension request occurs, in rf or i 2 c, when the operating time needed by m24srxx is greater than 9.6 ms. the wtx field indicates the increase time factor to be used in this command execution (fdttemp = wtx * 9.6 ms). the max wtx value is equal 0x0b. table 20. r-block detailed format b7-b6 b5 b4 b3 b2 b1 b0 0b10 1 x x 0 0 x r-block rfu 0: nak 1: ack 0: did field is not present 1: did field is present must be set to 0 rfu block number table 21. s-block format nfc frame sod eod pcb did payload crc length 1 byte 1 byte 0 to 1 bytes 2 bytes 0xc2: for s(des) when the did field is not present 0xca: for s(des) when the did field is present 0xf2: for s(wtx) when the did field is not present 0xfa: for s(wtx) when the did field is present did field (optional) wtx field (1) 2 crc bytes 1. this field is present when b5-b4 bits are set to 0b11 (s-block is a wtx). see table 22: s-block detailed format .
docid024754 rev 15 35/90 m24sr04-y M24SR04-G i2c and rf command sets 78 note: after receiving the deselect command, the session is released and m24sr04 enters the standby power mode. in i 2 c, the session is released after executing the i2c token release sequence. in response to a rats command, m24sr04 returns fwi parameter (default frame waiting time used); when m24sr04 needs more time for a command execution, it requests a frame waiting time extension by responding 0xf2 0xwtx (request waiting time = fwi * wtx). if the reader accepts m24sr04 request, it ac knowledges by sendin g the command 0xf2 0xwtx. the frame waiting time becomes fwi * wtx for the current command only. 5.5 crc of the i 2 c and rf frame the two crc bytes check the data transmission be tween the rf host or i2c host and the m24sr04. for the rf frame, the crc is comp uted on all the data bits in the frame, excluding parity bits, sof and eof, and the crc itself. for the i2c frames, the crc is computed on all data bits of the frame excluding device select and the crc itself. the crc is as defined in iso/iec 13239. the initial register content shall be 0x6363 and the register content shall not be inverted after calculation. table 22. s-block detailed format b7-b6 b5-b4 b3 b2 b1 b0 0b11 x x 0 1 0 s-block 0b00: deselect 0b11: wtx 0: did field is not present 1: did field is present - rfu rfu
i2c and rf command sets m24sr04-y M24SR04-G 36/90 docid024754 rev 15 5.6 nfc forum type 4 tag protocol 5.6.1 commands set with the nfc forum type 4 tag protocol, the commands are common to rf and i2c. 5.6.2 status and error codes this section lists the status and the error code of the m24sr04. table 23. command set overview command name brief description ndef tag application select select the ndef tag application capability container select select the capability container (cc) file using the select command ndef select select the ndef file system file select select the system file readbinary read data from a file updatebinary write new data to a file table 24. status code of the m24sr04 sw1 sw2 comment value 0x90 0x00 command completed successfully table 25. error code of the m24sr04 sw1 sw2 comment length 1 byte 1 byte value 0x62 0x80 file overflow (le error) value 0x62 0x82 end of file or record reached before reading le bytes value 0x63 0x00 password is required value 0x63 0xcx password is incorrect, x further retries allowed (x can take value 0,1, 2) value 0x65 0x81 unsuccessful updating value 0x67 0x00 wrong length value 0x69 0x81 cmd is incompatible with the file structure value 0x69 0x82 security status not satisfied value 0x69 0x84 reference data not usable
docid024754 rev 15 37/90 m24sr04-y M24SR04-G i2c and rf command sets 78 value 0x6a 0x80 incorrect parameters le or lc value 0x6a 0x82 file or application not found value 0x6a 0x84 file overflow (lc error) value 0x6a 0x86 incorrect p1 or p2 values value 0x6d 0x00 ins field not supported value 0x6e 0x00 class not supported table 25. error code of the m24sr04 (continued) sw1 sw2 comment length 1 byte 1 byte
i2c and rf command sets m24sr04-y M24SR04-G 38/90 docid024754 rev 15 5.6.3 ndef tag applic ation select command the rf or the i2c host shall send this command to activate the ndef tag application. to activate the ndef tag application, the rf host sends the select command (see table 26 ) in addition to the sequence define d in the nfc forum digital protocol. to activate the ndef tag application, the i2c host sends the select command (see table 26 ) in addition to the getsession or the kill rf session command. table 26 defines the c-apdu of the select command to select the ndef tag application (called ndef tag application select). table 27 defines the r-apdu of the ndef tag application select command. 5.6.4 capability cont ainer select command the rf or i2c host uses the capability contai ner select procedure to select the capability container (cc) file. the cc file is selected when this command re turns "command completed" in the r-apdu. table 28 defines the c-apdu of the se lect command to select the cc file (called capability container select). table 26. c-apdu of the ndef tag application select command name cla ins p1 p2 lc data le value 0x00 0xa4 0x04 0x00 0x07 0xd27600 00850101 0x00 class byte select instruction code p1 field p2 field number of bytes of data application id le field table 27. r-apdu of the ndef tag application select command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x6a 0x82 ndef tag application not found value - 0x6d 0x00 class not supported
docid024754 rev 15 39/90 m24sr04-y M24SR04-G i2c and rf command sets 78 table 29 defines the r-apdu of the cc select command. 5.6.5 ndef select command the rf or i2c host uses the ndef se lect command to select the ndef file. the ndef file is selected when this co mmand returns ?command completed? in the r- apdu. table 30 defines the c-apdu of the select comma nd to select the ndef file (called ndef select). in case of a password is required to access the ndef f ile, the ndef select command will disable any previously granted access rights to this file. the verify command might be required to access the file. table 28. c-apdu of the capability container select command name cla ins p1 p2 lc data le value 0x00 0xa4 0x00 0x0c 0x02 0xe103 - class byte select instruction code p1 field p2 field number of bytes of data cc file id - table 29. r-apdu of the capability container select command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x6a 0x82 file or application not found value - 0x6d 0x00 class not supported table 30. c-apdu of the ndef select command name cla ins p1 p2 lc data le value 0x00 0xa4 0x00 0x0c 0x02 0x000x - class byte select instruction code p1 field p2 field number of bytes of data 0x0001: first ndef file -
i2c and rf command sets m24sr04-y M24SR04-G 40/90 docid024754 rev 15 table 31 defines the r-apdu of the ndef select command. 5.6.6 system file select command the rf or i2c host uses this co mmand to select the system file. the system file is selected when this co mmand returns "command completed" in the r- apdu. table 32 defines the c-apdu of the command to se lect the system file (called system select). table 33 defines the r-apdu of the sy stem file select command. table 31. r-apdu of the ndef select command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x6a 0x82 file or application not found table 32. c-apdu of the system file select command name cla ins p1 p2 lc data le 0x00 0xa4 0x00 0x0c 0x02 0xe101 - class byte select instruction code p1 field p2 field number of bytes of data system file id - table 33. r-apdu of the system file select command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x6a 0x82 capability container not found, no data is returned
docid024754 rev 15 41/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.6.7 readbinary command on receiving the readbinary command, the m24sr04 reads the requested memory field and sends back its value in the r-apdu response. before sending a readbinary command, a file shall be selected by using a select command. the response of the readbinary command is su ccessful when the data to be read is within the selected file (1) ; in other words, when the sum of p1-p2 and le fields is equal to or lower than the selected file length. table 34 defines the readbinary command. table 35 defines the r-apdu of the readbinary command. 1. for more details about cc file, refer to section 3.1.2: cc file layout . for more details about ndef file, refer to section 3.1.3: ndef file layout . for more details about system file, refer to section 3.1.4: system file layout . table 34. c-apdu of the readbinary command name cla ins p1 & p2 lc data le 0x00 0xb0 2 bytes - - 1 byte class byte read instruction code offset in the file selected - - number of bytes to read between 0x01 le max(selected file length, 0xf6) table 35. r-apdu of the readbinary command data sw1 sw2 comment length - 1 byte 1 byte - value content read 0x90 don?t care (1) 1. for more information, please contact your local st support. command completed value - 0x67 0x00 wrong length value - 0x69 0x82 security status not satisfied value - 0x6a 0x82 file or application not found value - 0x6e 0x00 class not supported
i2c and rf command sets m24sr04-y M24SR04-G 42/90 docid024754 rev 15 5.6.8 updatebinary command on receiving the updatebinary command, the m24sr04 writes the data field into the selected file and sends back a status in the r- apdu response. if needed, m24srxx will request a timing extension (see section 5.4 ). before sending an updatebinary command, a file shall be selected by issuing a select command. table 36 defines the updatebinary command. table 37 defines the r-apdu of the updatebinary command. note: chaining is not supported on ?updatebinay? command. for further return codes and definitions, refer to status and error codes . table 36. c-apdu of the updatebinary command name cla ins p1 & p2 lc data le 0x00 0xd6 2 bytes 1 byte lc bytes - class byte write instruction code offset in the file selected number of bytes of data (0x01 lc 0xf6) data to write in the m24sr04 memory - table 37. r-apdu of the updatebinary command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x65 0x81 unsuccessful updating value - 0x67 0x00 wrong length value - 0x69 0x82 security status not satisfied value - 0x6a 0x82 file or application not found value - 0x6e 0x00 class not supported
docid024754 rev 15 43/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.7 iso/iec 7816-4 commands the iso/iec 7816-4 command set offers some ext ended features such as the protection of the ndef file. this command set is used to ma nage the right access of the ndef file. 5.7.1 verify command the verify command has two functions: 1. check if a password is required to access to the ndef file (the lc field = 0x00). 2. check that the password embedded in the verify command allows the access to the memory (the lc field = 0x10 and the password is present). when the lc field if equal to 0x00, the verify command returns a success code (0x90 00) provided that the access to the ndef file does not require a password. when the access to the ndef file is protected, the response to the verify command returns an error code (0x63 00). when the lc field equals 0x10, on receivin g the verify command, the m24sr04 compares the requested password with the data containe d in the request and reports whether the operation has been successful in the response. before sending this command, an ndef file shall be selected by issuing the ndef select command. thus, this command checks the righ t access condition of the last ndef file selected. after a successful command, an access is granted for the whole ndef file. table 38 defines the verify command. table 38. verify command format name cla ins p1 & p2 lc data le 0x00 0x20 2 bytes 1 byte lc bytes - class byte instruction code password identification 0x0001: read ndef password transmit 0x0002: write ndef password transmit 0x0003: i2c password transmit (1) other: rfu 1. this code can only be issued by the i2c host. 0x00: the password is not present 0x10: the password is present in the data field password -
i2c and rf command sets m24sr04-y M24SR04-G 44/90 docid024754 rev 15 table 39 defines the r-apdu of the verify command. 5.7.2 change reference data command the change reference data command replaces the read or write password related to the ndef files previously selected. it can be perform ed only if the security status satisfies the security attributes for this command. before sending this command, the verify command with the correct ndef write password shall be issued. thus, this command changes the reference data of the ndef file. table 40 defines the change reference data command. table 40. change reference data command format table 39. r-apdu of the verify command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed, the password is correct value - 0x69 0x85 the conditions of use are not satisfied (e.g. no ndef file was selected) value - 0x69 0x81 cmd incompatib le with file structure value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 incorrect para meter in cmd data field value - 0x63 0x00 a password is required value - 0x63 0xcx (1) 1. at each session, the rf or i 2 c host can check a password 3 times. the password transmitted is incorrect and x encodes the number of further allowed retries. value - 0x6e 0x00 class not supported name cla ins p1 & p2 lc data le 0x00 0x24 2 bytes 1 byte lc bytes - class byte instruction code password identification 0x0001: read password transmit 0x0002: write password transmit 0x0003: i2c password transmit (1) other: rfu 1. this code can only be issued by the i2c host. 0x10: the password is present in the data field ndef file or i2c password -
docid024754 rev 15 45/90 m24sr04-y M24SR04-G i2c and rf command sets 78 table 41 defines the r-apdu of the change reference data command. 5.7.3 enable verification requirement command the enable verification requirement command activates the protection by password of the ndef file. when this command is successful, the read or write access to the ndef file is protected by a 128-bit password. it can be performed only if the security status satisfies the security attributes for this command. this command can update the right access of the ndef file by writing into the eeprom. in this case, the re sponse timing will be around 5 ms. before sending this command, the verify command with the correct ndef write password shall be issued. thus, this command chan ges the access right of the ndef file. table 42 defines the enable verification requirement command. the last five bits identify the pa ssword sent in the verify command. table 41. r-apdu of the chan ge reference data command data sw1 sw2 comment length 0 1 byte 1 byte - value - 0x90 0x00 command completed, the access right has been changed value - 0x69 0x81 cmd is incompatible with the file structure value - 0x65 0x81 unsuccessful updating value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 cc file or system file selected value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported table 42. enable verificati on requirement command format name cla ins p1 & p2 lc data le 0x00 0x28 2 bytes - - - class byte instruction code new security attributes 0x0001: enable the read prot ection of the ndef file 0x0002: enable the write protection of the ndef file other: rfu - - -
i2c and rf command sets m24sr04-y M24SR04-G 46/90 docid024754 rev 15 table 43 defines the r-apdu of the enable verification requirement command. 5.7.4 disable verification requirement command the disable requirement command deactivates the protection by password of the ndef file. when this command is succe ssful, the read or write access to the ndef file is granted without security requirements. it can be performed only if the security status satisfies the security attributes for this command. before sending this command, the verify command with the correct ndef write password shall be issued. thus, this command chan ges the access right of the ndef file. this command can update the right access of the ndef file by writing into the eeprom. in this case, the re sponse timing will be around 6 ms. table 44 defines the disable verification requirement command. table 45 defines the r-apdu of the disable verification requirement command. table 43. r-apdu of the enable verification requirement command data sw1 sw2 comment length 0 1 byte 1 byte - value - 0x90 0x00 command completed, the password is correct value - 0x69 0x81 cmd is incompat ible with the file structure value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 cc file or system file selected value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values table 44. disable verificati on requirement command format name cla ins p1 & p2 lc data le 0x00 0x26 2 bytes - - - class byte instruction code new security attributes 0x0001: disable the read prot ection of the ndef file 0x0002: disable the write protection of the ndef file other: rfu - - -
docid024754 rev 15 47/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.8 st proprietary command set the rf or i2c host can be issued with the command set described in this chapter. 5.8.1 extendedreadbinary command on receiving the extendedreadbinary co mmand, the m24sr04 reads the requested memory field and sends back its value in the r-apdu response. before sending an extendedreadbinary command, a file shall be selected by issuing an ndef select command. the response of the extendedreadbinary comm and will be successful even if the data to be read is beyond the ndef message. the command returns an error code if the data to be read goes beyond the end of the file. table 47 defines the r-apdu of the read binary command. table 45. r-apdu of the disable verification requirement command data sw1 sw2 comment length 0 1 byte 1 byte - value - 0x90 0x00 command completed, the password is correct value - 0x69 0x81 cmd is incompatible with the file structure value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 cc file or system file selected value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported value - 0x65 0x81 update failed table 46. c-apdu of the extendedreadbinary command name cla ins p1 & p2 lc data le length 0xa2 0xb0 2 bytes - - 1 byte st class byte read instruction code offset in the file selected - - - number of bytes to read between 0x01 le 0xf6
i2c and rf command sets m24sr04-y M24SR04-G 48/90 docid024754 rev 15 5.8.2 enablepermanentstate command the command configures the ndef file to the readonly or to the writeonly state. this command can update the right access to the ndef file by writing into the eeprom. in this case, the re sponse timing will be around 6 ms. table 48 defines the enablepermanentstate requirement command. table 49 defines the r-apdu of the enablepermanentstate command. table 47. r-apdu of the extendedreadbinary command data sw1 sw2 comment length le bytes 1 byte 1 byte - value content read 0x90 don?t care (1) 1. for more information, please contact your local st support. command completed value - 0x67 0x00 wrong length value - 0x69 0x82 security status not satisfied value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported table 48. enablepermanentstate command format name cla ins p1 & p2 lc data le length 0xa2 0x28 2 bytes - - - class byte instruction code new security attributes 0x0001: enable the read prot ection of the ndef file 0x0002: enable the write protection of the ndef file other: rfu - - - - table 49. r-apdu table of the enablepermanentstate command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x65 0x81 update failed value - 0x67 0x00 wrong length
docid024754 rev 15 49/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.8.3 disablepermanentstate command the command configures the ndef file to the lock state. this command can update the right access of the ndef file by writing into the eeprom. in this case, the re sponse timing will be around 6 ms. this command is only valid in i 2 c. the superuser rights must have been granted to execute the command. before sending this command, an ndef file shall be selected by issuing the ndef select command. table 50 defines the disablepermanentstate requirement command. table 51 defines the r-apdu of the disablepermanentstate command. value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 cc file or system file selected value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported table 49. r-apdu table of the enablepermanentstate command (continued) data sw1 sw2 comment table 50. disablepermanentstate command format name cla ins p1 & p2 lc data le length 0xa2 0x26 2 bytes - - - class byte instruction code new security attributes 0x0001: disable the read prot ection of the ndef file 0x0002: disable the write protection of the ndef file other: rfu - - - table 51. r-apdu of the disablepermanentstate command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x65 0x81 update failed value - 0x67 0x00 wrong length value - 0x69 0x82 security status not satisfied
i2c and rf command sets m24sr04-y M24SR04-G 50/90 docid024754 rev 15 5.8.4 updatefiletype command this command allows to modify the file type of a selected file to proprietary file (0x05) or ndef file (0x04). nfc forum compatible tags must confi gure the file as ndef file (0x04). this command is granted only, when application and file are selected and if the file length and access right have previously been set to 0x00h (message invalid, all access rights granted). this command will update the file type loca ted in the cc file by wr iting into the eeprom. in this case, the re sponse timing will be around 6 ms. table 52 defines the updatefiletype command. table 53 describes the r-apdu of the updatefiletype command. value - 0x6a 0x80 cc file or system file selected value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported table 51. r-apdu of the disablepermanentstate command (continued) data sw1 sw2 comment table 52. updatefiletype command format name cla ins p1 p2 lc data le value 0xa2 0xd6 0x00 0x00 0x01 0x04 or 0x05 - class byte select instruction code p1 field p2 field number of bytes of data file type - table 53. r-apdu of the updatefiletype command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 command completed value - 0x69 0x82 security status not satisfied value - 0x6a 0x80 cc file or system file selected
docid024754 rev 15 51/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.8.5 sendinterrupt command on receiving the sendinterrupt command, the m24sr04 generates a negative pulse on the gpo pin. it starts at the end of the comma nd and ends at the end of the rf response. before sending this command, the system file shall be selected by issuing the system select command. table 54 defines the sendinterrupt command. table 55 describes the r-apdu of the sendinterrupt command. 5.8.6 statecontrol command on receiving the statecontrol command with reset value: data 0x00, the m24sr04 drives the gpo pin low. on receiving the statecontr ol command with set value: data 0x01, the m24sr04 releases the gpo pin which returns to hz. before sending this command, the system file shall be selected by issuing the system select command. table 56 defines the state control command. value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values table 53. r-apdu of the updatefiletype command (continued) data sw1 sw2 comment table 54. sendinterrupt command format cla ins p1&p2 lc data le length 1 byte 1 byte 2 bytes 1 byte - - value 0xa2 0xd6 0x001e 0x00 - - table 55. r-apdu of the sendinterrupt command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 the interrupt has been sent value - 0x6a 0x80 the gpo is not configured as an interrupt mode value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported
i2c and rf command sets m24sr04-y M24SR04-G 52/90 docid024754 rev 15 5.9 specific rf command set this section describes the command set that can be issued only by the rf host. 5.9.1 anticollision command set table 58 lists the commands that can be issued on ly by the rf host. the format of these commands is described in the nfc fo rum digital protocol specification. 5.9.2 rats comma nd and ats response rats command and ats response are used for nfc forum type 4a tag platform device activation (as defined in nfc foru m digital protocol specification). table 59 details the rats command. this command shall be se nt after the anticollision process. table 56. statecontrol command format cla ins p1&p2 lc data le length 1 byte 1 byte 2 bytes 1 byte - - reset value 0xa2 0xd6 0x001f 0x01 0x00 - set value 0xa2 0xd6 0x001f 0x01 0x01 - table 57. r-apdu of the statecontrol command data sw1 sw2 comment length - 1 byte 1 byte - value - 0x90 0x00 the set or reset has been sent value - 0x6a 0x80 the gpo is not configured in statecontrol mode value - 0x6a 0x82 file or application not found value - 0x6a 0x86 incorrect p1 or p2 values value - 0x6e 0x00 class not supported table 58. commands issues by the rf host family command set comma nd name instruction code nfc-a technology all_req 0x52 (1) 1. code on 7 bits. sens_req 0x26 (1) sdd_req 0x93 or 0x95 or 0x97 sel_req 0x93 or 0x95 or 0x97 slp_req 0x50
docid024754 rev 15 53/90 m24sr04-y M24SR04-G i2c and rf command sets 78 the fsdi field codes the fsd that defines the maximum size that an rf or i2c host is able to receive. table 60 gives the conversion from fdsi to fsd. the did field defines the value of the addressed m24sr04. the fsci codes the fsc which stands for the maximum frame size that the m24sr04 is able to receive. the m24sr04 is able to rece ive up to 256 bytes of command. if the rf or i2c host sends a command with more than 256 bytes, the m24sr04 will not be able to treat the command and will not reply. the fwi which stands for the frame waiting time integer codes the fwt. this time corresponds to the maximum duration while an rf or i2c host shall send before sending the next command. table 59. rats command name ins param crc byte field 0xe0 1 byte 2 bytes bit field b7-b4 b3-b0 instruction code fsdi did (0 did 14) 2 crc bytes table 60. conversion from fdsi to fsd fsdi 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9h- 0xe 0xf fsd 16 24 32 40 48 64 96 128 256 rfu 256 table 61. ats response name tl t0 ta(1) tb(1) tc(1) crc byte field 0x05 0x78 1 byte 1 byte 0x02 2 bytes bit field b8-b5 b4-b1 length of the ats response fsci = 256 bytes the maximum ascending data rate is 106 kbps the maximum descending data rate is 106 kbps fwi field (9.6 ms when tb = 0x50) sfgi field (302 s when tb = 0x50) the did is supported 2 crc bytes
i2c and rf command sets m24sr04-y M24SR04-G 54/90 docid024754 rev 15 the sfgi which stands for the start-up fram e guard time is the minimum time that the reader shall wait after receiving the response of the m24sr04. 5.9.3 pps comm and & response pps (protocol and parameter se lection) command a nd response are defined in iso/iec 14443-4, in the protocol activation of picc type a. the pps command allows to cha nge the data rates of the asce nding (rf host to m24sr04) and descending (m24sr04 to rf host) data rates. the ascending and descending data rates shall be coded as described in table 63 . when the m24sr04 is able to change both data rates, it returns the following response. the data rate of this response is 106 kbps; then, the m24sr04 changes the ascending and descending data rates. table 64 gives the details of the pps response. table 62. pps command - name ins pps0 pps1 crc byte field 0xdx 0x11 1 byte 2 bytes bit field b7-b4 b3-b0 0b0000 b3-b2 b1-b0 ins instruction code did pps1 is present pps1 rfu descending data rate ascending data rate 2 crc bytes table 63. ascending and descending data rate coding value 0b00 0b01 0b10 0b11 data rate 106 kbps rfu rfu rfu table 64. pps response name ins - pps0 byte field 0xdx - 0x11 bit field b8-b5 b4-b1 response code did field 2 crc bytes
docid024754 rev 15 55/90 m24sr04-y M24SR04-G i2c and rf command sets 78 5.10 specific i 2 c command set table 65 lists the commands that can only be issued by the i2c host. 5.10.1 geti2csession command the geti2csession command opens an i2c session if an rf session is not ongoing. table 66 defines the geti2csession command. the geti2csession command does not create a reply. when an rf session is ongoing, the m24srxx will not acknowledge the command. when no rf session is ongoing, the m24srx x will acknowledge the co mmand and open an i2c session. 5.10.2 killrfsession command the killrf session command closes the rf session and op ens an i2c session. table 67 defines the killrfsession command. the killrfsession command does not create a reply. the rf se ssion is closed when the device acknowledges the command. caution: a successful completion of the rf command is not certain. table 65. specific i 2 c commands command name format class byte instruction code brief description geti2csession - - 0x26 open an i 2 c session when the rf session is not ongoing killrfsession - - 0x52 kill the rf session and open an i 2 c session table 66. geti2csession command format ins length 1 byte value 0x26 table 67. killrfsession command format ins length 1 byte value 0x52
rf device operation m24sr04-y M24SR04-G 56/90 docid024754 rev 15 6 rf device operation 6.1 anticollision and device acti vation command set for the rf interface the m24sr04 device supports the command set defined in the nfc-a technology and the type 4a tag platform chapters of the nfc digital protocol v1.0 specification. 6.2 open an rfsession once the rf host has terminated the ant icollision procedure and re trieve the at s response, it shall send the selectapplication command. the m24sr04 will open an rf session. at this point, the rf host can send the applicative command set and the i2c cannot communicate with the m24sr04 without closing first the rf session using the i 2 c killrfsession command. 6.3 close an rfsession the rf host can close the rf session by issuing one of these methods: ? send an s(des) command ? turn off the rf field 6.4 applicative command set the applicative command set is composed of the following command sets: ? the nfc forum type 4 tag command set ? the iso/iec 7816-4 command set ? the proprietary command set
docid024754 rev 15 57/90 m24sr04-y M24SR04-G i2c device operation 78 7 i 2 c device operation the m24sr04 device supports the i 2 c protocol. the device that controls the data transfer is known as the bus master, and the other one as the slave device. a data transfer can only be initiated by the bus master, which also provi des the serial clock for synchronization. the m24sr04 device is a slave in all communications. 7.1 i 2 c communication protocol the i 2 c communication is built on a system of command and reply exchange. the i 2 c host starts the communication by sending a request. once a valid request is received by the m24sr04 device, it carries out an inte rnal operation and creates its answer. as defined in this documen t, and except for th e geti2c session an d kill rf session commands, the definition of a valid req uest is a command with a right crc value. figure 12 shows an exchange of a command and a response between the i2c host and the m24sr04. once the i2c session is open, the i2c host can send a command. the command is composed of: ? a device select field with the r/w bit set to 0. ? the command field. the m24sr04 acknowledges on the reception of each byte. once the m24sr04 is ready to send the answer, the i2c host shall: ? send a device select field with the r/w bit set to 1. ? release the sda line and send an scl clock. the i2c host shall acknowledge on the reception of each byte. figure 12. command and response exchange legend: s is the i 2 c start bit sequence p is the i 2 c stop bit sequence r/w is the 8 th bit of device select. note: a restart during a command and response exchange is not supported by the m24sr04. after a command, the i 2 c host can execute a polling se quence to determine when the response is available. polling sequence: loop on < start (s) + de viceselect with rw=0 + read nack/ack + stop (p) > the response is available as soon as the m24sr04 sends an ack ( host read will a '0'). 069 'hylfh6hohfw ,&exv &rppdqg 6 3 'hylfh6hohfw 5hvsrqvh 6 3 5:  5: 
i2c device operation m24sr04-y M24SR04-G 58/90 docid024754 rev 15 7.2 start condition a start condition is id entified by a falling edge of serial data (sda) while the serial clock (scl) is stable in the high state. a start co ndition must precede any data transfer command. the device continuously monitors (except duri ng an instruction processing) the sda and the scl for a start condition, and does not respond unless one is given. 7.3 stop condition a stop condition is identified by a rising ed ge of serial data (sda) while the serial clock (scl) is stable and driven high. a stop condit ion terminates a command between the device and the bus master. 7.4 i2c token release sequence as explained in the m24sr04-y M24SR04-G se ssion mechanism, the i2c communication is reserved to the i2c ho st when the session toke n has the i2c value. the following sequence explains how to release the i2c value of the session token. i2c communication with the m24sr04 starts with a valid start condition, followed by a device select code. if the delay between the start condition and the following rising edge of the serial clock (scl) that samples the most significan t of the device select exceeds the t start_out_max time (see table 78 ), the i2c logic block is reset and further incoming data transfer is ignored until the next valid start condition. figure 13. i2c token release sequence note: if the above delay is below t start_out_min (see table 78 ), i 2 c session token stays unmodified. if the delay is between t start_out_min and t start_out_max , i 2 c session token might or not be released. this range of delay is not authorized for safe operation. 6&/ !w 67$57b287bpd[  6wduw frqglwlrq 6wrs frqglwlrq 065'hylfh 6hohfwfrgh 6'$ 06y9
docid024754 rev 15 59/90 m24sr04-y M24SR04-G i2c device operation 78 7.5 i2c timeout on clock period during a data transfer on the i 2 c bus, if the serial clock high pulse or serial clock low pulse exceeds t cl_reset value that is the maximum value specified in table 78 , the i 2 c logic block is reset and any further incoming data tr ansfer is ignored until the next valid start condition. if the serial clock high pulse is under the maximum value of t chcl and the serial clock low pulse is under the maximum value of t clch in table 78 , the i 2 c logic block is not reset. for proper operation, the serial clock high pulse should not be higher than t chcl and lesser than t cl_reset , and the serial clock low pulse should not be higher than t chch and lesser t cl_reset . 7.6 acknowledge bit (ack) the acknowledge bit is used to indicate a succ essful byte transfer. the bus transmitter, whether a bus master or a slave device, releas es the serial data (sda) after sending eight bits of data. during the 9th clock pulse period, the receiver pulls the sda low to acknowledge the receipt of the eight data bits. 7.7 data input during data input, the device samples serial da ta (sda) on the rising edge of the serial clock (scl). for a correct device operation, the sda must be stable during the rising edge of the scl, and the sda signal must change only when the scl is driven low. 7.8 i2c device address the device address is the concatenation of the group number coded on 4 bits and the i 2 c address coded on 3 bits, as shown in table 68 . table 68. i 2 c device address format b7-b4b3b2b1b0 0b1010 1 1 0 0bx group number e2 bit e1 bit e0 bit 0 = request 1 = answer
i2c device operation m24sr04-y M24SR04-G 60/90 docid024754 rev 15 7.9 i2c frame format the i 2 c frame is composed of three fields: 1. sod field: contains the device select and the pcb. the pcb field is detailed in section 5.2 . 2. payload field: contains the command and its parameter, as defined in the i 2 c command set. 3. eod field: contains the two crc bytes computed on the sod but excluding the device select byte field. table 69 shows the format of an i 2 c frame. 7.9.1 example of i2c frame commands ndef tag application command this example presents the i 2 c frame of an ndef tag applic ation select command. the i 2 c frame is detailed in table 70 . before sending a new command, the i 2 c host can send an i 2 c frame to read the m24sr04 answer to the ndef tag application select command. table 69. i 2 c frame format i 2 c frame sod payload eod 0xac or 0xad 1 byte 1 to 251 bytes 2 bytes device select 0xac: to send a request to the m24sr04 0xad: to read a response of the m24sr04 pcb field i 2 c command or i 2 c answer 2 crc bytes table 70. i 2 c host to m24sr04 field sod payload eod value 0xac 0x02 or 0x03 command field 35 c0 or df be device select pcb field 0x00 a4 04 00 07 d2 76 00 00 85 01 01 00 2 crc bytes
docid024754 rev 15 61/90 m24sr04-y M24SR04-G i2c device operation 78 figure 14 shows the i 2 c frame of the ndef tag application select command. figure 14. ndef tag application select command table 71. m24sr04 to i 2 c host field sod payload eod i 2 c host to m24sr04 m24sr04 to i 2 c host value 0xad 0x02 or 0x03 0x90 00 f1 09 or 2d 53 device select pcb field i 2 c command 2 crc bytes ?? 06y9 ,e&exv ,e&exv $&. ? $&. ?e $&. $&. %\whvhqwe\wkh,e&krvw ?e $&. ? $&. ? $&. ?? $&. ? $&. ? $&. ? $&. ??? $&. ? $&. ? $&. [ $&. [& $&. w xxx xxx (qgriwkh wudqvplvvlrq riwkhuhtxhvw 6wduwriwkh wudqvplvvlrq riwkhuhtxhvw ,e&exv < ^ ?? < ?? < ? < ?& < ?? e}< xxx 6wduwriwkh wudqvplvvlrq riwkhdqvzhu $&. $fnqrzohgjhe\wkh,e&krvw %\whvhqwe\wkh065[[< w /hjhqg [ [ 6 6wduwvhqwe\wkh,e&krvw 3 6wrsvhqwe\wkh,e&krvw v}(?z ??v?u]??]}v }(?zv?? ? $fnqrzohgjhe\065[[< [   $&. ?  6 $&. 1r$&. 1r$fnqrzohgjhe\wkh,e&krvw %\whvhqwe\wkh065[[< [ 3 6wrsvhqwe\wkh,e&krvw
i2c device operation m24sr04-y M24SR04-G 62/90 docid024754 rev 15 7.10 open an i2c session to open an i2c session, the i2c host shall send either the getsession command or the killrfsession command. the getses sion command opens an i2c session if an rf session in not currently opened. a killrfsession command closes the current rf session if it exist and opens an i2c session. when an i2c session is opened, the rf ho st cannot communicate with the m24sr04 and cannot close the i2c session. 7.11 close the i2c session there are three ways to close an i2c session: ? turn off the vcc power supply ? send the i2c token release sequence ? wait for the i2c watchd og when it is enabled ? wait for the i2c timeout on clock period
docid024754 rev 15 63/90 m24sr04-y M24SR04-G functional procedures 78 8 functional procedures this section describes some procedure to access the memory or manage its protection. 8.1 selection of an ndef message the rf or i2c host shall use this procedure to detect the ndef message inside an m24sr04. the ndef detection procedure is as follows: 1. open an rf or an i2c session 2. send the selectnd eftagapplication command 3. select the cc file 4. read the cc file 5. select the ndef file. 8.2 reading of an ndef message the rf or i2c host executes the ndef read procedure to read the ndef file. 1. detect successfully t he ndef file using the ndef detection procedure 2. check that the read access without any security is gr anted for the ndef file from the information provided by the cc file 3. select the ndef file 4. read the ndef file. note: reading the ndef file should not go beyond the ndef length field (nlen), which indicates the size of the ndef message stored in the ndef file. 8.3 reading a locked ndef file the rf or i2c host executes this procedur e to read an ndef file which has been locked previously. 1. select the ndef tag application 2. select the ndef file 3. verify the read password by using the verify command 4. read the data in the ndef file.
functional procedures m24sr04-y M24SR04-G 64/90 docid024754 rev 15 8.4 locking an ndef file the rf or i2c host executes this procedure to protect an ndef file. 1. select the ndef tag application 2. check the right access provided by the cc file 3. select the ndef file 4. transmit the ndef file write password by using the verify command 5. lock the ndef file by sending the enable verification command. 8.5 unlocking an ndef file the rf or i2c host executes this procedure to unlock an ndef file which has been locked previously. 1. select the ndef tag application 2. select the ndef file 3. verify the ndef file write password or t he i2c password by using the verify command 4. unlock the ndef file by sending the disable verification command. 8.6 reaching the read-onl y state for an ndef file the rf or i2c host executes this procedure to reach the read-only state for an ndef file. 1. select the ndef tag application 2. select the ndef file 3. transmit the ndef file write password or the i2c password by using the verify command 4. send an enablepermanentstate command as the write access right of the previous select ndef file. 8.7 changing an ndef password procedure the rf or i2c host could use this procedure to change one ndef password. it can be a read or write password. 1. select the ndef tag application 2. select the ndef file 3. transmit the ndef file write password or the i2c password by using the verify command 4. change the password by sending a changereferencedata command.
docid024754 rev 15 65/90 m24sr04-y M24SR04-G functional procedures 78 8.8 changing a file type procedure the rf or i2c host executes this procedure to change the file type of a file for which all access rights were previously granted. 1. select the ndef tag application 2. select the file to be modified 3. set the file length to 0x00 using the updatebinary command 4. send an updatefiletype command with the new file type as data. 8.9 updating a ndef file when there's enough space in the file to update it with new content, the following steps should be follo wed to update the ndef message: 1. select the ndef tag application 2. select the ndef file 3. unlock the ndef file if necessary 4. write the ndef length to 0x0000 with the update binary command. 5. write the ndef message in the ndef messag e field using one or more update binary commands. 6. write the ndef length of the ndef me ssage using the update update command. it is recommended the ndef length is read ba ck and checked against the desired value to ensure the update sequence has been correctly performed.
uid: unique identifier m24sr04-y M24SR04-G 66/90 docid024754 rev 15 9 uid: unique identifier the m24sr04 is uniquely identified by a 7 byte s unique identifier (uid). the uid is a read- only code and comprises: ? the ic manufacturer code on 1 byte (0x02 for stmicroelectronics). ? the product code on 1 byte. ? a device number on 5 bytes. table 72 describes the uid format. table 72. uid format 0x02 0x86 or 0x8e (1) 1. automative grade 5 bytes ic manufacturer code m24sr04 product code device number
docid024754 rev 15 67/90 m24sr04-y M24SR04-G maximum ratings 78 10 maximum ratings stressing the device above the ratings listed in table 73 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 specif ication is not implied. exposure to absolute maximum rating conditions for extended periods may affect the device reliability. table 73. absolute maximum ratings symbol paramete rmin.max.unit t a ambient operating temperature for grade 6 - 40 85 c ambient operating temperature for grade 5 - 25 85 t stg storage temperature ufdfpn8, so8, tssop8 - 65 150 c storage temperature sawn bumped wafer (kept in its antistatic bag) 15 25 c storage time - 9 months t lead lead temperature during soldering ufdfpn8, so8, tssop8 see note (1) 1. compliant with jedec std j-std-020d (for small body, sn-pb or pb assembly), the st ecopack ? 7191395 specification, and the european directive on re strictions on hazardous substances (rohs directive 2011/65/eu, july 2011). c v io i 2 c input or output range and gpo - 0.50 6.5 v i cc (2) 2. based on characterization, not tested in production. maximum absorbed power = 100 mw @ 7.5 a/m rf supply current ac0 - ac1 - 100 ma v max_1 (2) rf input voltage amplitude between ac0 and ac1, gnd pad left floating vac0-vac1 - 10 v v max_2 (2) ac voltage between ac0 and gnd, or ac1 and gnd vac0-gnd or vac1-gnd - 0.5 4.5 v v esd electrostatic discharge voltage (human body model) (3) 3. aec-q100-002 (compliant with jedec std jesd22-a114a, c1 = 100 pf, r1 = 1500 , r2 = 500 ) ac0-ac1 - 1000 v v esd electrostatic discharge voltage (human body model) (3) other pads - 3500 v
i2c dc and ac parameters m24sr04-y M24SR04-G 68/90 docid024754 rev 15 11 i 2 c dc and ac parameters this section summarizes the operating and measurement conditions, and the dc and ac characteristics of the device in i 2 c mode. 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 op erating conditions in their circuit match the measurement conditions when relying on the quoted parameters. figure 15. ac test measurement i/o waveform table 74. i 2 c operating conditions symbol parameter min. max. unit v cc supply voltage range y 2.7 5.5 v supply voltage range g 2.4 5.5 t a ambient operating temper ature for grade 6 ?40 85 c ambient operating temper ature for grade 5 -25 85 table 75. ac test measurement conditions symbol parameter min. max. unit c l load capacitance 100 pf t r, t f input rise and fall times - 50 ns v hi-lo input levels 0.2 v cc to 0.8 v cc v v ref(t) input and output timing reference levels 0.3 v cc to 0.7 v cc v table 76. input parameters symbol parameter min. max. unit c in input capacitance (sda) - 8 pf c in input capacitance (other pins) - 6 pf t ns pulse width ignored (input filter on scl and sda) - 80 ns $,&  9 &&  9 &&  9 &&  9 && ,qsxwdqg2xwsxw 7lplqj5hihuhqfh/hyhov ,qsxw/hyhov
docid024754 rev 15 69/90 m24sr04-y M24SR04-G i2c dc and ac parameters 78 table 77. i 2 c dc characteristics symbol parameter test condition min. max. unit i li input leakage current (scl, sda) v in = v ss or v cc device in standby mode - 2 a i lo output leakage current sda in hi-z, external voltage applied on sda: v ss or v cc - 2a i cc0 standby power mode supply current v cc = 3.3 v, with rf on - 30 a v cc = 3.3 v, with rf off - 5 v cc = 5.5 v, with rf on (1) - 30 v cc = 5.5 v, with rf off - 5 i cc1 supply current (i 2 c session open) v cc = 3.3 v, with rf on - 150 a v cc = 3.3 v, with rf off - 150 v cc = 5.5 v, with rf on - 150 v cc = 5.5 v, with rf off - 150 i cc2 supply current (2) (read binary) v cc = 3.3 v (f c = 1 mhz), with rf on (3) -250 a v cc = 3.3 v (f c = 1 mhz), with rf off (3) -200 v cc = 5.5 v (f c = 1 mhz),with rf on (3) -250 v cc = 5.5 v (f c = 1 mhz),with rf off (3) -200 i cc3 supply current (2) (update binary) v cc = 3.3 v (f c = 1 mhz),with rf on (3) -550 a v cc = 3.3 v (f c = 1 mhz),with rf off (3) -500 v cc = 5.5 v (f c = 1 mhz), with rf on (3) -550 v cc = 5.5 v (f c = 1 mhz), with rf off (3) -500 v il input low voltage (sda, scl) v cc = 2.7 v (grade y) v cc = 2.4 v (grade g) v cc = 5.5 v -0.45 0.3 v cc v v ih input high voltage (sda, scl) v cc = 2.7 v (grade y) v cc = 2.4 v (grade g) v cc = 5.5 v 0.7 v cc 6.5 v v il input low voltage (rf disable) v cc = 2.7 v (grade y) v cc = 2.4 v (grade g) v cc = 5.5 v - 0.45 v v ih input high voltage (rf disable) v cc = 2.7 v (grade y) v cc = 2.4 v (grade g) v cc = 5.5 v 1.4 -v v ol output low voltage (sda) i ol = 3 ma, v cc = 5.5 v - 0.4 v output low voltage (gpo) i ol = 1 ma, v cc = 2.7 v (grade y) or 2.4 v (grade g) to v cc = 5.5 v -0.4v 1. when an rf session is opened, i cc corresponds to the standby power mode. 2. characterized only. 3. input levels as defined in figure 15 .
i2c dc and ac parameters m24sr04-y M24SR04-G 70/90 docid024754 rev 15 table 78. i 2 c ac characteristics (400 khz) test conditions specified in table 74 (preliminary data based on design simulations) symbol alt. parameter min. max. unit f c f scl clock frequency 0.05 400 khz t chcl (1) t high clock pulse width high 0.6 20000 s t clch (2) t low clock pulse width low 1.3 20000 s t cl_reset - clock reset 40000 - s t xh1xh2 t r input signal rise time (3) (3) ns t xl1xl2 t f input signal fall time (3) (3) ns t dl1dl2 t f sda (out) fall time 20 300 ns t dxcx t su:dat data in set up time 100 - ns t cldx t hd:dat data in hold time 0 - ns t clqx (4) t dh data out hold time 100 - ns t clqv (5) t aa clock low to next data valid (access time) - 900 ns t chdx (6) t su:sta start condition set up time 600 - ns t dlcl t hd:sta start condition hold time 600 - ns t chdh t su:sto stop condition set up time 600 - ns t dhdl t buf time between stop condition and next start condition 1300 - ns t w t wr i2c write time in one page - 5 ms i2c write time up to 246 bytes - 150 ms t ns (7) - pulse width ignored (input filter on scl and sda) - 80 ns t start_out - delay for i2c token release 20 40 ms 1. t chcl timeout. 2. t clch timeout. 3. there is no min. or max. value for the input signal rise and fall times. it is however recommended by the i2c specification t hat the input signal rise and fall times be more than 20 ns and less than 300 ns when f c < 400 khz. 4. to avoid spurious start and stop condi tions, a minimum delay is placed between sc l=1 and the falling or rising edge of sda. 5. t clqv is the time (from the falling edge of scl) required by the sda bus line to reach 0.8v cc in a compatible way with the i 2 c specification (which specifies t su:dat (min) = 100 ns), assuming that the r bus c bus time constant is less than 500 ns (as specified in figure 17 ). 6. for a restart condition, or following a write cycle. 7. characterized only, not tested in production.
docid024754 rev 15 71/90 m24sr04-y M24SR04-G i2c dc and ac parameters 78 table 79. i 2 c ac characteristics (1 mhz) test conditions specified in table 74 (preliminary data based on design simulations) symbol alt. parameter min. max. unit f c f scl clock frequency 0.05 1000 khz t chcl (1) 1. t chcl timeout. t high clock pulse width high 260 - ns t clch (2) 2. t clch timeout. t low clock pulse width low 500 - ns t xh1xh2 t r input signal rise time (3) 3. there is no min. or max. value for the input signal rise and fall times. it is however recommended by the i2c specification that the input signal rise and fall times be less than 120 ns when f c < 1 mhz. (3) ns t xl1xl2 t f input signal fall time (3) (3) ns t dl1dl2 t f sda (out) fall time 20 120 ns t dxcx t su:dat data in set up time 50 - ns t cldx t hd:dat data in hold time 0 - ns t clqx t dh data out hold time 100 - ns t clqv (4)(5) 4. to avoid spurious start and stop conditions, a mini mum delay is placed between scl=1 and the falling or rising edge of sda. 5. t clqv is the time (from the falling edge of scl) required by the sda bus line to reach 0.8v cc in a compatible way with the i 2 c specification (which specifies t su:dat (min) = 100 ns), assuming that the r bus c bus time constant is less than 500 ns (as specified in figure 17 ). t aa clock low to next data valid (access time) - 450 ns t chdx (6) 6. for a restart condition, or following a write cycle. t su:sta start condition set up time 250 - ns t dlcl t hd:sta start condition hold time 250 - ns t chdh t su:sto stop condition set up time 250 - ns t dhdl t buf time between stop condition and next start condition 500 - ns t w t wr i2c write time in one page - 5 ms i2c write time up to 246 bytes - 150 ms t ns (7) 7. characterized only, not tested in production. - pulse width ignored (input filter on scl and sda) -80ns
i2c dc and ac parameters m24sr04-y M24SR04-G 72/90 docid024754 rev 15 figure 16. i 2 c ac waveforms 11.1 i 2 c timing measur ement condition figure 17 represents the maximum rbus value vers us bus parasitic capacitance (cbus) for an i 2 c bus at maximum frequency f c = 400 khz. figure 17. maximum rbus value with f c = 400 khz 3#, 3$!)n 3#, 3$!/ut 3#, 3$!)n t#(#, t$,#, t#($8 3tart condition t#,#( t$8#8 t#,$8 3$! )nput 3$! #hange t#($( t$($, 3top condition $atavalid t#,16 t#,18 t#($( 3top condition t#($8 3tart condition 7ritecycle t7 !)e 3tart condition t#(#, t8(8( t8(8( t8,8, t8,8, $atavalid t$,$, aib       "uslinecapacitorp& "uslinepull upresistor k )#bus master -xxx 2 bus 6 ## # bus 3#, 3$! 2 bus # bus ns (ere2 bus # bus ns k ? p& 4he2x#timeconstant mustbebelowthens timeconstantlinerepresented ontheleft bus bus
docid024754 rev 15 73/90 m24sr04-y M24SR04-G i2c dc and ac parameters 78 figure 18 represents the maximum rbus value vers us bus parasitic capacitance (cbus) for an i 2 c bus at maximum frequency f c = 1 mhz. figure 18. maximum rbus value with f c = 1 mhz figure 19. i 2 c bus protocol      "uslinecapacitorp& "uslinepull upresistork -36 )#bus master -xxx 2 bus 6 ## # bus 3#, 3$! (ere 2 bus # bus ns 2 bu s # bu s ns   4he2 bus # bus timeconstant mustbebelowthens timeconstantlinerepresented ontheleft  3#, 3$! 3#, 3$! 3$! 34!24 #ondition 3$! )nput 3$! #hange !)" 34/0 #ondition     -3" !#+ 34!24 #ondition 3#,     -3" !#+ 34/0 #ondition
i2c dc and ac parameters m24sr04-y M24SR04-G 74/90 docid024754 rev 15 table 80. device select code device type identifier (1) chip enable address rw b7 b6 b5 b4 b3 b2 b1 b0 device select code 1 0 1 0 1 1 0 rw 1. the most significant bit, b7, is sent first.
docid024754 rev 15 75/90 m24sr04-y M24SR04-G gpo parameters 78 12 gpo parameters this section lists the timing of the gpo according to its configuration. table 81. gpo timings measurement (1) gpo field i/f condition command symbol typ. unit session open 0xx1 i 2 c gpo low when session active kill session cmdstptogplow *add 100 s for boot after por 15* s get session 15* s i 2 c gpo return hz i 2 c token release sequence answerlblbtogphz 105 ns 0x1x rf gpo low when session active ndef select cmdeoftogplow 170 s rf gpo return hz deselect cmdeoftogphz 370 s wip 0xx2 i 2 c gpo low when programming update binary cmdstptogplow 45 s i 2 c writing time duration (no time extension) 5ms rf gpo low when programming update binary cmdeoftogplow 75 s 0x2x rf writing time duration (no time extension) 5ms answer ready 0xx3 i 2 c gpo low when a command is computed readbinary or updatebinary cmdstptogplow 55 or 5 s ms i 2 c gpo return hz on new command all commands after newcmdlbfb or answerlbfb 105 ns message in progress 0x3x rf gpo low when modifying ndef updatebinary (msg length #0) cmdeoftogplow 75 s rf gpo low when modifying ndef updatebinary writing time duration (no time extension) 5ms interrupt 0xx4 i 2 c gpo low after receiving an interrupt command sendinterrupt cmdstptogplow 50 s i 2 c gpo return hz all commands after newcmdlbfb or answerlbfb 105 ns 0x4x rf gpo low after receiving an interrupt command sendinterrupt cmdeoftogplow 75 s rf pulse duration 540 s
gpo parameters m24sr04-y M24SR04-G 76/90 docid024754 rev 15 state control 0xx5 i 2 c gpo low when reset reset gpo cmdstptogplow 40 s i 2 c gpo return hz when set set gpo cmdstptogphz 40 s 0x5x rf gpo low when reset reset gpo cmdeoftogplow 60 s rf gpo return hz when set set gpo cmdeoftogphz 60 s rf busy 0x6x rf gpo low after receiving an rf command anticollision command or start of rf disturb (command using another rf protocol) cmdsoftogplow 6 s rf gpo return hz after deselection or rf command in another protocol deselect or end of rf disturb (command using another rf protocol) cmdeoftogphz 460 s 1. characterized only. table 81. gpo timings measurement (1) (continued) gpo field i/f condition command symbol typ. unit
docid024754 rev 15 77/90 m24sr04-y M24SR04-G write cycle definition 78 13 write cycle definition table 82. write cycle definition (1) symbol parameter test conditions min max units ncycle write cycle endurance (2) t a 25 c, v cc(min) < v cc < v cc(max) - 1,000,000 write cycle t a 85 c, v cc(min) < v cc < v cc(max) - 600,000 1. a write cycle is calculated per byte, and corresponds to a write to this byte. 2. write cycle endurance is defined by characterization and qualification.
rf electrical parameters m24sr04-y M24SR04-G 78/90 docid024754 rev 15 14 rf electrical parameters this section summarizes the operating and measurement conditions, and the dc and ac characteristics of the device in rf mode. the parameters in the dc and ac characterist ics tables that follow are derived from tests performed under the measurement conditi ons summarized in the relevant tables. designers should check that the operating cond itions in their circuit match the measurement conditions when relying on the quoted parameters. table 83. default operating conditions symbol parameter min. max. unit t a ambient operating temperature for grade 6 ?40 85 c ambient operating temperature for grade 5 -25 85 table 84. rf characteristics (1) symbol parameter condi tion min typ max unit f c external rf signal freq uency 13.553 13.56 13.567 mhz h_iso operating field according to iso t a = 0 c to 50 c 1500 - 7500 ma/m h_extended operating field in extended temperature range t a = -40 c to 85 c 500 - 7500 ma/m mi carrier 100% carrier modulation index mi=(a-b)/(a+b) 90 - 100 % t 1 pause a length - 28/f c - 40.5/f c s t 2 pause a low time - 7/f c -t1s t 3 pause a rise time - 1.5xt4 - 16/f c s t 4 pause a rise time section - 0 - 6/f c s t min cd minimum time from carrier generation to first data from h-field min - - 5 ms w t rf write time (including internal verify) for one page --6-ms c tun internal tuning capacitor in so8 (2) f c = 13.56 mhz 22.5 25 27.5 pf t rf_off rf off time chip reset - - 5 ms 1. all timing characterizations were performed on a re ference antenna with the following characteristics: external size: 75 mm x 48 mm number of turns: 6 width of conductor: 0.6 mm space between two conductors: 0.6 mm value of the tuning capacitor in so8: 25 pf (m24sr04) value of the coil: 5 h tuning frequency: 14.2 mhz. 2. characterized only, at room temperature only, measured at vac0-vac1 = 2 v peak to peak at 13.56 mhz.
docid024754 rev 15 79/90 m24sr04-y M24SR04-G package information 86 15 package information in order to meet environmental requirements, st offers these devices in different grades of ecopack ? packages, depending on their level of environmental compliance. ecopack ? specifications, grade definitions a nd product status are available at: www.st.com . ecopack ? is an st trademark. 15.1 so8n package information figure 20. so8n - 8-lead pl astic small outline, 150 mils body width, package outline 1. drawing is not to scale. table 85. so8n - 8-lead plastic small outline, 150 mils body width, package data symbol millimeters inches (1) min typ max min typ max a - - 1.750 - - 0.0689 a1 0.100 - 0.250 0.0039 - 0.0098 a2 1.250 - 0.0492 - - b 0.280 - 0.480 0.0110 - 0.0189 c 0.170 - 0.230 0.0067 - 0.0091 d 4.800 4.900 5.000 0.1890 0.1929 0.1969 e 5.800 6.000 6.200 0.2283 0.2362 0.2441 e1 3.800 3.900 4.000 0.1496 0.1535 0.1575 e - 1.270 - - 0.0500 - h 0.250 - 0.500 0.0098 - 0.0197 k 0 - 8 0 - 8 l 0.400 - 1.270 0.0157 - 0.0500 62$b9 %  ccc b $ c  % hx? ! k pp , ! *$8*(3/$1( e ! ,
package information m24sr04-y M24SR04-G 80/90 docid024754 rev 15 figure 21. so8n - 8-lead plastic small outline, 150 mils bosy width, package recommended footprint l1 - 1.040 - - 0.0409 - ccc - - 0.100 - - 0.0039 1. values in inches are converted from mm and rounded to 4 decimal digits. table 85. so8n - 8-lead plastic small outline, 150 mils body width, package data (continued) symbol millimeters inches (1) min typ max min typ max 2b621b)3b9   [  
docid024754 rev 15 81/90 m24sr04-y M24SR04-G package information 86 15.2 tssop8 package information figure 22. tssop8 - 8-lead thin shrink small outline, 3 x 4 mm, 0.5 mm pitch package outline 1. drawing is not to scale. / table 86. tssop8 - 8-lead thin shrink small outline, 169 mils width, package data symbol millimeters inches (1) 1. values in inches are converted from mm and rounded to 4 decimal digits. typ min max typ min max a - - 1.200 - - 0.0472 a1 0.050 - 0.150 0.0020 - 0.0059 a2 0.800 1.000 1.050 0.0315 0.0394 0.0413 b 0.190 - 0.300 0.0075 - 0.0118 c 0.090 - 0.200 0.0035 - 0.0079 cp - - 0.100 - - 0.0039 d 2.900 3.000 3.100 0.1142 0.1181 0.1220 e - 0.650 - - 0.0256 - e 6.200 6.400 6.600 0.2441 0.2520 0.2598 e1 4.300 4.400 4.500 0.1693 0.1732 0.1772 l 0.450 0.600 0.750 0.0177 0.02636 0.0295 l1 - 1.000 - - 0.0394 - 0 8 0 - 8 76623$0b9  w  >   r  e >  ?   ?? 
package information m24sr04-y M24SR04-G 82/90 docid024754 rev 15 15.3 ufdfpn8 package information figure 23. ufdfpn8 - 8-lead, 2 x 3 mm, 0.5 mm pitch ultra thin profile fine pitch dual flat package outline 1. max package warpage is 0.05 mm. 2. exposed copper is not systematic and can appear parti ally or totally according to the cross section. 3. drawing is not to scale. 4. the central pad (the area e2 by d2 in the above illustration) must be either connected to v ss or left floating (not connected) in the end application. =:eb0(b9 7rsylhz 3lq ,'pdunlqj 6lghylhz 6hdwlqjsodqh hhh fff & & &  & % $   1 ' ( ddd ddd $ $ $ [ [ 'dwxp$ 7huplqdowls 'hwdlo3$ (yhqwhuplqdo / / / h h 3lq ,'pdunlqj %rwwrpylhz 6hh'hwdlo3$ h h  1'[ ' / / ( . / e
docid024754 rev 15 83/90 m24sr04-y M24SR04-G package information 86 table 87. ufdfpn8 - 8- lead, 2 x 3 mm, 0.5 mm pitch ultra thin profile fine pitch dual flat package mechanical data symbol millimeters inches (1) 1. values in inches are converted from mm and rounded to 4 decimal digits. min typ max min typ max a 0.450 0.550 0.600 0.0177 0.0217 0.0236 a1 0.000 0.020 0.050 0.0000 0.0008 0.0020 b (2) 2. dimension b applies to plated terminal and is me asured between 0.15 and 0.30 mm from the terminal tip. 0.200 0.250 0.300 0.0079 0.0098 0.0118 d 1.900 2.000 2.100 0.0748 0.0787 0.0827 d2 (rev mc) 1.200 - 1.600 0.0472 - 0.0630 e 2.900 3.000 3.100 0.1142 0.1181 0.1220 e2 (rev mc) 1.200 - 1.600 0.0472 - 0.0630 e - 0.500 - - 0.0197 - k (rev mc) 0.300 - - 0.0118 - - l 0.300 - 0.500 0.0118 - 0.0197 l1 - - 0.150 - - 0.0059 l3 0.300 - - 0.0118 - - aaa - - 0.150 - - 0.0059 bbb - - 0.100 - - 0.0039 ccc - - 0.100 - - 0.0039 ddd - - 0.050 - - 0.0020 eee (3) 3. applied for exposed die paddle and terminals. exclude embedded part of exposed die paddle from measuring. - - 0.080 - - 0.0031
package information m24sr04-y M24SR04-G 84/90 docid024754 rev 15 15.4 wfdfpn8 package information figure 24. wfdfpn8 (mlp8) 8-lead, 2 x 3 mm, 0.5 mm pitch very thin fine pitch dual flat package outline 1. drawing is not to scale. table 88. wfdfpn8 8-lead thin fine pitch dual flat package no lead mechanical data symbol millimeters inches (1) min typ max min typ max a 0.700 0.750 0.800 0.0276 0.0295 0.0315 a1 0.025 0.045 0.065 0.0010 0.0018 0.0026 b 0.200 0.250 0.300 0.0079 0.0098 0.0118 d 1.900 2.000 2.100 0.0748 0.0787 0.0827 e 2.900 3.000 3.100 0.1142 0.1181 0.1220 e - 0.500 - - 0.0197 - l1 - - 0.150 - - 0.0059 l3 0.300 - - 0.0118 - - d2 1.050 - 1.650 0.0413 - 0.0650 e2 1.050 - 1.450 0.0413 - 0.0571 $<b0(b9 7rsylhz 3lq,'pdunlqj 6lghylhz 6hdwlqjsodqh %rwwrpylhz 'dwxp< 7huplqdowls 'hwdlo3= 6hh= 'hwdlo hhh / / / ( ( 1;e ' ' ( 1' [h . h ' $ $ # & h 'dwxp< eee ggg & & - - 3lq   $ % ddd # [ ddd # [ fff #  $ % h
docid024754 rev 15 85/90 m24sr04-y M24SR04-G package information 86 k 0.400 - - 0.0157 - - l 0.300 - 0.500 0.0118 - 0.0197 nx (2) 88 nd (3) 44 aaa - - 0.150 - - 0.0059 bbb - - 0.100 - - 0.0039 ccc - - 0.100 - - 0.0039 ddd - - 0.050 - - 0.0020 eee (4) - - 0.080 - - 0.0031 1. values in inches are converted fr om mm and rounded to four decimal digits. 2. nx is the number of terminals. 3. nd is the number of terminals on ?d? sides. 4. applied for exposed die paddle and terminals. excl uding embedding part of exposed die paddle from measuring. table 88. wfdfpn8 8-lead thin fine pitch dual flat package no lead mechanical data (continued) symbol millimeters inches (1) min typ max min typ max
part numbering m24sr04-y M24SR04-G 86/90 docid024754 rev 15 16 part numbering note: parts marked as ?es?, ?e? or accompanied by an engineering sample notification letter, are not yet qualified and therefore not yet ready to be used in production and any consequences deriving from such usage will not be at st char ge. in no event, st wi ll be liable for any customer usage of these engineering samples in production. st quality has to be contacted prior to any decision to use these engineering samples to run qualification activity. table 89. ordering information scheme for packaged devices example: m24 sr 04- y mn 6 t /2 device type m24 = i 2 c interface device device feature sr = short range memory size 04 = memory size in kbits voltage range y = 2.7 to 5.5 v g = 2.4 to 5.5 v, only available in grade 5 (-25 to 85 c) package mn = so8n dw = tssop8 mc = ufdfpn8 mf = wfdfpn8 (1) sg12i = 120 m 15 m bumped and sawn inkless wafer on 8-inch frame (2) 1. package for automotive grade. 2. sg12i is only available for voltage range ?g?. device grade 5 = industrial: device tested with standard test flow over -25 to 85 c 6 = industrial: device tested with standard test flow over ?40 to 85 c (no parameter for sg12i) option t = tape and reel packing (no parameter for sg12i) capacitance /2 = 25 pf
docid024754 rev 15 87/90 m24sr04-y M24SR04-G revision history 89 17 revision history table 90. document revision history date revision changes 13-jun-2013 1 initial release. 29-aug-2013 2 added ufdfpn8 drawing on page 1 . edited section 2.6: rf disable . updated i cc0 parameter in table 77: i2c dc characteristics and added a note. added section 15.3: ufdfpn8 package information and ufdfpn8 package. 28-oct-2013 3 updated the capacitance value to 25 pf. removed all ?battery assisted? and ?wire po wer management? information (conditioned for a future use). moved geti2csession command before section 5.10.2: killrfsession command . added 2 new sections: section 7.4: i2c token release sequence and section 7.5: i2c timeout on clock period . removed ?did field? information from section 7.9: i2c frame format and from table 69 to table 71 . updated different values in table 73: absolute maximum ratings , table 74: i2c operating conditions , table 77: i2c dc characteristics , table 78: i2c ac characteristics (400 khz) , table 79: i2c ac characteristics (1 mhz) , and table 84: rf characteristics , and removed all ?(forecast data)? from the table titles. moved rf characteristics table before table 84: rf characteristics , deleted footnote (1) and updated footnote (2). fully edited. 08-nov-2013 4 added a note to section 7.1: i2c communication protocol below figure 12: command and response exchange . 18-dec-2013 5 changed the datasheet status from ?p reliminary data? to ?production data?. restored the whole content of table 77: i2c dc characteristics . updated the capacitor values in section 2.5.1: operating supply voltage vcc . removed bullet (4) from section 8.6: reaching the r ead-only state for an ndef file . updated v esd value in table 73: absolute maximum ratings , i cc values in table 77: i2c dc characteristics , and h_extended value in table 84: rf characteristics . added details to ?s(wtx)? bullet in section 5.4: s-block format . added sentences to section 5.6.8: updatebinary command and to section 5.8.3: disablepermanentstate command . changed ?0x001e? value into ?0x001f? in table 56: statecontrol command format . updated values in table 61: ats response . added note (4) to figure 10: changing the read access right to an ndef file and figure 11: changing the write access right to an ndef file .
revision history m24sr04-y M24SR04-G 88/90 docid024754 rev 15 26-feb-2014 6 updated figure 5: gpo configured as i2c answer ready (gpo field = 0xx3) and figure 8: gpo configured as state c ontrol (gpo field = 0xx5 or 0x5x) . added i 2 c text to the note below table 22: s-block detailed format . edited the third paragraph of section 5.8.1: extend edreadbinary command . added section 5.8.4: updatefiletype command and section 8.8: changing a file type procedure . updated bullet 3 in section 7.9: i2c frame format , and the payload row of table 70: i2c host to m24sr04 . updated bullet 2 in section 7.11: close the i2c session . edited v io row and removed v esd (machine model) row from table 73: absolute maximum ratings . updated i cc rows and added a note to table 77: i2c dc characteristics . updated figure 20: so8n - 8-lead plastic small outline, 150 mils body width, package outline . fixed a typo in figure 23: ufdfpn8 - 8-lead, 2 x 3 mm, 0.5 mm pitch ultra thin profile fine pitch dual flat package outline title: ufdpfn8 changed into ufdfpn8. 11-jun-2014 7 added data for automotive grade in table 6: field list and table 72: uid format added wfdfpn8 package for automotive grade under qualification added figure 24: wfdfpn8 (mlp8) 8-lead, 2 x 3 mm, 0.5 mm pitch very thin fine pitch dual flat package outline added wfdfpn8 package for automotive grade under qualification added table 88: wfdfpn8 8-lead thin fine pitch dual flat package no lead mechanical data added mf = wfdfpn8 inside table 89: ordering information scheme for packaged devices inserted byte <04> between a4 and 00 inside figure 14: ndef tag application select command 20-nov-2014 8 added: ? new root part number on cover page ? single supply voltage for i2c for grade g and note (1) updated: ? figure 14 ? figure 73 , figure 74 , figure 77 , figure 78 , figure 83 , figure 89 20-aug-2015 9 added ? figure 21: so8n - 8-lead plastic sma ll outline, 150 mils bosy width, package recommended footprint updated ? section 15: package information ? table 73: absolute maximum ratings ? table 74: i2c operating conditions ? table 78: i2c ac characteristics (400 khz) ? table 89: ordering information scheme for packaged devices table 90. document revision history (continued) date revision changes
docid024754 rev 15 89/90 m24sr04-y M24SR04-G revision history 89 04-mar-2016 10 updated: ? features ? section 2.7.6: state cont rol configuration (gpo field = 0xx5 or 0x5x) added: ? table 7: details about i2c watchdog ? table 82: write cycle definition 27-apr-2016 11 updated: ? features ? table 73: absolute maximum ratings ? table 82: write cycle definition added: ? section 13: write cycle definition 14-oct-2016 12 updated: ? section 3.2.2: changi ng the read access right to ndef files ? section 3.2.3: changi ng the write access right to ndef files ? section 5.6.5: ndef select command ? section 5.8.4: updatefiletype command ? section 5.8.5: sendinterrupt command ? section 8.2: reading of an ndef message ? section 8.5: unlocking an ndef file ? section 8.6: reaching the read-only state for an ndef file ? section 16: part numbering added: ? section 8.9: updating a ndef file 18-nov-2016 13 updated: ? table 35: r-apdu of the readbinary command ? table 47: r-apdu of the extendedreadbinary command ? table 89: ordering information scheme for packaged devices 07-feb-2017 14 added: ? note 4. on figure 23.: ufdfpn8 - 8-lead, 2 x 3 mm, 0.5 mm pitch ultra thin profile fine pitch dual flat package outline updated: ? table 89: ordering information scheme for packaged devices 08-feb-2017 15 package sb12i replaced with sg12i. updated: ? table 73: absolute maximum ratings ? table 89: ordering information scheme for packaged devices table 90. document revision history (continued) date revision changes
m24sr04-y M24SR04-G 90/90 docid024754 rev 15 important notice ? please read carefully stmicroelectronics nv and its subsidiaries (?st?) reserve the right to make changes, corrections, enhancements, modifications, and improvements to st products and/or to this document at any time without notice. purchasers should obtain the latest relevant in formation on st products before placing orders. st products are sold pursuant to st?s terms and conditions of sale in place at the time of o rder acknowledgement. purchasers are solely responsible for the choice, selection, and use of st products and st assumes no liability for application assistance or the design of purchasers? products. no license, express or implied, to any intellectual property right is granted by st herein. resale of st products with provisions different from the information set forth herein shall void any warranty granted by st for such product. st and the st logo are trademarks of st. all other product or service names are the property of their respective owners. information in this document supersedes and replaces information previously supplied in any prior versions of this document. ? 2017 stmicroelectronics ? all rights reserved


▲Up To Search▲   

 
Price & Availability of M24SR04-G

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X