0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MLX90129RGO-CAA-000-RE

MLX90129RGO-CAA-000-RE

  • 厂商:

    MELEXIS(迈来芯)

  • 封装:

    TSSOP20

  • 描述:

    MLX90129RGO-CAA-000-RE

  • 数据手册
  • 价格&库存
MLX90129RGO-CAA-000-RE 数据手册
MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Features and Benefits Applications  Versatile A/D interface for resistive sensors  Medical and health monitoring sensor tags  ISO-15693 13.56MHz transponder  Cold chain monitoring  Slave / Master SPI interface  Temperature sensor tags  4 k-bit EEPROM with access protection   Standalone data-logging mode Asset management and monitoring (security and integrity)  Ultra low power  Industrial, residential control and monitoring  Battery or battery-less applications  Low cost and compact design Ordering information Product Code MLX90129 MLX90129 MLX90129 MLX90129 Temperature Code R R R R Legend: Temperature Code: Package Code: Packing Form: Ordering example: R for Temperature Range -40°C to 105°C GO for TSSOP, UC for die on wafer, US for single die RE for Reel, TU for Tube, WB for waferbox, WP for waffle pack MLX90129RGO-CAA-000-TU REVISION 011 - JUNE 13, 2017 3901090129 Package Code GO GO UC US Option Code CAA-000 CAA-000 CAA-000 CAA-000 Packing Form Code TU RE WB WP Page 1 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 1. Functional Diagram Sensor 1 AT Optional: Battery MLX90129 SENSSUP1 2. General Description VBAT VFIELD SENS1 The MLX90129 combines a precise analog acquisition chain for external resistive sensors, with a wide range of interface possibilities. SENS2 COIL2 VSS Internal Temperature sensor RFID antenna Sensor 2 COIL1 SENSSUP2 Without any other components than a 13.56MHz tuned antenna, it becomes an RFID temperature sensor. XIN SENS3 SENS4 It can be accessed and controlled through its ISO15693 RFID front-end or via its SPI port. SS IRQ SCK MISO MOSI VREG XOUT Optional: MICROCONTROLLER or Serial SPI EEPROM Optional: Crystal For measuring other parameters, one or two resistive sensors can be connected to create a battery-less sensing point. The chip also provides a regulated voltage, derived from the RFID field, that can be used to supply the external sensing electronics of the application. Adding a battery will enable the use of the standalone data logging mode. The sensor output data is stored in the internal 3.5kbits user memory. One can extend the storage capacity by connecting an external EEPROM to the SPI port. The SPI port can also connect the MLX90129 to a microcontroller which allows more specific applications, like adding actuating capability, LED driving The MLX90129 has been optimized for low power, low voltage battery and battery-less applications. REVISION 011 - JUNE 13, 2017 3901090129 Page 2 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 3. Glossary of Terms EEPROM DMA PGA LFO XLFO CTC HFO Electrically Erasable Programmable Read-Only Memory Direct Memory Access (It is the digital unit managing data-logging) Programmable Gain Amplifier Low Frequency Oscillator Crystal Low Frequency Oscillator Contactless Tuning Capacitance High Frequency Oscillator 4. Absolute Maximum Ratings Parameter Supply Voltage, VBAT (maximum rating) Maximum Voltage on any Pin except VFIELD, COIL1 & COIL2 with respect Reverse Voltage to Ground Protection ................................-0.5V to VCC+0.5V Maximum voltage on Pin VFIELD Maximum voltage on Pin COIL1 & COIL2 Operating Temperature Range, TA Storage Temperature Range, TS ESD Sensitivity (AEC Q100 002)* Value 5.5 VBAT + 0.5 -0.5 6 7 -40 to +105 150 1.5 Unit V V V V V C C kV * All pin except Pin No 6 (VFIELD limited to 1,5kV) and Pin No 15 (SENSSUP2 limited to 3,5kV) Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute-maximum-rated conditions for extended periods may affect the device’s reliability. 5. Pin definition COIL2 VBAT COIL1 VSS VFIELD SENS1 VREG XIN XOUT SENS2 MLX 90129 TSSOP20 SENSSUP1 SENSSUP2 AT SENS3 IRQ SENS4 MISO SS MOSI SCK REVISION 011 - JUNE 13, 2017 3901090129 Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 Symbol COIL2 COIL1 VFIELD VREG XIN XOUT AT IRQ MISO MOSI SCK SS SENS4 B B O O I I I O B B B B I Description Coil terminal 2 for RFID interface Coil terminal 1 for RFID interface Unregulated supply voltage (from RF field) Regulated supply voltage Crystal oscillator input 1 Crystal oscillator input 2 Anti Theft (to be connected to ground) Interrupt output SPI Master In Slave Out SPI Master Out Slave In SPI Serial Clock SPI Slave Select Sensor 2 input 2 14 SENS3 I Sensor 2 input 1 15 16 17 18 19 20 SENSSUP2 SENSSUP1 SENS2 SENS1 VSS VBAT O O I I I I Sensor 2 supply Sensor 1 supply Sensor 1 input 2 Sensor 1 input 1 Ground Battery supply I/O Page 3 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Contents Features and Benefits ................................................................................................................................ 1 Applications ............................................................................................................................................... 1 Ordering information................................................................................................................................. 1 1. Functional Diagram ................................................................................................................................ 2 2. General Description ............................................................................................................................... 2 3. Glossary of Terms .................................................................................................................................. 3 4. Absolute Maximum Ratings ................................................................................................................... 3 5. Pin definition ......................................................................................................................................... 3 6. General Electrical and Timing Specifications .......................................................................................... 6 6.1. Power consumption ........................................................................................................................... 6 6.2. RFID interface ..................................................................................................................................... 6 6.3. SPI: electrical specification ................................................................................................................ 6 6.4. Non-volatile memories ...................................................................................................................... 7 6.5. Slave SPI: timing specification ........................................................................................................... 7 6.6. Master SPI timing specifications........................................................................................................ 8 6.7. Sensor Signal Conditioner: electrical specifications ......................................................................... 9 6.8. VREG regulator, and Oscillators: electrical specifications.............................................................. 11 7. General Description ............................................................................................................................. 12 7.1. Block diagram ................................................................................................................................... 12 7.2. Digital Controller and memory domains ......................................................................................... 13 7.2.1. Digital controller......................................................................................................................... 13 7.2.2. Address domains ........................................................................................................................ 13 7.3. Internal Devices ................................................................................................................................ 15 7.3.1. EE-Latches................................................................................................................................... 16 7.3.2. Sensors ADC buffers ................................................................................................................... 17 7.4. Configuration EEPROM & Register files .......................................................................................... 17 7.4.1. EEPROM Map ............................................................................................................................. 17 7.4.2. Update of the Register File ........................................................................................................ 18 7.5. EE-Latches and EEPROM Melexis default configuration ................................................................ 19 8. Communication ................................................................................................................................... 20 8.1. RFID communication ........................................................................................................................ 20 8.1.1. RFID analog front-end ................................................................................................................ 20 REVISION 011 - JUNE 13, 2017 3901090129 Page 4 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 8.1.2. ISO-15693 Features and Command set .................................................................................... 20 8.1.3. RFID interruptions ...................................................................................................................... 29 8.2. Serial Peripheral Interface (SPI) ....................................................................................................... 32 8.2.1. SPI : modes of operation............................................................................................................ 32 8.2.2. Slave SPI command set .............................................................................................................. 32 8.2.3. SPI interruptions ......................................................................................................................... 32 8.3. Management of communication conflicts ...................................................................................... 36 9. Device Configuration ........................................................................................................................... 37 9.1. Standalone datalogger ..................................................................................................................... 37 9.1.1. Main features ............................................................................................................................. 37 9.1.2. DMA operations ......................................................................................................................... 37 9.1.3. Setup of the Automatic Logging Mode ..................................................................................... 39 9.1.4. Direct Memory Access configuration ........................................................................................ 40 9.1.5. Wake-up timer / Power management configuration ............................................................... 41 9.1.6. Master SPI configuration ........................................................................................................... 42 9.2. Sensor Signal Conditioner ................................................................................................................ 43 9.2.1. Block description ........................................................................................................................ 43 9.2.2. Sensors common configuration ................................................................................................ 46 9.2.3. Sensor specific configuration .................................................................................................... 48 9.3. Power management ......................................................................................................................... 52 9.3.1. Power modes .............................................................................................................................. 52 9.3.2. Oscillators management ............................................................................................................ 53 9.3.3. Energy scavenging ...................................................................................................................... 53 9.4. Security ............................................................................................................................................. 54 9.4.1. Communication security ............................................................................................................ 54 9.4.2. EEPROM Access security ............................................................................................................ 54 10. Application Information ..................................................................................................................... 56 11. Reliability Information ....................................................................................................................... 58 12. ESD Precautions ................................................................................................................................. 58 13. Package Information .......................................................................................................................... 59 14. Contact .............................................................................................................................................. 60 15. Disclaimer .......................................................................................................................................... 60 REVISION 011 - JUNE 13, 2017 3901090129 Page 5 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 6. General Electrical and Timing Specifications o o DC Operating Parameters TA = -40 C to 105 C, VVBAT=4V (unless otherwise specified) 6.1. Power consumption DC Operating Conditions (T = -40°C to 105°C, VVREG = 2.0V to 3.2V) Parameter Conditions Current consumption in “Stand-by” mode Current consumption in “Sleep” mode Min - Typ 0.5* Max 14** Unit μA - 1.5* 2* 100* 15** 16** 160** μA 700 800** μA μA Typ 75 3 Max 77 Unit pF Vpp Vpp Using the RC-oscillator Using external oscillator - Current consumption in “Watchful” mode Current consumption in “Run” mode(with internal temperature sensor) Sense & Convert 300 μA * at 25 °C **at 105°C 6.2. RFID interface DC Operating Conditions (T = -40°C to 105°C) Parameter Conditions Internal resonance capacitance Once trimmed Minimum coil AC voltage (for operation) Maximum voltage on Coil1, Coil2 Induce voltage on VFIELD is below 6V ISO/IEC 15693-3 data rate Vfield external Capacitor Min 72 7 Kbits/s 26 100 nF 6.3. SPI: electrical specification DC Operating Conditions (T = -40°C to 105°C) and Low-volt option not activated Parameter Description Min Typ Max unit VIH Input High Voltage (SPI slave) 2.5 3.0 3.5 V VIL Input Low Voltage (SPI slave) -0.5 0 0.5 V VOH Output High Voltage (I sunk = -1 mA) 2.5 - V VOL Output Low Voltage (I forced = 1 mA) - 0.4 V REVISION 011 - JUNE 13, 2017 3901090129 Page 6 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC DC Operating Conditions (T = -40°C to 105°C) and Low-volt option activated Parameter Description Min Typ Max unit VIH Input High Voltage (SPI slave) 1.4 2.0 2.5 V VIL Input Low Voltage (SPI slave) -0.3 0 0.6 V VOH Output High Voltage (I sunk = -1 mA) 1.2 - V VOL Output Low Voltage (I forced = 1 mA) - 0.4 V 6.4. Non-volatile memories Parameter Description Min DataRet85 Data retention at 85°C Cyclenb25 Cyclenb125 Typ Max unit 10 year Number of program cycles at 25°C 100000 - Number of program cycles at 125°C 10000 - 6.5. Slave SPI: timing specification SS SCK tSU tHD MOSI MSB LSB MSB MISO MSB LSB MSB tL tT tI WRITE SS SCK MOSI Write Command[7:0] Address[7:0] Data[15:0] tWrite READ SS SCK Read Command[7:0] MOSI Address[7:0] tRead Data[15:0] MISO UPDATE SS SCK (The new configuration has been set) MOSI Update Command[7:0] tConfig MISO REVISION 011 - JUNE 13, 2017 3901090129 Page 7 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Timing specifications Parameter tch Slave side Min Max Description SCK high time 500 - ns 500 - ns Delay to read a register word Delay to read an EEPROM word Delay to read an EE-Latch word Delay to get the ADC output code 2.3 80 2.3 2300 (*) μs Delay to write a register word Delay to write an EEPROM word Delay to write an EE-Latch word 2.2 18 11 - us ms ms 2.2 - ms 100 - ns 500 - ns 600 1.5 - ns ms 500 - ns 500 - ns SCK low time tcl tRead (* *) tWrite (* *) tConfi Units Execution delay for commands Update g Setup time of data, after a falling edge of SCK tSU tHD Hold time of data, after a rising edge of SCK Leading time before the first SCK edge _ when the MLX90129 is not in sleep mode _ when the MLX90129 is in sleep mode (***) Trailing time after the last SCK edge tL tT Idling time between transfers (SS=1 time) tI (*) – The conversion time depends on the programmed initialization time and on the ADC options. (**) For the Read/Write Internal Devices commands, the delay depends on the nature of the so-called Internal Device: (Register, EE-Latch bank, ADC,…) (***) – See the power management chapter to know when the MLX90129 may be in sleep mode 6.6. Master SPI timing specifications Parameter tch tcl tSU tHD tL Description SCK high time SCK low time 400 Setup time of data, after a falling edge of SCK 400 Hold time of data, after a rising edge of SCK 400 Leading time before the first SCK edge 400 Trailing time after the last SCK edge tT Idling time between transfers (SS=1 time) tI REVISION 011 - JUNE 13, 2017 3901090129 Min Master side Nom 400 1 1600 Max Units ns ns ns ns μs μs ns Page 8 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 6.7. Sensor Signal Conditioner: electrical specifications -40°C < Temp < 105°C, unless otherwise specified. The sensor is supplied by a regulated voltage called V ref. GENERAL CHARACTERISTICS Battery voltage Vbat SENSOR ADJUSTMENT CAPABILITY Sensor Reference voltage SENSSUP1 2 Vref ( ) SENSSUP2 Full Span Sens_FS 3 () Zero offset 1 3 ( )( ) Sens_Off Common-mode voltage SENSSUP1 output impedance SENSSUP2 output impedance Sens_CM Sens1_Z Max Units 5.5 5.5 V V 3.2 2.2 Vref /16 V Vref /1200 3.1 2.1 - - Vref/32 - +Vref/32 V 1/3*Vref ½* Vref 7 2/3*Vref V  Conditions / Comment Min Low-volt option deactivated Low-volt option activated 3.8 2.7 Low-volt option = 0 Low-volt option = 1 Full scale of the sensor output voltage (Sens_CM is at the specified value) Maximum sensor offset that can be compensated 3.0 2.0 Typ Sens2_Z Notes: 1 ( ): The capability of adjustment of the input offset depends on the selected gain of the first Programmable Gain Amplifier (PGA1) and on the sensor output span. 2 ( ): The reference voltages of the ADC, of the DAC and the supply voltage of the sensors are ratio-metric. 3 ( ): Full span is defined as the maximal sensor differential output voltage: V(sensor output)max , i.e the maximum voltage range allowed on the MLX90129 sensor interface inputs SENS1, SENS2, SENS3 and SENS4. V  15 Vbat = Battery Vref = SENSSUP 1&2 output ¾*Vref ½*Vref ¼*Vref Sensor supply = PGA, ADC, DAC supply Symbol ADC input range Parameter Vss REVISION 011 - JUNE 13, 2017 3901090129 Page 9 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Min Typ Max Units PROGRAMMABLE-GAIN AMPLIFIER PGA1 Gain accuracy Code PGA1gain[3:0] = 0000 (gain=8) -> 1010 (gain=75) 95 100 105 %typ PROGRAMMABLE-GAIN AMPLIFIER PGA2 Gain accuracy Code PGA2gain[2:0] = 000 (gain=1) -> 111 (gain=8) 95 100 105 %typ 600 +Vref /32 V/V V Parameter PGA1 + PGA2 + DAC Gain range Sensor offset trimming range Sensor offset trimming step Differential input range Conditions / Comment (= offset max of the sensor) 8 -Vref /32 8-bits DAC (7 bits + sign) Ratio-metric, to cancel the offset of the sensor Gain (PGA) = 8 (if higher, PGA_Dir should be Vref/2 divided by the gain) ADC differential input range DAC (differential outputs) Resolution INL DNL Parameter V Vref /16 V ½.Vref V 7 bits + 1 bit sign 8 0 0 Conditions / Comment Min BRIDGE SUPPLIES & REFERENCES Reference serial resistance 6 bits-programmable: (Rv1, Rv2) Min Max Serial resistance accuracy Serial resistance step Matching between Rv1 and Rv2 Vref /128 Above code 0b000111 (7.5 k) Above code 0b000111 (7.5 k) Typ Max 0.5 63.5 80 bit lsb lsb 0.5 0.5 100 1 Units k 120 1 %typ k % INTERNAL TEMPERATURE SENSOR Full scale -40 +105 °C Output range 155 mV Temp = 145°C, Offset 45 mV Vout at T = 25°C Sensitivity 1.06 mV/°C Vout / Temp Non-linearity (*) ±2.65 mV Temp = 145°C (*) The internal temperature sensor requires a calibration. On the full range the calibration allows an accuracy of ±2.5°C. This can be improved within a reduced temperature range (e.g. ±1°C within -30 and 30°C), or by using a remote (external) temperature probe (+/-0.5° over the full range) REVISION 011 - JUNE 13, 2017 3901090129 Page 10 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC ADC The ADC data output is a 16bit data. The MODE[1:0] bits controls the tradeoff between the duration of the counting phase and the resolution. Mode 00 is the fastest but also the least accurate mode whereas the mode 11 is the most accurate but the slowest. The LOW_POWER bit allows the user to reduce the power consumption of the ADC ADC parameter ENOB: effective number of bits Conversion time (*) in normal power mode Conversion time (*) in low power mode Mode 00 Mode 01 Mode 10 Mode 11 Units 8 9 10 11 bit 3.2 6.4 5.8 11.6 11.3 22.6 21 42 ms (*): To get the sampling rate of the system, the initialization time must be added to the conversion time. This time is programmable as it depends on the selected sensor (by default it is 150 μs). 6.8. VREG regulator, and Oscillators: electrical specifications -40°C < Temp < 105°C, unless otherwise specified. Parameter VREG REGULATOR VREG Output voltage VREG Output max. current VREG External capacitor Conditions / Comment Min Typ Max Units Low-volt option = 0 Low-volt option = 1 / Vbat>= 3V Low-volt option = 1 / Vbat< 3V Low-volt option = 0 Drop 7% VREG Drop 25% VREG Low-volt option = 1 Drop 7% VREG Drop 17% VREG Stable smoothed signal 2.8 2.0 2.0 3.0 2.2 2.2 3.2 2.4 2.7 V V V 2.0 5.0 mA mA 2.0 5.0 10 mA mA µF ±15 % ±0.5 % OSCILLATORS (time base for datalogging ) Accuracy with Internal Low Frequency Oscillator IAccuracy with External Crystal With an ideal external 32,768kHz Oscillator crystal REVISION 011 - JUNE 13, 2017 3901090129 0 - Page 11 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7. General Description 7.1. Block diagram MLX90129 VSS SENSSUP1 SENS1 SENS2 SENSSUP2 SENS3 SENS4 Sensor Signal Conditioner VBAT VREG VFIELD Power management Register File (configuration) Ee-latches Eeprom Digital controller Oscillator Wake up timer XIN XOUT (configuration) COIL1 COIL2 RFID front-end SS SCLK MISO MOSI IRQ The sensor signal conditioner is used to amplify, filter and convert the output voltage of resistive sensors. There may be an external single-ended or differential resistive sensor, or the internal temperature sensor. The two external sensors are supplied by a stable reference voltage, provided by an integrated voltage regulator. The sensor output voltage is amplified by a programmable-gain amplifier, and its offset voltage can be compensated. This way the sensor signal level can be conditioned such that it optimally fits to the input range of the A/D converter. The ADC converts the analog signal into a 16bit digital code that can be stored or transmitted. The power management unit deals with the different power modes of the chip: it monitors the battery level, scavenges the energy coming from a RFID 13,56MHz field and makes the power-on reset signal. A regulator is used to supply the digital parts, but can also be used to supply some other external devices. The Oscillators’ block contains different kinds of oscillators: a very low power, low frequency 1kHz RC oscillator used as a wake-up timer, a low-power 32.768kHz quartz oscillator that can be used for an accurate time basis, and a high frequency 5MHz RC oscillator used for the digital controller. The Register File contains all the configuration parameters of the chip. It may be loaded from the EEPROM after power-on, or as the result of a specific request from RFID or SPI. The EE-Latches are used when device configuration parameters have to be immediately available. The RFID front-end receives an external 13,56-MHz magnetic field, sensed on an external antenna coil. The antenna design is made easy thanks to an internal programmable high-Q capacitance (tuned during the test phase). From the antenna output voltage, it makes a stable clamped DC supply voltage, recovers the clock, and controls the modulation of the carrier and the demodulation of the incoming signal. The EEPROM is a 4-kbit non-volatile memory, organized as 256 words of 16 bits divided in 39 reserved for configuration, 2 for default trimming value (EE-Latches #03,#04 and #09) backup and 215 available for the application (around 3.4 kbits user memory). Its access is protected by several security levels. The Digital Controller manages the accesses of the different interfaces (SPI, RFID) with the different memories (EEPROM, register file) and the sensor. It comprises the RFID ISO-15693 and SPI protocols, controls the sensor signal conditioner and stores or sends the ADC output code. It can also run some standalone applications, thanks to its unit called Direct Memory Access (DMA). REVISION 011 - JUNE 13, 2017 3901090129 Page 12 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7.2. Digital Controller and memory domains 7.2.1. Digital controller DMA Direct Memory Access The main features of the digital part of MLX90129, called Digital Controller are:         Slave / Master SPI interface RFID interface DMA: Direct Memory Access Register File controller EEPROM controller Sensor interface controller Clock and Power management Core: transactions arbiter and interrupt manager SS SCLK MISO MOSI Register File Eeprom & EeLatches interface SPI CORE RFID interface ISO15693 Sensor & ADC Controller IRQ Clock and Power manager The digital controller manages the transactions between the communication interfaces, the memories and the sensor. It allows also a standalone mode with its DMA unit. All these blocks are described in the next chapters. The SPI and RFID communication ways can be used concurrently. The Core transaction arbiter handles the priorities and the interrupts. It updates some status bits that may be used by the external microcontroller or the RFID base-station to optimize the communication. The Digital Controller of the MLX90129 allows the user to do the following tasks, via SPI or RFID: _ Configure the sensor interface and the communication media. _ Manage the power consumption, the interrupts, the security items,… _ Run A/D conversions of the selected sensors. _ Store (or read) data in the internal or in an external EEPROM. _ Configure and start a standalone process (sleep – sense – interrupt or store – sleep - …) _ Get the status of the current process. All these tasks may be done by simply reading or writing the different memories: EEPROM, registers, ee-Latches, internal devices. Thus, several address domains are defined to access them in an easy way. 7.2.2. Address domains Four address domains have been defined to designate the memory and the non-memory devices that act during the requested transactions: - EEPROM address domain: This domain addresses the non-volatile EEPROM. It is used to store the user-defined data and the image of the Register File that can be automatically downloaded after a power-on. This memory block is energy independent and can store data even when the MLX90129 is unpowered. - Register File address domain: This memory domain is used to store the current configuration information of all internal MLX90129 devices (Sensor interface, Power management …). This memory is energy-dependent and must be updated each time the MLX90129 is turned-on. - Internal Devices address domain: This domain allows accessing the registers linked to the so-called internal devices like the ADC buffers, the status words of the Core Transaction Arbiter and the EE-Latches. They may be accessed with the appropriate SPI / RFID commands including its address. The difference with the Register File is the fact that they are not copied from the EEPROM at the start-up and they may be used during the requested transaction. REVISION 011 - JUNE 13, 2017 3901090129 Page 13 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC - External memory address domain: This domain addresses the external memory which can be connected to the MLX90129, using the SPI in master mode. SPI access commands MLX90129 MEMORY DOMAINS RFID access commands EEPROM UID Security configuration Read eeprom word Write eeprom word DMA configuration RFID configuration Write/Read-single-block Read-multiple-block Lock/unlock block Master SPI configuration Time & Power management Sensor 0 configuration Sensor 1 configuration Sensor 2 configuration User Update Register File Update Register File REGISTER FILE UID Security configuration DMA configuration Write-Register-File Read-Register-File RFID configuration Master SPI configuration Write-Register-File Read-Register-File Time & Power management Selected sensor configuration INTERNAL DEVICES RFID Control&status Write-Internal-Devices Read-Internal-Devices SPI / IRQ Control&status DMA status Sensors ADC buffers Write-Internal-Devices Read-Internal-Devices EE-latch bank EXTERNAL SPI REVISION 011 - JUNE 13, 2017 3901090129 Read/Write external memory Send Specific/Addressed command Page 14 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7.3. Internal Devices The term Internal Devices designates the registers used to configure the main “non-memory” digital units: sensor interface, SPI / RFID interfaces, DMA … All these registers are part of the Internal Device Address Domain: The registers linked to the SPI and RFID interfaces, called SPI/RFID core control word and SPI/RFID core interrupt/status word have the same definition, but are physically different and may contain some different data. The content of these registers are explained in the following chapters (SPI, RFID). Some of these bits may be used to avoid conflicts for the memories access, when communicating with SPI and RFID at the same time. For that, they can be accessed at any time via SPI or RFID. The SPI / RFID local buffers store the result data of the last transaction. They are useful for example when the A/D conversion time is too long and does not fit the timing requirements of the RFID protocol. The EE-Latches contain some non-volatile data, immediately available (no delay, no supply), used for the options of the clock and power management. The registers of the DMA unit called Current destination address are used to give a status of the process (the number of words that have been registered). The ADC buffer sensor 0, sensor 1 and sensor 2 allow to start a sensor conversion according to the sensor configuration saved in EEPROM in the sensor 0, 1 and 2 configuration are. The conversion starts with the reading of the buffer. The output of the conversion is available in the SPI / RFID local buffer. Map of the Internal Device Address Domain Addr 0x00 0x01 0x02 From SPI side From RFID side SPI / RFID SPI core control word RFID core control word SPI core interrupt/status word ( read RFID core interrupt/status word ( read only) only) SPI local buffer (read only) RFID local buffer (read only) Addr 0x03 0x04 0x05 0x06 0x07 0x08 0x09 Access by SPI and RFID Non-volatile memory EE-Latches word 0 EE-Latches word 1 Direct Memory Access (DMA) Current destination address ( read only) Sensors ADC buffer sensor 0 ADC buffer sensor 1 ADC buffer sensor 2 Contactless-tuning capacitance (CTC) CTC code Link Page 32 / 29 Page 32 / 29 Page 32 / 29 Link Page 16 / 53 Page 16 / 52 Page 40 Page 17 Page 17 Page 17 Page 16 Note: The internal devices having the addresses 0x00, 0x01, 0x02, 0x05 are registers. Those having the addresses 0x03, 0x04, 0x09 are EE-Latches, and those whose addresses are 0x06, 0x07, and 0x08 refer to the ADC output buffers. The read / write delays are specified for all kind of internal devices, when accessing them via SPI. REVISION 011 - JUNE 13, 2017 3901090129 Page 15 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7.3.1. EE-Latches Another kind of non-volatile memory is used to store the trimming / configuration bits that should be immediately available: the EE-Latch bank. They are mainly used for the trimming of the oscillators and the capacitance of the antenna, for security and power management. /!\ It is important to read its value before re-programming it, in order to not erase some trimming bits. EE-Latches map: (Internal Devices Domain, Address #03, #04 and #09, read/write) Bits Name #03 - EE-Latches word 0 4:0 LFO_Freq_Trim (Trimming bits) 6:5 Bias_Cur_Trim (Trimming bits) 7 DisableAutoLoading 10:8 13:11 14 15 HFO_Freq_Trim (Trimming bits) VReg_Trim (Trimming bits) RCb_Quartz Disconnect_Vfield_Vbat #04 - EE-Latches word 1 1:0 Mod_Res 2 VReg_Dis 3 VReg_LV 7:4 14:8 Reserved 15 RFID_Device_Lock** RFID_EEPROM_Lock_Map** Description (when the bit is asserted high) (used by Melexis) (used by Melexis) Disables the automatic loading of the Register File with its image from the EEPROM after a power-on reset from the battery (used by Melexis) (used by Melexis) Selects the low-frequency RC-oscillator LFO (=0) or the quartzoscillator XLFO (=1) Disconnects the pads VFIELD and VBAT, when not using the energy from the field to supply the whole device. 11: default modulator resistance Disables the VReg regulator and shorts-cut its output to Vbat Low-voltage option for the VREG regulator and the sensor regulator (Must be 0) Map of pages in EEPROM, to be locked for RFID write, using the “Lock” command Locks the RFID device #09 - CTC code 4:0 15:5 CTC_Trim (Trimming bits) Not used (used by Melexis) trimming in the application is also possible (Must be 0) (**) - following fields are not accessible for write from RFID interface via device write command. EE-Latches backup in EEPROM The content of EE-Latches (Internal devices #03, #04 and #09) are copied in the EEPROM for backup: EEPROM #27 and #28 Bits Description #27 - Internal device backup word 1 15:0 Copy of internal device #03 bits [15:0] #28 -Internal device backup word 2 3:0 Copy of internal device #04 bits [3:0] 15:4 random Ex: The command read ADC buffer sensor 0 (Read Internal Device #06) sent by RFID or by SPI loads the configuration of the sensor 0 from EEPROM (address #15 to #1A) into the register file and start the A/D conversion. The output of the conversion is available in the internal device #02 (local buffer). REVISION 011 - JUNE 13, 2017 3901090129 Page 16 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7.3.2. Sensors ADC buffers In order to read the output data of a sensor, the SPI master or the RFID base-station has to access one of the 3 ADC buffer in the Internal Device address domain. Accessing (read command) this buffer makes:  Load the selected sensor configuration into the register file  Start the A/D conversion and the data processing . Then the command read ADC buffer sensor 2 (Read Internal Device #08) sent by RFID or by SPI overwrite the register file with the configuration of the sensor 2 (EEPROM from #21 to #26). To make sure that all operations are done, it is enough to:   Wait for a specific period of time and read the internal device #02 (local buffer). Periodically monitor the SPI/RFID Core status word and check the bit: Sensor interrupt: Data ready. 7.4. Configuration EEPROM & Register files The MLX90129 embeds a 4kbits EEPROM memory. This non-volatile memory contains the configuration parameters and some identification numbers. The configuration part of the EEPROM consists of 45 words of 16 bits. The 210 other words are available for the specific needs of the application or may be used for data-logging or for the configuration of the external devices. The read and write access rights are defined for each page and depends on the device wanting to access it: a microcontroller, a RFID basestation or the internal DMA unit of the MLX90129. The user can also lock and unlock some pages by sending the appropriate RFID commands. 7.4.1. EEPROM Map Address Description Link UID (Unique Identifier) #00 #01 #02 #03 UID: bits 15:0 UID: bits 31:16 UID: bits 47:32 UID: bits 63:48 #04 #05 #06 #07 #08 EEPROM security map Device security map Password RFID Page 20 Page 20 Page 20 Page 20 Security configuration space #09 #0A #0B #0C #0D #0E #0F #10 #11 Page 54 Page 54 Page 54 (not used) (not used) DMA configuration space DMA: Control word DMA: Source address word DMA: Destination address word DMA: Length SPI (External memory) configuration space External memory: Control word External memory: Command codes word Timer (power control) configuration space Timer: Period Timer: control word Address space always accessible from RFID interface RFID user register: its purpose is user-defined. REVISION 011 - JUNE 13, 2017 3901090129 Page 40 Page 40 Page 40 Page 40 Page 42 Page 42 Page 41 Page 41 Page 20 Page 17 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Address Description #12 #13 Sensors common configuration space Sensor power configuration word (reserved) #14 #15 #16 #17 #18 #19 #1A #1B #1C #1D #1E #1F #20 #21 #22 #23 #24 #25 #26 #27 #28 Sensor trimming configuration word Sensor 0 configuration space Sensor 0: Sensor control word Sensor 0: Sensor low threshold word Sensor 0: Sensor high threshold word Sensor 0: Sensor signal conditioner configuration word Sensor 0: Sensor connections configuration word Sensor 0: Sensor resistance configuration word Sensor 1 configuration space Sensor 1: Sensor control word Sensor 1: Sensor low threshold word Sensor 1: Sensor high threshold word Sensor 1: Sensor signal conditioner configuration word Sensor 1: Sensor connections configuration word Sensor 1: Sensor resistance configuration word Sensor 2 configuration space Sensor 2: Sensor control word Sensor 2: Sensor low threshold word Sensor 2: Sensor high threshold word Sensor 2: Sensor signal conditioner configuration word Sensor 2: Sensor connections configuration word Sensor 2: Sensor resistance configuration word EE-Latches backup space Internal device backup word 1 Internal device backup word 2 Page 46 Page 46 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 48 Page 16 Page 16 (**) In the register file, this configuration space is updated from the appropriate part of the Extended sensor configuration space at each access to one of the three sensors. This configuration space and all others with higher addresses are not updated during a Register File Update operation. 7.4.2. Update of the Register File The EEPROM contains the initial image of the Register File. This image is copied after the power-on, upon a SPI / RFID Update request. The sensor configuration in the Register File depends on the currently selected sensor. The sensor is selected either manually by reading the ADC buffer corresponding or automatically during a standalone application. EEPROM REGISTER FILE UID UID Security configuration Security configuration DMA configuration DMA configuration RFID configuration RFID configuration Master SPI configuration Master SPI configuration Time & Power management Time & Power management Sensor 0 configuration Selected Sensor configuration Sensor 1 configuration Sensor 2 configuration USER: 3.4 kbit space REVISION 011 - JUNE 13, 2017 3901090129 Update command or Power On or Read ADC buffer command Page 18 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 7.5. EE-Latches and EEPROM Melexis default configuration The MLX90129 is pre-set with the following configuration. Address Default value [#03 - #00] #04 #05 [#0B - #06] #0C [#10 - #0D] #11 #12 #13 #14 [#FF - #15] 0xXXXX 0xAAA8 0x3FF0 0x0000 0xXXXX 0x0000 0xXXXX 0x00FF 0x0000 0b0000.00TT.TT00.0000 0xXXXX 03 04 09 0b00TT.TTTT.0TTT.TTTT 0x000B 0b0000.0000.000T.TTTT Description EEPROM Unique ID set by Melexis Refer to EEPROM security map Refer to device security register Random value, can be replaced by 0x0000 Random value, can be replaced by 0x0000 Refer to sensor power configuration Random value, can be replaced by 0x0000 EE-Latches Data loading enabled / LFO selected / Vfield connected to Vbat Low volt option =1 Reading gives 0x001F ‘T’ are Melexis trimming bits In order to configure the registers of the MLX90129 easily, a configuration tool can be downloaded from the Melexis web site, www.melexis.com. REVISION 011 - JUNE 13, 2017 3901090129 Page 19 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 8. Communication 8.1. RFID communication 8.1.1. RFID analog front-end The MLX90129 RFID interface complies with the ISO15693 standard. The sensor tag gets accessed through an RFID base-station (reader) by modulating the 13.56MHz carrier frequency. Data recovery is done from the amplitude modulated reader signal (ASK, Amplitude Shift Keying 10% or 100%). The data transfer rate is 26 kbps while using a 1-out-of-4 coding scheme. From the incoming HF field, the RFID interface recovers the clock and generates a power supply for all internal building blocks. The rectified voltage can be used to supply the whole device in battery-less applications. The data upload (from the tag to the reader) is generated by antenna load modulation with Manchester coding, and using one or two sub-carrier frequencies at 423 kHz and 484 kHz. The data transfer rate is 26 kbps. VFIELD Modulator COIL1 Rectifier Regulator ESD Overvoltage Clamp COIL2 Clock recovery Demodulator Power-on reset (Ninie) 8.1.2. ISO-15693 Features and Command set For complete information about the communication protocol, please refer to the standard document: ISO/IEC FCD 15693-2 and ISO/IEC FCD 15693-3: Identification cards- contactless integrated circuit(s) cards - Vicinity cards - It is available on the website: http://www.iso.org Some of the features of the protocol are not supported. Furthermore, some “custom” commands have been defined (see Command set). The MLX90129 is provided with a Unique IDentifier compliant with the ISO standard. Summary of the main, supported features Features Reader to Tag Modulation Index Reader to Tag Coding Tag to Reader Modulation Tag to Reader Sub-Carrier Tag to Reader Coding Tag to Reader Data-rate REVISION 011 - JUNE 13, 2017 3901090129 Supported Not supported 10% and 100% Pulse Position Modulation: 1 out of 4 Single and dual Sub-carrier 423 kHz / 484 kHz Manchester High Data-rate 26 kBit PPM: 1 out of 256 Low Data-rate 6 kBit Page 20 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Summary of the main, supported protocol parts  Data element Data Element UID (Unique Identifier) AFI (Application Family Identifier) DSFID (Data Storage Format Identifier) CRC Security status  Protocol Request Flag Sub-Carriers Data-rates Inventory Protocol extension Select Address Options (write single block command only) Response Flag Error  Supported Yes No No Yes No Supported Yes No Yes No Yes Yes Yes Supported Yes Anti-collision: Supported Command frame The content of the data included in the frame of a communication request, and the response from the MLX90129 to the basestation depends on the command opcode. The meaning of the flags, the equation of the CRC, the description of the Start-OfFrame, the End-Of-Frame and the unique identifier number (UID), the meaning of the error codes… are included in the standard ISO-15693 layers 2 and 3. Request format for ISO15693 commands: SOF Flags Command code 8 bits 8 bits 0XXX 0X1X (bin) XX (hex) (UID) 64 bits Optional (Data) x bits CRC 16 16 bits EOF Request format for MLX90129commands: SOF Flags Command code 8 bits 16 bits 00XX 0X1X (bin) XX1F (hex) (UID) 64 bits Optional (Data) x bits Optional CRC 16 16 bits EOF Response format without data when Error_flag is NOT set: SOF Flags CRC 16 EOF 8 bits 16 bits 0000 0000 REVISION 011 - JUNE 13, 2017 3901090129 Page 21 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Response format with data when Error_flag is NOT set: SOF Flags (Data) CRC 16 EOF 8 bits x bits 16 bits 0000 0000 Response format with error when Error_flag is set: SOF Flags Error code CRC 16 EOF 8 bits 8 bits 16 bits 0000 0001 REVISION 011 - JUNE 13, 2017 3901090129 Page 22 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Command set The command set lists the mandatory commands defined in the standard ISO-15693 layer 3. It comprises also some custom commands used for some specific applications: access the sensor buffer, access an external device via SPI, handles the security options, etc. ISO-15693 mandatory and optional commands Commands code Description Inventory Stay quiet Read single block Write single block Read multiple block Select Reset to ready 01 02 Enable an anti-collision sequence Enable the ‘Stay Quiet’ mode 20 21 23 Read a single word from EEPROM Write a single word to EEPROM (only mode with Option_flag set is supported) Read one or several contiguous blocks of the EEPROM 25 26 Enter the “Selected” state (anti-collision) Return to the ‘Ready’ mode MLX90129 custom commands Commands Read register file Write register file Read internal device Write internal device Read external memory Write external memory Send specific command Send addressed specific command Write external memory status Read external memory status Lock device Unlock device Update Register File Lock Page Unlock Page code Description A01F Read one word from the Register file A11F Write one word to the Register file A21F Read the content of an internal device identified by an address byte A31F Write the register word of an internal device, identified by an address byte A41F Read a word from an external memory (via SPI) A51F Write a word into an external memory (via SPI) A61F Send a command via SPI to an external device, whose code is appended to the frame (e.g. Write Enable for an external EEPROM). A71F Send a command via SPI to an external device, whose code and address are appended to the frame (e.g. Lock Block for an external EEPROM) A81F Send a command via SPI, to write an external memory status register (The op-code of this command is stored in a register) A91F Send a command via SPI, to read an external memory status register (The op-code of this command is stored in a register) B01F Lock an internal device (EEPROM, ADC, …), preventing its access. B11F Unlock an internal device C01F Fill the Register File with the image from the EEPROM, without re-boot D01F Lock a page of EEPROM D11F Unlock a locked page of EEPROM. 0x1F corresponds to the RFID manufacturer code of Melexis REVISION 011 - JUNE 13, 2017 3901090129 Page 23 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC ISO-15693 mandatory and optional commands frame content  INVENTORY (01) When receiving the Inventory request, the transponder shall perform the anti-collision sequence. The Inventory flag shall be set to 1. Request format: S Flags O 8 bits F 00x0 011x Inventory command 8 bits 0000 0001 Response format (if no error): S Flags DSFID O 8 bits 8 bits F 0000 0000 0000 0000  UID 64 bits Mask length 8 bits CRC 16 16 bits Mask value 0 - 64 bits CRC 16 16 bits E O F E O F STAY QUIET (02) When receiving the Stay Quiet command, the transponder shall enter the Quiet state and shall not send back a response. This command shall always be executed in Addressed mode (Select flag=0 and Address flag= 1). To exit the Quiet state with a MLX90129 battery powered, the command “Reset to ready” has to be sent by the reader. Request format: S Flags O 8 bits F 001x 001x  Stay Quiet command 8 bits 0000 0010 UID 64 bits CRC 16 16 bits E O F READ SINGLE BLOCK (20) When receiving the Read single block request, the transponder shall read the requested block from internal EEPROM and send back its value in the response. Request format: S Flags O 8 bits F 00xx 001x Read Single Block 8 bits 0010 0000 Response format (if no error): S Flags Data CRC 16 O 8 bits 16 bits 16 bits F 0000 0000  UID 64 bits (Optional) Block address 8 bits CRC 16 16 bits E O F E O F WRITE SINGLE BLOCK (21) When receiving the “Write Single Block” request, the transponder shall write the requested block into internal EEPROM with the data contained in the request and report the success of the operation in the response. Only the mode with Option_flag set is supported. That means, the MLX90129 shall wait for the reception of an end of frame (EOF) from the ISO15693 reader and upon such reception shall return its response. Request format: S Flags O 8 bits F 01xx 001x Read Single Block 8 bits 0010 0001 REVISION 011 - JUNE 13, 2017 3901090129 UID 64 bits (Optional) Block address 8 bits Data 16 bits CRC 16 16 bits E O F Page 24 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC  READ MULTIPLE BLOCKS (23) When receiving the “Read Multiple Block” command, the transponder shall read the requested block(s) and send back their value in the response. The blocks are numbered from ‘00’ to ‘FF’. The number of blocks in the request is one less than the number of blocks that the 90129 shall return in its response. Request format: S Flags O F 8 bits 00xx 001x Read Multiple Block UID 8 bits 0010 0011 64 bits (Optional) Response format (if no error): S Flags Data O 8 bits (N+1)*16 bits F 0000 0000  CRC 16 16 bits First address 8 bits block Number of blocks 8 bits N CRC 16 16 bits E O F E O F SELECT (25) When receiving the Select command: _ if the UID is equal to its own UID, the 90129 shall enter the selected state and shall send a response. _ if it is different, the 90129 shall stay at previous state and shall not send a response. The Select command must be always in Addressed mode. (The Select_flag is set to 0. The Address_flag is set to 1.) Request format: S Flags O 8 bits F 0010 001x  Read Single Block 8 bits 0010 0101 UID 64 bits CRC 16 16 bits E O F RESET TO READY (26) When receiving the Reset To Ready command, the transponder shall return to the Ready state Request format: S Flags O 8 bits F 01xx 001x Reset to ready 8 bits 0010 0110 UID 64 bits CRC 16 16 bits E O F MLX90129 custom commands frame contents  READ REGISTER FILE (A01F) When receiving the Read register file request, the transponder shall read the requested block from Register File and send back its value in the response. Request format: S Flags O 8 bits F 00xx 001x Read Register File 8 bits 1010 0000 0001 1111 Response format (if no error): S Flags Data O 8 bits 16 bits F 0000 0000 REVISION 011 - JUNE 13, 2017 3901090129 CRC 16 16 bits UID 64 bits (Optional) Block address 8 bits CRC 16 16 bits E O F E O F Page 25 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC  WRITE REGISTER FILE (A11F) When receiving the Write register file request, the transponder shall write the requested block into Register File with the data contained in the request and report the success of the operation in the response. Request format: S Flags O 8 bits F 00xx 001x  Write Register File 8 bits 1010 0001 0001 1111 UID 64 bits (Optional) Block address 8 bits Data 16 bits CRC 16 16 bits E O F READ INTERNAL DEVICE (A21F) When receiving the “Read Internal Device” request, the transponder shall read a word of the addressed internal device and send back its value in the response. The internal device is selected thanks to the address byte taking part of the command frame. Request format: S Flags O 8 bits F 00xx 001x Read Internal Device 8 bits 1010 0010 0001 1111 Response format (if no error): S Flags Data O 8 bits 16 bits F 0000 0000  CRC 16 16 bits UID 64 bits (Optional) Block address 8 bits CRC 16 16 bits E O F E O F WRITE INTERNAL DEVICE (A31F) When receiving the “Write Internal Device” request, the transponder shall write the addressed internal device word. If the address corresponds to the EE-Latches of the Internal Device (Internal Device #03 and #04) the RFID acknowledgment can be missing or the RFID communication can be disabled depending the settings. The MLX90129 has to be reset (power off) in order to take into account the modifications. The MLX90129 behaviour without reset can not be guaranteed. Request format: S Flags O 8 bits F 00xx 001x  Write Internal Device 8 bits 1010 0011 0001 1111 UID 64 bits (Optional) Block address 8 bits Data 16 bits CRC 16 16 bits E O F READ EXTERNAL MEMORY (A41F) When receiving the “Read External Memory” request, the transponder shall read the requested block from external memory via SPI and send back its value in the response. Request format: S Flags O 8 bits F 00xx 001x Read External Memory 8 bits 1010 0100 0001 1111 Response format (if no error): S Flags Data O 8 bits 16 bits F 0000 0000 REVISION 011 - JUNE 13, 2017 3901090129 CRC 16 16 bits UID 64 bits (Optional) Block address 16 bits CRC 16 16 bits E O F E O F Page 26 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC  WRITE EXTERNAL MEMORY (A51F) When receiving the “Write external memory” request, the transponder shall send a command to SPI, in order to write a byte into an external memory via SPI interface with the data contained in the request. Request format: S Flags O 8 bits F 00xx 001x  Write External Memory 8 bits 1010 0101 0001 1111 UID 64 bits (Optional) Block address 16 bits Data 16 bits CRC 16 16 bits E O F SEND A SPECIFIC COMMAND TO EXTERNAL MEMORY (A61F) When receiving the “Send Specific Command to external memory” request, the transponder shall send a command to the external memory via SPI. Example: WREN = Write Enable, Write Disable. Request format: S Flags O 8 bits F 00xx 001x  Send Specific CMD 8 bits 1010 0110 0001 1111 UID 64 bits (Optional) Command code 8 bits CRC 16 16 bits E O F SEND ADDRESSED COMMAND TO EXTERNAL MEMORY (A71F) When receiving the “Send Addressed Command to an external memory” request, the transponder shall send a command and the address to the external memory via SPI. Example: Lock Block, Unlock Block Request format: S Flags O 8 bits F 00xx 001x  Send Addressed CMD 8 bits 1010 0111 0001 1111 UID 64 bits (Optional) Address 16 bits Command code 8 bits CRC 16 16 bits E O F WRITE EXTERNAL MEMORY STATUS (A81F) When receiving the “Write external memory status” request, the transponder shall send specified command with data to the external memory via SPI. Example: write status register. Request format: S Flags O F 8 bits 00xx 001x  Write External Memory Status 8 bits 1010 1000 0001 1111 UID Command Code Data CRC 16 64 bits (Optional) 8 bits 8 bits 16 bits E O F READ EXTERNAL MEMORY STATUS (A91F) When receiving the “Read external memory status” request, the transponder shall send specified command to the external memory via SPI and respond with data received from external SPI slave. Request format: S Flags O 8 bits F 00xx 001x Read External Memory status 8 bits 1010 1001 0001 1111 Response format (if no error): S Flags Data O 8 bits 8 bits F 0000 0000  REVISION 011 - JUNE 13, 2017 3901090129 CRC 16 16 bits UID 64 bits (Optional) Command code 8 bits CRC 16 16 bits E O F E O F Page 27 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC  LOCK DEVICE (B01F) When receiving the Lock Device request, the transponder switches to Locked state in this case any attempt to have an access to its memory or devices (whether read or write) results with an error response. Request format: S Flags O 8 bits F 00xx 001x  Lock Device 8 bits 1011 0000 0001 1111 UID 64 bits (Optional) CRC 16 16 bits E O F UNLOCK DEVICE (B11F) When receiving the ‘Unlock device’ request, the transponder shall return device from Locked state. A security procedure based on a password is required to execute the unlocking. The password is in EEPROM #06. Request format: S Flags O 8 bits F 00xx 001x  Unlock Device 8 bits 1011 0001 0001 1111 UID 64 bits (Optional) Password 16 bits CRC 16 16 bits E O F UPDATE REGISTER FILE (C01F) Update register file command is used to quick update of contents of Register file via DMA within the image stored in EEPROM. Request format: S Flags O 8 bits F 00xx 001x  Update Register File 8 bits 1100 0000 0001 1111 UID 64 bits (Optional) CRC 16 16 bits E O F LOCK PAGE (D01F) When receiving the ‘Lock Page’ request, the transponder shall lock the requested EEPROM Page. Request format: S Flags O 8 bits F 00xx 001x  Unlock Device 8 bits 1101 0000 0001 1111 UID 64 bits (Optional) Page number 8 bits CRC 16 16 bits E O F UNLOCK PAGE (D11F) When receiving the ‘Unlock Page’ request, the transponder shall unlock the requested Page. A security procedure based on a password is required to execute the unlocking. The password is in EEPROM #06. Request format: S Flags O 8 bits F 00xx 001x Unlock Device 8 bits 1101 0001 0001 1111 REVISION 011 - JUNE 13, 2017 3901090129 UID 64 bits (Optional) Page number 8 bits Password 16 bits CRC 16 16 bits E O F Page 28 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Response error code If the flag Error_flag of the response is set by the MLX90129, the error code is transmitted to provide some information about the error that occurred. Most of them are described in the standard ISO15693. The last ones are some custom codes. Error code 01 02 03 0F 10 11 12 A0 A1 Meaning Command The command is not supported, i.e. the request code is not recognized The command is not recognized, for example: a format error occurred The option is not supported Unknown error The specified block is not available (does not exist) The specified block is already locked and thus cannot be locked again The specified block is locked and its content cannot be changed The selected Device is locked The selected Device is busy (*) A2 The access to the selected Device is denied All All All All Read/Write/Lock Lock Write Write memory Read/Write memory Read/Write memory (*) “Device is busy” error code occurring during a write operation means that the MLX90129 is still performing the last write operation. Then, the base-station has to wait for some time and send the command again. For read operation, it means that the selected Internal device (sensor ADC,…) cannot read the data and respond immediately. The purpose of the address #11 in EEPROM is user-defined. 8.1.3. RFID interruptions The Internal device domain contains registers with MLX90129 status information. It can be accessed with the command Read Internal Device. The following words are part of the Internal Device domain:  The RFID core control word is read/write. It contains a bit used to lock the non-RFID transactions.  The RFID interrupt & status word is read-only. it contains the status of the security units, of the pending accesses to the memories, and of the system current activity. RFID core control word (Devices address domain, address #00, read/write) Bits Name Description (if bit=1) #00 – RFID core control word 15:1 Unused (must be 0) 0 Core_Lock When set to ‘1’, it locks any transactions managed by the DMA. This allows having an access from RFID to any device at any time. If base station sets this bit into one, but last transaction inside core is not yet accomplished, this transaction is not interrupted. This signal doesn’t block SPI. Priority of this signal is less then priority of such signal in SPI control word, more over SPI can block affection of this signal (via RFID security map configuration register). REVISION 011 - JUNE 13, 2017 3901090129 Page 29 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC RFID interrupt & status word (Devices address domain, address #01, read-only) Bits Name #01 – RFID interrupt & status word 15:13 (reserved) 12 Irq_ExternalEvent 11:8 (reserved) 7 Irq_Sensor_Threshold 6 5 4 Irq_Timer_WakeUp Irq_DMA_ready Irq_EEPROM_Full 3 2 (unused) Transaction_Error_Flag 1 Last_Transaction_Status 0 Core_Main_Status Description (if bit=1) The pin AT has been disconnected from the GND. The output data from the sensor has crossed the defined threshold level or window The count-down of the wake-up is over The DMA transaction has been completed (in the non-loop mode) The allocated memory for a datalogging with loop enable is full. The datalogger starts to overwrite the first data. One of the previously executed commands has failed (delay not fulfilled, denied access, data not processed …). This bit is automatically cleared after power-on or after read of the RFID interrupt & status word. This bit indicates whether the last request has been processed (‘0’) or not (‘1’). In this latter case, the MLX90129 ignores any new request. The system is busy with an internal operation and the request from RFID cannot be processed. The following table summarizes the information about the interrupts which can be used with a RFID communication. The RFID interrupt & status word in the Internal Device domain at the address 0x01 gives the status of the interruptions. It is read only. It can be accessed with the command Read Internal Device. For each bit of the RFID interrupt & status word, the condition to assert high or low the status flag is described. Interrupt description Irq_ExternalEvent IRQ enable conditions Status flag is set to ‘1’ when Reset condition Set to ‘1’ the bits 9 and 11 of the register #12 Pin AT is not connected to GND Pin AT is connected to GND Irq_Sensor_Threshold IRQ enable conditions Status flag is set to ‘1’ when Reset condition Set to ‘1’ the bits 8,9,10 of the registers #15, #1B, #21 The last ADC output code crosses the defined threshold level or window The chip is requested to read a new value of the sensor Irq_Timer_WakeUp IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_DMA_ready IRQ enable conditions Status flag is set to ‘1’ when Reset condition REVISION 011 - JUNE 13, 2017 3901090129 Set to ‘1’ the bit 0 of the register #10 The timer has completed its counting phase The timer is requested to start a new counting phase (during the automatic logging mode) Set to ‘1’ the bit 2 of the register #09 The DMA unit has completed the last requested transaction Read the RFID interrupt & status word Page 30 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Interrupt description Irq_EEPROM_Full IRQ enable conditions Set to ‘1’ the bits 2 and 3 of the register #09 Status flag is set to ‘1’ The allocated memory for a datalogging with loop enable is full. when Reset condition Stop the datalogging Transaction_Error_Flag IRQ enable conditions Always enable Status flag is set to ‘1’ When one of previously requested commands was not executed when Reset condition Read the RFID interrupt & status word Last_Transaction_Status IRQ enable conditions Always enable Status flag is set to ‘1’ A request for a new transaction is pending when Reset condition The last requested transaction with the Core has been completed. E.g. ADC is ready Core_Main_Status IRQ enable conditions Always enable Status flag is set to ‘1’ The Core is busy with a transaction between different internal devices. when Reset condition The Core is not busy with transactions between different internal devices REVISION 011 - JUNE 13, 2017 3901090129 Page 31 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 8.2. Serial Peripheral Interface (SPI) 8.2.1. SPI : modes of operation The SPI implemented in the MLX90129 works in Slave or Master mode.  When the MLX90129 SPI is configured in the Slave mode, the SPI master (being a microcontroller, a Zigbee End Device, …) controls the serial clock signal SCK, the Slave Select signal SS and transmits the data to the slave via the Master-OutSlave-In signal MOSI. As a slave, the MLX90129 answers with the Master-In-Slave-Out signal MISO, synchronized on SCK.  When configured in the Master mode, the MLX90129 SPI can select an external slave, typically an external serial EEPROM, and use it for data logging. The command op-codes and delays between request and response are programmed in the SPI configuration register. The master SPI controls the Slave Select, the Serial Clock signal, sends the data on MOSI and read data on MISO. It is possible to control the SPI as master thanks to custom RFID commands. SPI is compliant with the following control options:  Master mode and Slave mode  CPOL=0: The clock is active-high: in the idle mode, SCK is low.  CPHA=0: Sampling of data occurs on rising edges of SCK. Toggling of data occurs on falling edges.  MSB first (on MISO and MOSI)  Baud-rate: 1MHz Detailed signal description:  MOSI : this pin is used to transmit data out of the SPI module when it is configured as a Master and receive data when it is configured as a Slave.  MISO : this pin is used to transmit data out of the SPI module when it is configured as a Slave and receives data when it is configured as a Master.  SS : when the MLX90129 is configured as a SPI master, it controls the SS pin to select an external peripheral with which a data transfer will take place. When configured as a Slave, it is used as an input to receive the Slave Select signal.  SCK : this pin is used to output or receive the clock.  IRQ : this pin is used to interrupt the SPI master (microcontroller) process. When the MLX90129 is not selected by the SPI master or when the received command code is not supported, the pin MISO is in tri-state. When the MLX90129 uses the SPI in the master mode (to access an external memory), it complies with the same rules for any external SPI masters. 8.2.2. Slave SPI command set SPI command set Command EEP_RD EEP_WR REG_RD REG_WR DEV_RD DEV_WR REG_UPDT Code 0x0F 0x0E 0x0D 0x09 0x10 0x18 0x1C Operation Read the addressed EEPROM word Write the addressed EEPROM word Read the addressed register in the Register File Write the addressed register in the Register File Read a word from the selected internal device (Control, status, ADC,…) Write a word into the selected internal device (Control, ee-Latches ) Fills the Register File with its image stored in the EEPROM (without reboot) 8.2.3. SPI interruptions The SPI I/O signals are accompanied of an output interrupt signal IRQ. This signal may be used to wake up or to warn the SPI master (micro-controller) about some access conflicts or some general problems (low battery level, external event …). It is set once one of the selected events occur. It is reset once the SPI master has read the SPI Core interrupt / status word, or has set the bit Disable IRQ setting of the SPI Core control word. REVISION 011 - JUNE 13, 2017 3901090129 Page 32 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC SPI Core control word (Device address domain, address #00, read/write) Bits Name #00 – SPI Core control word 15:7 - Description (if bit=1) Reserved (must be 0) RFID interrupts control: Enable RFID Interrupt 2 (Access to Register file). Enable RFID Interrupt 1 (Access to EEPROM). Enable RFID Interrupt 0 (RFID field is detected). 6 5 4 Irq_Rfid_ Reg_Access_En Irq_Rfid_EEp_Access_En Irq_Rfid_Field_En 3 Irq_Last_Trans_En End of transaction Enable interrupt indicating the completion of the last requested transaction. To de-assert this interrupt, the user will request another transaction, read the SPI local data buffer (in device address domain), disable this interrupt or block IRQ assertion. 2 Irq_Dis Disabled IRQ setting. Disable the setting of the IRQ signal. 1 Core_Sts_Irq_En Core status interrupt enabled. Enable the interrupt on IRQ telling that the system is free. 0 Core_Lock Core lock. Lock any transactions between the different internal devices and the non-SPI interfaces. This allows having an access from SPI to any registers at any time. The last pending transaction is always completed. REVISION 011 - JUNE 13, 2017 3901090129 Page 33 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC SPI interrupt & status word (Devices address domain, address #01, read only) Bits Name Description (if bit=1) #01 – SPI interrupt & status word 15:13 (reserved) 12 Irq_ExternalEvent The pin AT has been disconnected from the GND. 11 (reserved) 10 Irq_Rfid_Reg_Access The RFID interface is accessing the Register File 9 Irq_Rfid_EEp_Access The RFID interface is accessing the EEPROM 8 Irq_Rfid_Field The magnetic field is high enough to start a RFID communication 7 Irq_Sensor_Threshold The output data from the sensor has crossed the defined threshold level or window 6 Irq_Timer_WakeUp The count-down of the wake-up is over 5 Irq_Dma_Ready The DMA transaction has been completed (in the non-loop mode) 4 Irq_Memory_Full The allocated memory for a datalogging with loop enable is full. The datalogger starts to overwrite the first data. 3 Irq_Write_Failure The non-volatile block has been written bad or weak: the data is wrong or its long-term retention is not guaranteed 2 Transaction_Error One of the previously executed commands has failed (read delay, denied access, data not processed,…). This bit is automatically cleared after reboot or after read of the SPI interrupt & status word. 1 Last_Transaction_Status This bit indicates whether the last request from SPI has been processed (‘0’) or not (‘1’). In this latter case, the MLX90129 ignores any new request from SPI. 0 Core_Main_Status The system is busy with an internal operation and the request from SPI cannot be processed immediately. The following table summarizes the information about the interrupts. For each bit of the SPI interrupt & status word, the condition to assert high or low the status flag, is described. All interrupts can be disabled in asserting high the bit Irq_Dis of the SPI Core control word. Interrupt description Irq_ExternalEvent IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_Rfid_Reg_Access IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_Rfid_EEp_Access IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_Rfid_Field IRQ enable conditions Status flag is set to ‘1’ when Reset condition REVISION 011 - JUNE 13, 2017 3901090129 Set to ‘1’ the bits 9 and 11 of the register #12 Pin AT is not connected to GND Pin AT is connected to GND Set to ‘1’ the bit 4 of the internal device #00 (SPI Core control word) A RFID reader is accessing the register file Read the SPI interrupt & status word Set to ‘1’ the bit 5 of the internal device #00 (SPI Core control word) A RFID reader is accessing the EEPROM Read the SPI interrupt & status word Set to ‘1’ the bit 6 of the internal device #00 (SPI Core control word) A RFID field has been detected, and is strong enough to start a RFID communication The RFID field has been removed, or is too low for a RFID communication Page 34 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Interrupt description Irq_Sensor_Threshold IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_Timer_WakeUp IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_DMA_ready IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_EEPROM_Full IRQ enable conditions Status flag is set to ‘1’ when Reset condition Irq_Write_Failure IRQ enable conditions Status flag is set to ‘1’ when Reset condition Transaction_Error_Flag IRQ enable conditions Status flag is set to ‘1’ when Reset condition Last_Transaction_Status IRQ enable conditions Status flag is set to ‘1’ when Reset condition Core_Main_Status IRQ enable conditions Status flag is set to ‘1’ when Reset condition REVISION 011 - JUNE 13, 2017 3901090129 Set to ‘1’ the bits 8,9,10 of the registers #15, #1B, #21 The last ADC output code crosses the defined threshold level or window The chip is requested to read a new value of the sensor Set to ‘1’ the bit 0 of the register #10 The timer has completed its counting phase The timer is requested to start a new counting phase (during the automatic logging mode) Set to ‘1’ the bit 2 of the register #09 The DMA unit has completed the last requested transaction Read the SPI interrupt & status word Set to ‘1’ the bits 2 and 3 of the register #09 The allocated memory for a datalogging with loop enable is full. Stop the datalogging Always enable When one of the previously requested write-operations to a non-volatile memory has failed Read the SPI interrupt & status word Always enable When one of previously requested commands was not executed Read the SPI interrupt & status word Always enable A request for a new transaction is pending The last requested transaction with the Core has been completed. E.g. ADC is ready Always enable The Core is busy with a transaction between different internal devices. The Core is not busy with transactions between different internal devices Page 35 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 8.3. Management of communication conflicts Core Transaction Arbiter Part of the Digital Controller, the “Core transaction arbiter” deals with several tasks:  Grant or deny accesses of the communication interfaces to the different memories  Manage the interrupts  Update the status of the current operations Memory access conflicts between SPI, RFID and DMA The two communication channels, SPI and RFID, and the internal DMA (Direct Memory Access) are able to access the memories (EEPROM, registers…) or the sensor ADC buffer, at the same time. The potential access conflicts are managed by the Core transaction arbiter. A DMA transaction may be interrupted by a RFID or a SPI starting communication. The RFID (resp. SPI) transaction cannot be interrupted by a starting SPI (resp. RFID) communication, or a DMA operation. In each case, the current transaction is completed. The priority order is the following: 1. SPI (highest priority) 2. RFID 3. DMA Management of two subsequent transactions, from the same communication channel: A transaction initiated via RFID or SPI should be completed before starting a new one. If a request is sent to the MLX90129 by a SPI master, or by a RFID base-station, and the current transaction is not completed, then it is dealt differently depending on its nature: _ the reading of the Core interrupt / status word is allowed at any time and its content is sent in the response. _ the reading of a memory (a register or an EEPROM word) is denied and an error-message response may be sent. For the SPI, it contains 0xFFFF. For the RFID, the content of the response is described in the standard protocol. _ if the request is not understood, it is not processed, and a flag is set in the Core interrupt / status word . This flag is reset once it has been read. The Core interrupt / status word (Internal device #01) The Core transaction arbiter updates its Core interrupt / status word at each transaction. This status word is read-only and contains some information about the processing of the incoming request. It indicates: _ whether the system is busy or not _ whether the last request has been processed _ whether the processing of the last request has failed _ the source(s) of the interrupt, if the interrupt signal on pin IRQ is asserted ‘1’. One Core interrupt / status word is associated to each communication way (SPI or RFID). Its content is explained in the chapters dedicated to RFID and to SPI. The Core Control Word (Internal device #00) The Core transaction arbiter updates its Core control word at each transaction. This status word is read/write and contains the settings used to control the interrupt signal IRQ, and the potential interrupts from other communication channel. One Core control word is associated to each communication way (SPI or RFID). Its content is explained in the chapters dedicated to RFID and to SPI. REVISION 011 - JUNE 13, 2017 3901090129 Page 36 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9. Device Configuration 9.1. Standalone datalogger 9.1.1. Main features The Datalogger application is managed by the DMA (Direct Memory Access) unit. This block controls the standalone applications, without any external microcontroller. It handles the start-up operations, and sends the data from a programmed source towards a programmed destination, using flexible protocol and interrupt conditions. Typically, it may get the data from the sensor interface and store it in an EEPROM. It works on defined time periods controlled by a wake-up timer. Its main features are the following:  The configuration registers are filled from the EEPROM at the start-up (when enabled)  The duty-cycle (ratio between active and sleep mode) is controlled by a wake-up timer (WUT) that wakes the system up after a programmed delay  Programmed behaviour (source, destination, interrupt options, master-SPI options, …)  Programmable command-set to address any kind of external SPI memory  Programmable timings used in the SPI protocol of the external memory (between the request and the response)  Calculation of the address of the destination. 9.1.2. DMA operations Loading of the register file from the EEPROM data. At the power-up of the battery, the DMA automatically loads the Register File with its image from the EEPROM. A bit stored in the EE-Latch bank, called Disable Automatic Loading, can be set to disable this automatic loading. At any time, the RFID or the SPI interface can send an Update command to update the content of the Register File with the values stored in the EEPROM. The configuration may be chosen in such a way that DMA operations start automatically at power-up. Data logging in the internal or external EEPROM After power-up, the DMA loads the Register File with the data stored in the EEPROM (it also loads its own configuration). The wake-up timer (WUT) starts counting to a programmed value. During this counting, the MLX90129 works in a sleep mode, consuming a very low power. To save power, the duty cycle should be as low as possible. At the end of the counting, the WUT wakes the DMA up. The DMA loads the configuration registers of the selected sensor, and starts a sensor acquisition. The result data is then stored in the EEPROM, at an address calculated from a programmed value. Depending on the options, the DMA may configure and start an acquisition of another sensor, or may let the system enter the sleep mode. If another sensor is selected, then the DMA loads the new sensor configuration before starting the acquisition. At any moment, this process may be interrupted by an external microcontroller, to read the data collection. For that, it asserts low the bit Processing Control of the DMA configuration register. Then, the process may be hold or reset. In order to store only the latest data from ADC, the bit Loop enable must be set. In this case, the old data is rewritten by the DMA unit with the new one when the memory border has been reached. When the memory is completely filled, a Full Memory interrupt appears on the pad IRQ. It is also possible to send an interrupt request (IRQ) to the external microcontroller after each Wake-up timer period. Then, the micro-controller may decide to read the sensor output data and process it. REVISION 011 - JUNE 13, 2017 3901090129 Page 37 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC INITIALIZATION - DMA loads its configuration from the eeprom - All blocks go into sleep mode (except wake-up timer) - Wake-up timer starts counting-down, from the programmed time period to 0. - The configuration of the selected sensor is loaded from the eeprom _ The DMA wakes-up the sensor, run an A/D conversion and compare the result with the programmed threshold(s) Yes Sensor: Does the new value has to be stored or sent ? - DMA sends the new data to the programmed destination _ Sensor turns into sleep mode Yes No - DMA cancels the transaction and activate the IRQ pin (if allowed) _ Sensor turns into sleep mode DMA: Is there another sensor to select in the sequence ? HOLD request or End of process? No No - DMA turns into the sleep mode - The wake-up timer reads the period value from its register Sleep mode or Stand-by mode REVISION 011 - JUNE 13, 2017 3901090129 Page 38 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Interrupt of DMA process The microcontroller or the RFID base-station can read the DMA status register and access the DMA configuration register to start and control the DMA processing. At any time, they can hold the DMA process and check the current status of the copied data (telling how many words have been copied). Then, they can change the DMA configuration to a new one or continue the processing. While the DMA is processing data or is on hold, any change of the parameters in the DMA configuration words does not cause the expected changes in the behaviour. End of DMA process At the end of the sequence, the MLX90129 may enter its sleep mode or its stand-by mode. During the Sleep mode, the system may be interrupted by a RFID field, or by the SS line asserted low during 1.5ms. WRITE READ UPDATE SS SCK MOSI Command[7:0] tWake_up =1.5 ms 9.1.3. Setup of the Automatic Logging Mode Setup In order to enable the automatic logging mode, the following sequence must be run: _ Setup the DMA configuration word _ Setup the DMA source start address, DMA destination start address and the DMA length. _ If an external EEPROM is used, setup the SPI-master configuration and command word _ setup the sensor interface configurations in the EEPROM. _ Setup the Sensor control word and the Sensor thresholds words (if required) _ Setup the Wake-up Timer configuration word _ Setup the logging period in the wake-up timer _ To enable the DMA operation, the bit Processing Control of the DMA configuration register must be reset. _ Set the bit Automatic Logging enable in the wake-up timer configuration to ’1’. All these actions can be performed automatically after the system boot: the required configuration can be set in the EEPROM. Then, after power-on, the system reads this configuration and performs the programmed actions. It is not mandatory to store all the data from a sensor at each iteration, but only the data fitting the conditions defined in the bits Data logging control of the register word called Sensor[x] Control word. Logging several sensors and time-stamp When more than one sensor is selected as a source of automatic logging, the DMA stores subsequently all the sensor output data in the selected memory. The stored data has a prefix to identify them: Bit Definition 15:14 Prefix 13:0 ADC output code The prefix code is defined in the following table: Prefix code Related sensor or parameter 00 Sensor 0 01 Sensor 1 10 Sensor 2 11 Iteration index (Time stamp) REVISION 011 - JUNE 13, 2017 3901090129 Page 39 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.1.4. Direct Memory Access configuration DMA configuration words (EEPROM & Register, address #09 to #0C, read/write) Bits Name #09 – DMA Control word 15:12 15 DMA_Time_Incl 14 DMA_Sensor2_Incl 13 DMA_Sensor1_Incl 12 DMA_Sensor0_Incl 10:11 Description (when bit = ‘1’) 9 DMA_LastWordMask 8 DMA_FirstWordMask 7:6 DMA_DestinationCode 5:4 DMA_SourceCode 3 DMA_LoopEn 2 DMA_IrqDataReady_En Disable the copying of the LSB (byte) of the last word in the datalogging sequence in the external EEPROM Disable the copying of the MSB (byte) of the first word in the datalogging sequence in the external EEPROM Destination of the data transfer 00 : register file 01 : internal EEPROM* 10 : SPI as master (external EEPROM) 11 : (reserved) Source of the data transfer 00 : (reserved) 01 : internal EEPROM 10 : SPI as master (external EEPROM) 11 : Sensor interface Enable an eternal loop of data logging. In this case, after having copied Length words, the DMA unit does not stop its operation but sets its address to the initial one and goes on copying data. IRQ Data-transfer enabled. The IRQ signal is set when the data transfer has been completed. 1 DMA_Hold 0 DMA_Processing_Control #0A – DMA: Source start address 15:0 DMA_Source_Address #0B – DMA: Destination start address 15:0 DMA_Destination_Address #0C – DMA: Length 15:0 DMA_Data_Length Sensing sequence include the iteration index (time stamp) in the memory include the measurement and the storing of sensor 2 include the measurement and the storing of sensor 1 include the measurement and the storing of sensor 0 Reserved (must be 00) Hold. The DMA holds its operation till this bit goes low. The current ongoing DMA transaction is always completed. Manual processing control. ‘0’: Manual stop of DMA (used for automatic data-logging ) ‘1’: Manual start of DMA (not for automatic data-logging) Address of the first word to be copied from the source device. Address of the first word to be filled into the destination device.* Length of the block to be copied (in words).* * /!\ in case of datalogger application with sensor data logged into the MLX90129 internal EEPROM, care should be taken to not overwrite the configuration value in EEPROM [from #00 to #28]. For this reason:  DMA_Destination_Address should be at least 0x29  DMA_Data_Length should have the maximum value of 0xD7 ( in case of DMA_Destination_Address is 0x29) in order to not exceed the address 0xFF REVISION 011 - JUNE 13, 2017 3901090129 Page 40 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC DMA status register (Device Address Domain, #05, read only) Bits Name #05 - DMA status register 15:0 DMA_Current_Destination _Address Description Address of the block of memory in the destination address domain (which is still not filled with data from the source device). 9.1.5. Wake-up timer / Power management configuration The Wake-up timer is used for two purposes: - to wake-up the microcontroller after a defined delay via the IRQ pin - to enable and sequence the periodical logging of data from the sensor - to enter the stand-by mode after a programmed delay The following table contains the control options of this timer: Wake-up timer (WUT) / Power management configuration words (EEPROM & register, addresses #0F and #10, read / write) Bits Name Description (when =1) #10 – Timer Control word 15:6 - Reserved (must be 0) 5:4 WUT_Precision Precision. Defines the time unit for the specified timer wake-up period (called Count-down period). 00: time in ms 01: time in s 10: time in min 11: time in hours 3 WUT_AutoStandby_En Automatic stand-by enabled. Allow the MLX90129 to automatically enter the stand-by mode after the end of the wake-up timer count-down, or after completion of the automatic logging (if it is enabled). 2 WUT_AutoLog_En Automatic logging mode enabled. If this bit is set to ‘1’, the wake-up timer loads its value from the Register file and starts a count-down. As soon as it reaches 00h, it allows to run one or several sensor acquisitions and to store the data in the programmed destination. Then, it loads its count-down period again and starts counting. This process may be halted by resetting this bit to ‘0’. 1 - . Reserved (must be 0) 0 WUT_Irq_En Timer IRQ enabled. The timer starts its operation and generates IRQ signal after passing specified period. #0F – Timer period 15:0 WUT_CountDownPeriod REVISION 011 - JUNE 13, 2017 3901090129 Combined with the WUT_Precision, this parameter defines the period between two measurements. If N is the conversion into decimal value of the WUT_CountDownPeriod hexadecimal value, the nominal logging period will be: WUT_Precision = 00 -> Period = N * 0.9765625 ms WUT_Precision = 01 -> Period = N * 1 s WUT_Precision = 10 -> Period = N * 1 min WUT_Precision = 11 -> Period = N * 1 hour Page 41 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.1.6. Master SPI configuration A bit of the Device security map is used to set the SPI as master. Then, the MLX90129 controls the clock SCK, the slave-select SS (output), and the communication I/O MOSI (output) and MOSI (input). The SPI configuration words are used to setup the parameters of the SPI-master interface, in order to access an external memory (a serial SPI EEPROM). In master mode, the SPI may be used by the internal DMA unit (Direct Memory Access) to store the output data of the sensor. The stored data may be read back by a RFID base-station. Master SPI configuration words (EEPROM & Register, #0D and #0E, read/write) Bits Name Description #0D – External memory control word 15:8 SPI_WriteEn_Code Write enabled command code. Command op-code of the “write enable” operation, used toward an external EEPROM. 7 SPI_BurstMode_En Burst mode enable: enable the write burst mode used in some SPI serial EEPROM. (*) 6:4 SPI_WriteDelay Write delay. Delay which is inserted between a write command and another subsequent command. Precision is 4 ms. Minimal write delay calculation equation, when value of this field is non-zero: t WC = 4 x WriteDelay - 1 (ms). 3:2 SPI_WriteEn_Ctrl Write enable operation control. Defines when the Write Enable command must be applied: 00 - never 01 - reserved 10 - before every write operation 11 - reserved 1:0 SPI_AddressMode Addressing mode. Defines the address length to be passed via SPI for a proper EEPROM addressing. 00 - 8-bit address is used 01 - 16-bit address is used 10 - 24-bit address is used (8 MSB are filled with 00) 11 - reserved #0E – External memory command codes word 15:8 SPI_WriteCode 7:0 SPI_ReadCode Write command code. Command op-code used by MLX90129 to write in an external memory block Read command code. Command op-code used by MLX90129 to read from an external memory block (*) Note: The setting of the bit Burst mode enable switches all subsequent transactions with an external memory into burst mode. It means, that only the first memory access transaction requires sending a command and an address. After completion of this first transaction, the master SPI of the MLX90129 does not set the SS signal to ‘1’. When a new block has to be read / written, the SPI master skips the command and address phases and immediately sends or receives data to or from the external memory (it allows a page access). REVISION 011 - JUNE 13, 2017 3901090129 Page 42 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.2. Sensor Signal Conditioner 9.2.1. Block description The sensor signal conditioner amplifies and filters the sensor output signal, before converting it to a digital format. These are its main features:  Two programmable gain amplifiers (PGA1 and PGA2)  Programmable offset level (DAC)  16-bit A/D converter  Internal temperature sensor  Two selectable external differential or single-ended sensors  Voltage regulator, to supply internal and external devices  Programmable serial resistor connected to the external sensors VBAT Voltage regulator VSS SensSup1 DAC Sens1 Sens2 Sens3 Sens4 Sensors supplies & Serial resistance network Input Multiplexor SensSup2 PGA1 + PGA2 ADC Sensor Digital Controller Internal temperature sensor Common configuration for all sensors Specific configuration for each sensor Mix between common and specific configuration Voltage regulator This block provides the signal conditioner chain and the external sensors with a programmable, stable voltage for a wide range of sourced currents. Internal temperature sensor This block gives a temperature-dependent voltage. As all other sensors, it must be calibrated to give accurate data. REVISION 011 - JUNE 13, 2017 3901090129 Page 43 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Sensor supplies & Resistor network Many combinations of resistors connections with the external sensors are possible. All the switches figured on the following schematic are independently programmable via register #1A. The supply VREF is the stabilized output of the voltage regulator. The configuration register #19 is used to connect an external sensor or internal resistance to the inputs of the analogical chain (called MUX OUT1 and MUX OUT2). SENSOR POWER (Reg #12) RESISTANCE NETWORK (Reg #1A) SENS_SUP1 b7 b2 VREF Programmable resistor 1 (Rv1) (register #14) b6 b0 b1 b2 b5 b3 b1 b10 b11 Rf1 (PGA1) (PGA2) (DAC) (ADC) INPUT MULTIPLEXOR (Reg #19) b3 MUX OUT1 VCM b8 MUX OUT2 b7 SENS_SUP2 b13 b4 Rf2 b8 Programmable resistor 2 (Rv2) (register #14) b14 b0 SENS1 b5 SENS2 b1 SENS3 b6 SENS4 b5 b4 TEMPSENS1 TEMPSENS2 b9 Input multiplexer This block allows selecting the sensor signal which will be connected to the first amplifier of the signal conditioner. It is possible to select the external sensor(s) connected to SENS1, SENS2, SENS3 and SENS4, or the internal temperature sensor. Programmable amplifier 1 (PGA1) This block is the first programmable amplifier of the analog chain. It has a wide range of gain and is fully differential. It is compliant with a wide range of input common-mode voltage. ΔPGA1_Out = Gain1 * Δ PGA1_In Where: ΔPGA1_Out is the differential output voltage of the Programmable Amplifier 1 Gain1 is the gain of the Programmable Amplifier 1 D/A converter (DAC) This block is used to compensate the offset of the sensor and of PGA1, amplified by PGA1. It is also used to choose the value of the physical sensed value, for which the ADC will give its middle code. REVISION 011 - JUNE 13, 2017 3901090129 Page 44 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Programmable amplifier 2 (PGA2) This block amplifies (with a programmable gain) the output voltages of PGA1 and of the DAC, following the equation: ΔPGA2_Out = Gain2 * [Δ PGA1_Out – ΔDAC_Out ] Where: ΔPGA1_Out is the differential output voltage of the Programmable Amplifier 1 ΔPGA2_Out is the differential output voltage of the Programmable Amplifier 2 ΔDAC_Out is the differential output voltage of D/A converter Gain2 is the gain of the Programmable Amplifier 2 A/D converter (ADC) This block converts into a digital format the output voltage of PGA2. REVISION 011 - JUNE 13, 2017 3901090129 Page 45 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Sensor Digital Controller The main features of the sensor digital controller block are:     Initialization of the sensor interface, and running of the A/D conversions Buffer the ADC output code (in one of the 3 ADC buffers) when conversion has been completed Digital data processing: main calculation, comparison with threshold values Take the decision to store the data, and/or configure the conditions to generate an interrupt on IRQ. Before any A/D conversion, the configuration of the sensors must be stored in the register file at addresses from #12 to #1A. Each sensor has its configuration stored in EEPROM. Depending on the selected sensor, the appropriate data will be copied from EEPROM to the register file. The configuration of the selected sensor is automatically loaded from EEPROM when:  Using commands Read Internal Device #07, Read Internal Device #08, for the first time.  Using a command Read Internal Device #XX different from the previous one. The configuration of the selected sensor is not automatically loaded from EEPROM when:  Using command Read Internal Device #06, for the first time.  Using the same command Read Internal Device as the previous one. EEPROM REGISTER FILE #12 SENSOR POWER CONFIG. SENSOR POWER CONFIG. #12 #13 (reserved) (reserved) #13 #14 SENSOR TRIMMING SENSOR TRIMMING #14 #15 SENSOR 0 CONTROL SENSOR 0 CONTROL #15 #16 SENSOR 0 LOW THRESHOLD SENSOR 0 LOW THRESHOLD #16 #17 SENSOR 0 HIGH THRESHOLD SENSOR 0 HIGH THRESHOLD #17 #18 SENSOR 0 CONDITIONER CONFIG. SENSOR 0 CONDITIONER CONFIG. #18 #19 SENSOR 0 CONNECTION CONFIG. SENSOR 0 CONNECTION CONFIG. #19 #1A SENSOR 0 RESISTANCE NETWORK SENSOR 0 RESISTANCE NETWORK #1A #1B SENSOR 1 CONTROL #1C SENSOR 1 LOW THRESHOLD #1D SENSOR 1 HIGH THRESHOLD #1E SENSOR 1 CONDITIONER CONFIG. #1F SENSOR 1 CONNECTION CONFIG. #20 SENSOR 1 RESISTANCE NETWORK #21 SENSOR 2 CONTROL #22 SENSOR 2 LOW THRESHOLD #23 SENSOR 2 HIGH THRESHOLD #24 SENSOR 2 CONDITIONER CONFIG. #25 SENSOR 2 CONNECTION CONFIG. #26 SENSOR 2 RESISTANCE NETWORK Selection of the Sensor is made by using the following commands: Read internal device #06: SENSOR 0 Read internal device #07: SENSOR 1 Read internal device #08: SENSOR 2 or it is automatically updated by the DMA in the automatic logging mode 9.2.2. Sensors common configuration The following registers manage the sensor power configuration and the trimming of the internal resistor. This configuration is applicable for all the sensors. Sensor’s power configuration words (EEPROM & Register, #12, read / write) REVISION 011 - JUNE 13, 2017 3901090129 Page 46 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC The sensor’s power configuration register allows disabling unused blocks in order to save power. Bits Name Content 0= not powered (disabled) 1= powered (enabled) #12 – Sensors power configuration word 0 Sensor_Pga1_En PGA1 enable bit 1 Sensor_Pga2_En PGA2 enable bit 2 Sensor_Dac_En DAC enable bit 3 Sensor_Adc_En ADC enable bit 4 Sensor_Reg_En Voltage Regulator enable bit 5 Sensor_DacBuf_En DAC buffer enable bit 6 Sensor_Bias_En Bias block enable bit 7 Sensor_Temp_En Temperature sensor enable bit 8 (not used, must be 0) 9 Sensor_Ats_Pwr_En Event detector power-on bit 10 (not used, must be 0) 11 Sensor_Ats_En Event detector enable bit 12 (not used, must be 0) 13 ExtSupplyMode 0: the regulator always supplies the external device 1: the regulator supplies it only in its watchful state (to save power) 15:14 (not used, must be 0) Sensor’s common configuration words (EEPROM & Register, #13 and #14, read / write) This EEPROM-word is used to trim the value of the programmable serial resistance connected to the sensor. Serial resistance Rv1 and Rv2 have the same value. It is also used to program the connection between the external sensors. Bits Name Content #13 - Reserved 15:0 Reserved Must be filled with 0x0000 #14 – Programmable resistance trimming configuration word (Common for all sensors) 5:0 Sensor_Res_Trim Trimming of the programmable resistances Rv1 and Rv2: Bits[5-0]=0 : the serial resistance is 0.5k Bit[0]=1  add 1k to the serial resistance Bit[1]=1  add 2k to the serial resistance Bit[2]=1  add 4k to the serial resistance Bit[3]=1  add 8k to the serial resistance Bit[4]=1  add 16k to the serial resistance Bit[5]=1  add 32k to the serial resistance 9:6 Melexis calibration: do not change this value 15:10 Reserved Must be filled with 0x0000 REVISION 011 - JUNE 13, 2017 3901090129 Page 47 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.2.3. Sensor specific configuration The following registers configure the sensor acquisition chain. This configuration is sensor specific. Sensor control word (EEPROM & Register, address #15. EEPROM only, addresses #1B, #21) Bits Name Description (when =1) #15 - Sensor control word 15:14 ADC_Mode 13:12 Sensor0_InitTime ADC mode 00: higher speed, but lower accuracy 01, 10: intermediate modes 11: lower speed, but higher accuracy Sensor initialization time 00: 330μs (= default initialization time for the internal sensor) 01: 2.9ms 10: 17ms 11: 128ms Reserved (00) 11 10 Sensor0_Irq_Above 9 Sensor0_Irq_Betwn 8 Sensor0_Irq_Below Interrupt conditions control - generate an interrupt when the last sample is above the programmed high threshold - generate an interrupt when the last sample is between the programmed high and low thresholds - generate an interrupt when the last calculated sample is below the programmed low threshold Low power mode. Enable the low power mode of the ADC. 7 ADC_LowPower 6 5 4 ADC_DataLogAbove ADC_DataLogBetwn ADC_DataLogBelow Data logging control - store the calculated samples* above the high threshold - store the calculated samples* between the high and low thresholds - store the calculated samples* below the low threshold * ADC value compared without prefix Reserved (00) 3:2 1:0 ADC_Proc_Ctrl #1B - Sensor 1 control word 15:0 Same as above #21 - Sensor 2 control word 15:0 Same as above REVISION 011 - JUNE 13, 2017 3901090129 Samples processing control Defines the rules for the calculation of the value which will be stored in the ADC buffer 00 - single sample 01 - average of 2 samples 10 - average of 8 samples 11 - average of 32 samples Same as above Same as above Page 48 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Sensor thresholds (EEPROM & Register, addresses #16 and #17. EEPROM only #1C, #1D and #22, #23) Bits Name Description #16 - Sensor 0 low threshold 15:0 Sensor0_ThresLow Sensor 0 low threshold word #17 - Sensor 0 high threshold 15:0 Sensor0_ThresHigh Sensor 0 high threshold word #1C – Sensor 1 low threshold 15:0 Sensor1_ThresLow Sensor 1 low threshold word #1D – Sensor 1 high threshold 15:0 Sensor1_ThresHigh Sensor 1 high threshold word #22 – Sensor 2 low threshold 15:0 Sensor2_ThresLow Sensor 2 low threshold word #23 – Sensor 2 high threshold 15:0 Sensor2_ThresHigh Sensor 2 high threshold word Signal Conditioner words (EEPROM & Register, addresses #18. EEPROM only #1E and #24) The MLX90129 can handle 2 different external sensors and 1 internal sensor. Each of these sensor output signals can be conditioned in a different way, using different values of gains and DC levels (offset). The chopper option can be used to get rid of the internal offset of the programmable amplifiers. It is effective only when the averaging option of ADC is used. The chopper enable makes the ADC conversion longer. Bits Name Content #18 - Sensor 0: Signal Conditioner configuration word 7:0 Sensor0_DacCode DAC code, for Sensor0 (offset or level shifter): 00000000: 0 01111111: Vref/2 10000000: 0 11111111: -Vref/2 11:8 Sensor0_Pga1Gain Gain of PGA1: 0000: Gain=8 0001: Gain=10 0010: Gain=12.6 0011: Gain=15.5 0100: Gain=19.6 0101: Gain=24.5 0110: Gain=30.8 0111: Gain=38.1 1000: Gain=47.6 1001: Gain=59.4 1010 to 1111: Gain=75 14:12 Sensor0_Pga2Gain Gain of PGA2: 000: Gain=1 001: Gain=2 010: Gain=3 011: Gain=4 100: Gain=5 101: Gain=6 110: Gain=7 111: Gain=8 15 Sensor0_Chopper_En Chopper enable 1: enabled #1E - Sensor 1: Signal Conditioner configuration word 15:0 Same as above Same as above #24 - Sensor 2: Signal Conditioner configuration word REVISION 011 - JUNE 13, 2017 3901090129 Page 49 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 15:0 Same as above Same as above Sensor connection words (EEPROM & Register, addresses #19. EEPROM only #1F and #25) The first amplifier (PGA1) of the conditioning chain may be connected to the internal / external sensors in some different ways. Each sensor has its own connections, programmed in the following EEPROM words: Bits Name Content #19 - Sensor 0: Connections configuration word 9:0 Sensor0_MuxCfg Input multiplexer selection bits (connecting the multiplexer inputs to the first amplifier PGA1) Bit[0] = 0  Mux out1= SENS1 (default) Bit[1] = 1  Mux out1= SENS3 Bit[2] (not used = 0) Bit[3] = 1  Mux out1= VCM (=VREF/2) Bit[4] = 1  Mux out1=Temp. sensor output1 Bit[5] = 0  Mux out2= SENS2 (default) Bit[6] = 1  Mux out2= SENS4 Bit[7] = 1  Mux out2= SENSSUP2 Bit[8] = 1  Mux out2= VCM (=VREF/2) Bit[9] = 1  Mux out2=Temp. sensor output2 12:10 Reserved, Must be 000 15:13 Power_Check ‘111’ = power check enable #1F - Sensor 1: Connections configuration word 9:0 Sensor1_MuxCfg Same as above #25 - Sensor 2: Connections configuration word 9:0 Sensor2_MuxCfg Same as above REVISION 011 - JUNE 13, 2017 3901090129 Page 50 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC Sensor serial resistance conditioner words (EEPROM & Register, addresses #1A. EEPROM only #20 and #26) Each of the 3 sensors called Sensor0, Sensor1, and Sensor2 can be connected to some serial resistances in order to reduce their current consumption, or to set their common-mode level. Bits Name Content #1A - Sensor 0 serial resistance configuration word 15 Sensor0_Temp_ En Bit[15]=1 -> enables the temperature sensor 14:0 Sensor0_Res_Cfg Resistance network configuration: Bit[0] (not used=0) Bit[1]=1  SENSSUP2 = VREF Bit[2]=1  SENS3 = VREF Bit[3] (not used=0) Bit[4]=1  SENSSUP2 = VSS Bit[5]=1  SENS4 = VSS Bit[6]=1  VCM = VREF/2 (enabled) Bit[7]=1  connects programmable resistance 1 to VREF Bit[8]=1  connects programmable resistance 2 to VSS Bit[9] (not used=0) Bit[10]=1  connects programmable resistance 1 to SENSSUP2 Bit[11]=1  connects programmable resistance 1 to SENS3 Bit[12] (not used=0) Bit[13]=1  connects programmable resistance 2 to SENSSUP2 Bit[14]=1  connects programmable resistance 2 to SENS4 #20 - Sensor 1 serial resistance configuration word 15:0 Same as above Same as above #26 - Sensor 2 serial resistance configuration word 15:0 Same as above Same as above REVISION 011 - JUNE 13, 2017 3901090129 Page 51 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.3. Power management The power management unit controls the following features of the MLX90129:  Start-up modes (with or without battery)  Power modes (stand-by, sleep, watchful or run mode)  Energy scavenging for battery-less applications  Oscillators management (digital clock, wake-up timer) 9.3.1. Power modes Power-off mode No battery, no field. The MLX90129 can quit this mode when a battery is connected or when a RF field is applied. Watchful mode This mode is the initial state, after power-on. In this state, the digital part is activated; the MLX90129 can receive commands from the RFID or SPI. Run mode Depending on the command from SPI or RFID, or on request from DMA, the MLX90129 enters the Run mode, where all the blocks implied in the transaction are powered. This state is not low-power, but timelimited. SLEEP MODE (Ultra low power) DMA request RFID command SPI command SPI (SS=0) WakeUp Timer RFID field WATCHFUL MODE (Low power) Initial state at power-on RFID command SPI command STANDBY MODE (Lowest power) RFID field SPI (SS=0) Controlled by: Digital Power Management Stand-by mode RUN MODE: Memory access In the stand-by mode, the supply voltage is applied, Sensor access but the MLX90129 consumes a minimum current. Typically, this mode is used after the module has been assembled and tested. Then, it can be stored for a long time without wasting the battery energy. The Digital Controller can not exit this mode by itself. It can only exit it by an external interrupt: emission of a RFID field or asserting low the Slave Select input of the SPI (during a specified time) The MLX90129 may re-enter this mode upon request from SPI or RFID (in writing the Wake-up Timer configuration word). It is possible to enter this mode after a programmed count-down from the Wake-up timer, or after a logging sequence. Sleep mode In the Sleep mode, only the wake-up timer works and sends an IRQ pulse (Interrupt Request) to the microcontroller after a programmable time period. The MLX90129 may leave this mode in the following cases: _ emission of a RFID field _ asserting low the Slave Select input of the SPI (during a specified time) _ DMA request to run an acquisition after a defined time period. In the sleep and the stand-by modes, it is possible to power-down the external device supplied by VREG. REVISION 011 - JUNE 13, 2017 3901090129 Page 52 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.3.2. Oscillators management The MLX90129 can use 3 clock sources from:  An internal 5MHz RC-oscillator for the digital clock  An internal low-power low-frequency RC-oscillator (used as a wake-up timer)  An external low-power low-frequency quartz oscillator (used for accurate wake-up timer) The use of the quartz oscillator is optional. If it is chosen instead of the RC-oscillator, then a 32.768kHz crystal should be connected between the pads XIN and XOUT. 9.3.3. Energy scavenging The MLX90129 embeds power supply management capabilities which allow a strong flexibility to design data logger devices with strong power consumption constraints. It is possible to store the energy from the incoming magnetic field into an external capacitor, on pad VFIELD or to run from a coin cell battery. COIL1 VFIELD Regulator COIL2 RFID front-end Disconnect Vfield and Vbat (Internal Device #03 - bit 15) VBAT Bypass VREG (Internal Device #04 - bit 2) External Supply Mode (EEPROM #12 - bit 13) VREG Regulator Low / High volt mode (Internal Device #04 - bit 3) Power Manager Regulator SENSOR INTERFACE OSCILLATORS DIGITAL The power management mode is defined by several switches configurable through the EEPROM and EE-Latch.  For the battery-less applications, VFIELD pad can be used to supply the MLX90129 if the switch between VFIELD and VBAT is closed (default).  For battery applications, the switch between VFIELD and VBAT could be open  For both kind of application, it is possible to supply the external device (external SPI memory or microcontroller) via VREG. The supply can be either at any time, or only in watchful state depending the External Supply Mode switch configuration  The Regulator which supplies VREG can be bypassed using the switch Bypass VREG. The output voltage on VREG is short cuts with Vbat and Vfield.  The VREG and SENSOR (Vref) regulators can be configured in high or low volt mode. The commands of these switches are defined as: Disconnect Vfield Vbat = Internal Device #03, bit 15 Bypass VREG = Internal Device #04, bit 2 External Supply Mode = EEPROM #12, bit 13 High or Low volt mode = Internal Device #04, bit 3 REVISION 011 - JUNE 13, 2017 3901090129 Page 53 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 9.4. Security 9.4.1. Communication security The Device Security Register is stored in the EEPROM. It contains the access rights to the different memories by the RFID interface. It allows a partial or complete disabling of the RFID interface. In addition, it controls the functionality of the SPI by making it master or slave. Device security map configuration register (EEPROM & Register, address #05, Read/Write) Bits Name #05 - Device security map 15:14 - Description (when bit = 1) 13 12 Rfid_Page0Read Rfid_Page0Write Allow read access to Register file page 0 for RFID. Allow write access to Register file page 0 for RFID.* 11 Rfid_EEpViaDma Allows RFID access to internal EEPROM via DMA. 10 Rfid_Adc_Access Allow access to ADC buffer for RFID 9 8 Rfid_ Int_Read Rfid_ Int_Write Allow a read access to the external memory by RFID Allow a read & write access to the external memory by RFID * 7 6 Rfid_EEl_Read Rfid_EEl_Write Allow a read access to EE-Latches by RFID Allow a read & write access to EE-Latches by RFID * 5 4 Rfid_Reg_Read Rfid_Reg_Write Allow a read access to the Register file page 1by RFID Allow a read & write access to the Register file page 1 by RFID * 3 2 1 0 Reserved (must be 00) Rfid_Lock_Dis Disable the RFID Core-lock access function Rfid_LockUn_En Disable RFID lock device / unlock device functionality** Rfid_Dis Disable the RFID communication media Spi_Master SPI slave disable. Disable SPI-slave and enable activity of SPI-master. *note: if the write-access is allowed, the read-access is also allowed, independently of the value of the read access bit ** when disabled the MLX90129 does not answer to the command “LOCK DEVICE” 9.4.2. EEPROM Access security The access to the EEPROM words is protected depending on their content. Three security levels have been defined and can be chosen for any EEPROM page. If any external device tries to access via SPI a memory location without permission, it obtains value 0xFFFF as result. Via RFID, the error response is defined by the standard ISO15693.  Definition of the different security levels Security level L0 L1 L2 Code Write access Read access Typical application 00 01 10 SPI, DMA SPI, DMA SPI, RFID, DMA SPI, DMA SPI, RFID, DMA SPI, RFID, DMA UID and security configuration L3 11 Reserved Reserved REVISION 011 - JUNE 13, 2017 3901090129 Register file initial configuration, data logging Customer ID, Unlocked User Data Page 54 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC  EEPROM security access levels The user data are separated in 8 pages, whose access levels (L0 to L3) are defined thanks to 2 bits, stored in the ‘Security Map Register’ of the EEPROM. A security procedure based on a password is required to execute the unlocking. The password is stored in EEPROM #06. EEPROM security map Page 0 1 2 3 4 5 6 7 Address (hex) 0x00 - 0x08 0x09 - 0x26 0x27 - 0x3F 0x40 - 0x5F 0x60 - 0x7F 0x80 - 0x9F 0xA0 - 0xBF 0xC0 - 0xFF Access level L0 programmable programmable programmable programmable programmable programmable programmable Words 9 30 25 32 32 32 32 64 Description Page 0: Melexis ID and device security Page 1: Register file initial image Page 2: User defined data, backup Page 3: User defined data Page 4: User defined data Page 5: User defined data Page 6: User defined data Page 7: User defined data EEPROM security map register (EEPROM, address #04) Bits (security level) [15:14] [13:12] [11:10] [ 9 : 8] [ 7 : 6] [ 5 : 4] [ 3 : 2] [ 1 : 0] Description Access level for EEPROM Page 7 Access level for EEPROM Page 6 Access level for EEPROM Page 5 Access level for EEPROM Page 4 Access level for EEPROM Page 3 Access level for EEPROM Page 2 Access level for EEPROM Page 1 Reserved (must be 0x00) REVISION 011 - JUNE 13, 2017 3901090129 Page 55 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 10. Application Information 1. RFID temperature sensor tag MLX90129 COIL1 COIL2 Matching network The MLX90129 may be used as a 13.56 MHz sensor transponder. The LC antenna is easy to implement and to tune thanks to the integrated programmable capacitance. The internal sensor allows monitoring the temperature without external component. MLX90121 Matching network VFIELD MLX90121 2. RFID multi sensors tag Sensor 1 Thanks to the multi sensor interface of the MLX90129, two differential sensors can be added. In this configuration 3 sensor values can be read by RFID. VBAT SENSSUP1 VFIELD SENS1 SENS2 VSS MLX90129 COIL1 Sensor 2 SENSSUP2 SENS3 SENS4 COIL2 3. Data logger The MLX90129 may be used in a standalone way as a data logger. The data may be stored in the internal EEPROM or in an external serial SPI EEPROM. Using the automatic logging mode, the MLX91029 wakes-up each programmed time period, converts the sensor data and stores it in the selected memory. This process may be hold or stopped by an external SPI master (microcontroller,…) or a RFID base-station. The data stored in EEPROM may be read via RFID. Sensor 1 VBAT SENSSUP1 VFIELD SENS1 SENS2 VREG VSS MLX90129 Sensor 2 SS SENSSUP2 SCK SENS3 MISO SENS4 COIL1 OPTIONAL Serial SPI EEPROM MOSI COIL2 RFID antenna REVISION 011 - JUNE 13, 2017 3901090129 Page 56 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 4. Micro-controller based applications Numerous flexible applications using a microcontroller can be imagined. The microcontroller may manage the MLX90129 to sense, store or send the data via RFID. It may also control a RF transceiver as the TH7122 and an external non-volatile memory or a LCD. Sensor 1 VBAT SENSSUP1 SENS1 SENS2 VREG VSS MLX90129 Sensor 2 VDD SS SENSSUP2 SCK SENS3 SENS4 COIL1 COIL2 Optional IO ROI FSKSW RF transceiver MISO SDATA MOSI SCLK Matching network SDEN IRQ TH7122 MICRO CONTROLLER RFID antenna Optional LCD Flash memory Zigbee 5. Padlock application When the event detection system is enabled, a padlock may be made with a wire connected between the pins AT and VSS. If this wire is broken, this event is memorized, and an interrupt can (optionally) be sent to the external microcontroller. Instead of the wire, a light sensor (solar cell)External may be connected. When powered, it sets an IRQ to the padlock wire controller. VDD Event_Detector_En AT (reserved) Event detector VSS Voltage reference 6. Serial resistor connected to the external sensor(s) Pressure + temperature sensor SensSup1 Vref Numerous connections are possible between the external sensor and the internal resistors. The following figure shows an example of these possibilities. ADC Sens1 Sens2 PGA1 Sens3 REVISION 011 - JUNE 13, 2017 3901090129 Page 57 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 11. Reliability Information Standard information regarding manufacturability of Melexis products with different soldering processes Our products are classified and qualified regarding soldering technology, solderability and moisture sensitivity level according to following test methods: Reflow Soldering SMD’s (Surface Mount Devices)   IPC/JEDEC J-STD-020 Moisture/Reflow Sensitivity Classification for Nonhermetic Solid State Surface Mount Devices (classification reflow profiles according to table 5-2) EIA/JEDEC JESD22-A113 Preconditioning of Nonhermetic Surface Mount Devices Prior to Reliability Testing (reflow profiles according to table 2) Wave Soldering SMD’s (Surface Mount Devices) and THD’s (Through Hole Devices)   EN60749-20 Resistance of plastic- encapsulated SMD’s to combined effect of moisture and soldering heat EIA/JEDEC JESD22-B106 and EN60749-15 Resistance to soldering temperature for through-hole mounted devices Iron Soldering THD’s (Through Hole Devices)  EN60749-15 Resistance to soldering temperature for through-hole mounted devices Solderability SMD’s (Surface Mount Devices) and THD’s (Through Hole Devices)  EIA/JEDEC JESD22-B102 and EN60749-21 Solderability For all soldering technologies deviating from above mentioned standard conditions (regarding peak temperature, temperature gradient, temperature profile etc) additional classification and qualification tests have to be agreed upon with Melexis. The application of Wave Soldering for SMD’s is allowed only after consulting Melexis regarding assurance of adhesive strength between device and board. Melexis is contributing to global environmental conservation by PROMoting lead free solutions. For more information on qualifications of RoHS compliant products (RoHS = European directive on the Restriction Of the use of certain Hazardous Substances) please visit the quality page on our website: http://www.melexis.com/quality.aspx. 12. ESD Precautions Electronic semiconductor products are sensitive to Electro Static Discharge (ESD). Always observe Electro Static Discharge control procedures whenever handling semiconductor products. REVISION 011 - JUNE 13, 2017 3901090129 Page 58 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 13. Package Information TSSOP20: REVISION 011 - JUNE 13, 2017 3901090129 Page 59 of 60 MLX90129 13.56MHZ SENSOR TAG / DATALOGGER IC 14. Contact For the latest version of this document, go to our website at www.melexis.com. For additional information, please contact our Direct Sales team and get help for your specific needs: Europe, Africa Telephone: +32 13 67 04 95 Email : sales_europe@melexis.com Americas Telephone: +1 603 223 2362 Email : sales_usa@melexis.com Asia Email : sales_asia@melexis.com 15. Disclaimer The information furnished by Melexis herein (“Information”) is believed to be correct and accurate. Melexis disclaims (i) any and all liability in connection with or arising out of the furnishing, performance or use of the technical data or use of the product(s) as described herein (“Product”) (ii) any and al l liability, including without limitation, special, consequential or incidental damages, and (iii) any and all warranties, express, statutory, implied, or by description, including warranties of fitness for particular purpose, noninfringement and merchantability. No obligation or liability shall arise or flow out of Melexis’ rendering of technical or other services. The Information is provided "as is” and Melexis reserves the right to change the Information at any time and without notice. Therefore, before placing orders and/or prior to designing the Product into a system, users or any third party should obtain the latest version of the relevant information to verify that the information being relied upon is current. Users or any third party must further determine the suitability of the Product for its application, including the level of reliability required and determine whether it is fit for a particular purpose. The Information is proprietary and/or confidential information of Melexis and the use thereof or anything described by the In formation does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other intellectual property rights. This document as well as the Product(s) may be subject to export control regulations. Please be aware that export might require a prior authorization from competent authorities. The Product(s) are intended for use in normal commercial applications. Unless otherwise agreed upon in writing, the Product(s) are not designed, authorized or warranted to be suitable in applications requiring extended temperature range and/or unusual environmental requirements. High reliability applications, such as medical life-support or lifesustaining equipment are specifically not recommended by Melexis. The Product(s) may not be used for the following applications subject to export control regulations: the development, product ion, processing, operation, maintenance, storage, recognition or proliferation of 1) chemical, biological or nuclear weapons, or for the development, production, maintenance o r storage of missiles for such weapons: 2) civil firearms, including spare parts or ammunition for such arms; 3) defense related products, or other material for military use or for law enforcement; 4) any applications that, alone or in combination with other goods, substances or organisms could cause serious harm to persons or goods and that can be used as a means of violence in an armed conflict or any similar violent situation. The Products sold by Melexis are subject to the terms and conditions as specified in the Terms of Sale, which can be found at https://www.melexis.com/en/legal/terms-andconditions. This document supersedes and replaces all prior information regarding the Product(s) and/or previous versions of this document. Melexis NV © - No part of this document may be reproduced without the prior written consent of Melexis. (2016) ISO/TS 16949 and ISO14001 Certified REVISION 011 - JUNE 13, 2017 3901090129 Page 60 of 60
MLX90129RGO-CAA-000-RE 价格&库存

很抱歉,暂时无法提供与“MLX90129RGO-CAA-000-RE”相匹配的价格&库存,您可以联系我们找货

免费人工找货