⬇ Download Markdown  ·  ⬇ Download LaTeX  ·  ⬇ original  ·  view original  ·  CSV: table 1, table 2, table 3, table 4, table 5, table 6, table 7, table 8, table 9, table 10, table 11, table 12, table 13, table 14, table 15, table 16, table 17, table 18, table 19, table 20, table 21, table 22, table 23

MLX90395 Triaxis® Magnetometer Node

Datasheet

1. Features and Benefits 2. Application Examples

Table 1 · 3 columns × 13 rows · p.1–1 · CSV
Triaxis Hall Technology HMI Non-Contacting Potentiometer
Automotive Grade (AEC-Q100) Joystick with Push
Micro-power with Programmable Duty Rotary with Push
Cycle Linear (Long Stroke)
Selectable Digital Output Top-Column Module
 16-bit Magnetic (XYZ) Stalk Position/Function Sensor
 16-bit Supply Voltage (V) Center Stack
 14-bit Temperature (T) Shifter Position Sensor
At runtime programmable modes Multimedia Rotary/Push Selector
 Single Measurement Knobs / Levers
 Burst Mode up to 2kHz (XYZ) Body Control
 Wake-up On Change (WOC) Mode Door handle & door lock
Programmable Measurement Range & Mirror position
extended magnetic sensing range option
On-chip magnetic calibration data allowing off-chip DSP to achieve maximum accuracy3. Description
8-bit measurement CRC Measurement Counter Selectable Bus Protocol – Slave node  Up to 10MHz SPI or 1MHz I2 C 48-bit unique ID Number RoHS Compliant & Green PackagesThe MLX90395 Triaxis Magnetic Node is a miniature monolithic sensor IC sensitive to the three orthogonal components of the flux density applied to the IC (i.e. BX , BY and BZ ) and to temperature. This allows the MLX90395 with the correct magnetic circuit to decode the absolute

SOIC-8 TSSOP-16 QFN-16 A0 V DD A1 State Machine SDA/ MOSI Bias

RAM V X V Y V Z V V MUX Tria xis

® EEPROM Control SPI/ I2C Interface ADC G

V T Temp Compensation MS/ CS Interrupt Trigger Temp Sensor Oscillator Low Power Oscillator REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 SCL/ SCLK MISO Wake-Up V SS     HMI Non-Contacting Potentiometer  Joystick with Push  Rotary with Push  Linear (Long Stroke) Top-Column Module  Stalk Position/Function Sensor Center Stack  Shifter Position Sensor  Multimedia Rotary/Push Selector  Knobs / Levers Body Control  Door handle & door lock  Mirror position

3. Description

The MLX90395 Triaxis  Magnetic Node is a miniature monolithic sensor IC sensitive to the three orthogonal components of the flux density applied to the IC (i.e. B X , B Y and B Z ) and to temperature. This allows the MLX90395 with the correct magnetic circuit to decode the absolute position of any moving magnet. It enables the design of novel generation of non-contacting position sensors that are frequently required for both automotive and industrial applications.

The MLX90395 selectable measurement data can be read over I 2 C or SPI bus. The sensor is runtime programmable and offers on-chip temperature compensation of the measured units. The selectable measurement duty cycle enables unsurpassed micro-power functionality. In this respect, the MLX90395 is the first true Software Defined Sensor: one IC, any magnetic sensing application. You define the function.

MLX90395 Triaxis® Magnetometer Node Datasheet

4. Ordering Information

Note: Ordering code BAA-x0x: not recommended for new designs. Product Temperature Package Option Code Packing Form Definition MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 MLX90395 K K K K K K K K K K K K DC GO LW DC GO LW DC GO LW DC GO LW BAA-000 BAA-000 BAA-000 BAA-100 BAA-100 BAA-100 BBA-001 BBA-001 BBA-001 BBA-101 BBA-101 BBA-101 RE RE RE RE RE RE RE RE RE RE RE RE Medium-Field Version (50mT) Medium-Field Version (50mT) Medium-Field Version (50mT) High-Field Version (120mT) High-Field Version (120mT) High-Field Version (120mT) Medium-Field Version (50mT) Medium-Field Version (50mT) Medium-Field Version (50mT) High-Field Version (120mT) High-Field Version (120mT) High-Field Version (120mT)

Legend:

Temperature Code: Package Code:

Option Code - chip revision:

Option Code - application:

Packing Form:

Ordering Example:

K: from -40°C to 125°C “DC” for SOIC-8 package “GO” for TSSOP-16 package (dual die) “LW” for QFN-16 package (wettable flanks) Bxx-abc BAA: not recommended for new designs BBA: standard version Bxx-abc: a: Magnetic Sensing Range

0: Medium Field Version (50mT) 1: High Field Version (120mT) b: N/A c: SPI Filter

0: No filter (SPI frequency up to 10MHz) 1: 1MHz filter (SPI frequency up to 1MHz) “RE” for Reel

“DC”: 3000 pcs/reel “GO”: 4500 pcs/reel “LW”: 5000 pcs/reel “MLX90395KLW-BBA-101-RE” For a 120mT sensing range 3D Magnetic Node in QFN-16 package, delivered in Reel.

Table 1: Ordering information

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 2 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

Contents

  1. Features and Benefits ............................................................................................................................... 1 2. Application Examples ................................................................................................................................ 1 3. Description ............................................................................................................................................... 1 4. Ordering Information ............................................................................................................................... 2 5. Functional Diagram .................................................................................................................................. 6 6. Glossary of Terms ..................................................................................................................................... 8 7. Pin Definitions .......................................................................................................................................... 8

7.1. Pin Definition for SOIC-8 Package .................................................................................................... 8 7.2. Pin Definition for TSSOP-16 Package ............................................................................................... 8 7.3. Pin Definition for QFN-16 Package .................................................................................................. 9 8. Absolute Maximum Ratings .................................................................................................................... 10 9. Isolation Specification ............................................................................................................................. 10 10. General Description .............................................................................................................................. 11 11. General Electrical Specification ............................................................................................................ 12 12. Timing Specification ............................................................................................................................. 14 13. Temperature Specification ................................................................................................................... 15 14. Voltage Specification ............................................................................................................................ 15 15. Magnetic Field Requirements ............................................................................................................... 16

15.1. Medium-Field Variant (-0xx code) ............................................................................................... 16 15.2. High-Field Variant (-1xx code) ..................................................................................................... 16 16. Accuracy Specification .......................................................................................................................... 17

16.1. Medium-Field Variant (-0xx code) ............................................................................................... 17 16.2. High-Field Variant (-1xx code) ..................................................................................................... 18 17. Functional Description .......................................................................................................................... 19

17.1. Operating Modes ......................................................................................................................... 19 17.1.1. Single Measurement .............................................................................................................. 19 17.1.2. Burst Mode............................................................................................................................. 19 17.1.3. Wake-up on Change Mode .................................................................................................... 20 17.2. Flow Chart .................................................................................................................................... 21 17.3. Status Byte ................................................................................................................................... 22 17.3.1. Data Ready - DRDY ................................................................................................................. 22 17.3.2. Reset - RST .............................................................................................................................. 22

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 3 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet 17.3.3. Single Bit Error Corrected - SEC ............................................................................................. 22 17.3.4. Double Bit Error Detected - DED ........................................................................................... 22 17.3.5. Overflow - OVF ....................................................................................................................... 23 17.3.6. Communication Error - CE ..................................................................................................... 23 17.3.7. Measurement Counter .......................................................................................................... 23 17.4. Measurement CRC ....................................................................................................................... 24 17.4.1. CRC calculation ....................................................................................................................... 24 17.5. Commands ................................................................................................................................... 25 17.6. SPI Communication ...................................................................................................................... 25 17.6.1. Command implementation .................................................................................................... 27 17.6.2. SPI Timing Specification ......................................................................................................... 29 17.6.3. EMC filter (not re-programmable) - Not available in BAA version ........................................ 29 17.7. I 2 C Communication ...................................................................................................................... 30 17.7.1. Command Implementation .................................................................................................... 30 17.7.2. I 2 C Timing Specification ......................................................................................................... 32 18. Memory Structure and End-User Programmable Items ....................................................................... 33

18.1. NVRAM Endurance ...................................................................................................................... 33 18.2. Memory Structure ....................................................................................................................... 33 18.3. Register Map ................................................................................................................................ 34 18.3.1. Default NVRAM content ........................................................................................................ 36 18.4. Measurement Filters .................................................................................................................... 37 18.5. Communication and I 2 C Filters .................................................................................................... 38 18.6. Sensitivity ..................................................................................................................................... 39 18.7. Offset ............................................................................................................................................ 40 18.8. Burst and WOC Parameters ......................................................................................................... 40 18.9. Thermal Drift ................................................................................................................................ 40 18.10. External Trigger .......................................................................................................................... 41 18.11. NVRAM Lock (SPI mode) - Not available in BAA version ........................................................... 42 18.11.1. Temporary NVRAM Lock ...................................................................................................... 42 18.11.2. Permanent NVRAM Lock ..................................................................................................... 43 18.12. Other Controls ........................................................................................................................... 43 19. Recommended Application Diagrams .................................................................................................. 44

19.1. Wiring with the MLX90395 in SOIC-8/TSSOP-16 Package .......................................................... 44

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 4 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet 19.1.1. SPI Mode ................................................................................................................................ 44 19.1.2. I 2 C Mode ................................................................................................................................. 46 19.2. Wiring with the MLX90395 in QFN-16 Package .......................................................................... 47 19.2.1. SPI Mode ................................................................................................................................ 47 19.2.2. I 2 C Mode ................................................................................................................................. 49 20. Standard information regarding manufacturability of Melexis products with different soldering

processes ............................................................................................................................................... 50 21. ESD Precautions .................................................................................................................................... 50 22. Package Information ............................................................................................................................. 51

22.1. SOIC-8 Package ............................................................................................................................ 51 22.1.1. SOIC-8 - Package Dimensions ................................................................................................ 51 22.1.2. SOIC-8 - Pinout and Marking ................................................................................................. 52 22.1.3. SOIC-8 - Sensitive Spot Location ............................................................................................ 52 22.2. TSSOP-16 Package ........................................................................................................................ 53 22.2.1. TSSOP-16 - Package Dimensions ............................................................................................ 53 22.2.2. TSSOP-16 - Pinout and Marking ............................................................................................. 54 22.2.3. TSSOP-16 - Sensitive Spot Location ....................................................................................... 54 22.3. QFN-16 Package ........................................................................................................................... 55 22.3.1. QFN-16 - Package Dimensions and Sensitive Spot Location ................................................. 55 22.3.2. QFN-16 - Pinout and Marking (BAA version) ......................................................................... 55 22.3.3. QFN-16 - Pinout and Marking (BBA version) ......................................................................... 56 22.4. Package Thermal Performances .................................................................................................. 56 23. Contact ................................................................................................................................................. 57 24. Disclaimer ............................................................................................................................................. 57

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 5 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

5. Functional Diagram

The MLX90395 is sensitive to the three (B X , B Y , B Z ) components of the flux density applied to the IC. This allows the MLX90395 with the correct off-chip signal processing to decode the absolute position of any moving magnet (e.g. rotary position from 0 to 360 Degrees, linear displacement, joystick… as shown in Figure 1). The flexibility resides in the runtime selection of measurement data and the application software in the external microcontroller, resulting in a true “Software-Defined Magnetic Sensor”.

Rotary End-of-Shaft (with Push) Linear Axial Parallel Ball & Socket Joystick Rotary Through-Shaft Linear Axial Orthogonal Gimbal Joystick

Figure 1: Magnetic Applications

As the MLX90395 has no on-board microcontroller, it lends itself well to applications requiring a concatenation of multiple sensors on the communication bus of a single microcontroller, allowing more cost-efficient and lean designs. Melexis’ Applications Engineers can support in the microcontroller computations.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 6 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet V DD A0 A1 State Machine SDA/ MOSI EEPROM SCL/ SCLK Bias

RAM V V

MUX Tria xis

® V X V Y V Z Control

SPI/ I2C Interface

ADC G

V T Temp Compensation MISO MS/ CS Interrupt Trigger Temp Sensor Low Power Oscillator Oscillator V SS Wake-Up Figure 2: Block Diagram for the QFN-16 package A0 V DD State Machine Bias V X V Y V Z RAM EEPROM V V

MUX Tria xis

®

ADC G Control SPI/ I2C Interface V T Temp Compensation

Temp Sensor Oscillator Low Power Oscillator Wake-Up SDA/ MOSI SCL/ SCLK MISO MS/ CS

Interrupt / Trigger V SS Figure 3: Block diagram for the SOIC-8 (single die) and TSSOP-16 (dual die) package

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 7 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

6. Glossary of Terms

Term Description Gauss (G), Tesla (T) TC ADC DAC LSB MSB DNL INL ASP DSP CDM HBM Units for the magnetic flux density:

Units for the 1mT = 10G

Table 2 · 7 columns × 29 rows · p.8–8 · CSV
TermDescriptionTermDescription
Gauss (G), Tesla (T)Units for the magnetic flux density: 1mT = 10GEMCElectro-Magnetic Compatibility
TCTemperature Coefficient (in ppm/°C)FIRFinite Impulse Response
ADCAnalog-to-Digital ConverterOSROver Sampling Rate
DACDACDigital-to-Analog ConverterDigital-to-Analog ConverterDigital-to-Analog ConverterPWLPiece Wise Linear
LSBLSBLeast Significant BitLeast Significant BitLeast Significant BitPORPower On Reset
MSBMSBMost Significant BitMost Significant BitMost Significant BitSWSoftware
DNLDNLDifferential Non-LinearityDifferential Non-LinearityDifferential Non-LinearityHWHardware
INLINLIntegral Non-LinearityIntegral Non-LinearityIntegral Non-LinearityIMCIntegrated Magnetic Concentrator
ASPASPAnalog Signal ProcessingAnalog Signal ProcessingAnalog Signal ProcessingROMRead-only Memory
DSPDSPDigital Signal ProcessingDigital Signal ProcessingDigital Signal ProcessingRAMRandom-access Memory
CDMCDMCharge Device ModelCharge Device ModelCharge Device ModelESDElectrostatic Discharge
HBMHBMHuman Body ModelHuman Body ModelHuman Body Model
Table 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 PackageTable 2: Glossary of Terms 7. Pin Definitions 7.1. Pin Definition for SOIC-8 Package
Pin #Name (I2 C)Name (I2 C)Name (SPI)DescriptionDescriptionDescription
1SCLSCLSCLK[I] Bus clock[I] Bus clock[I] Bus clock
2SDASDAMOSI[I/O] Bus Data / SPI Master Out Slave In[I/O] Bus Data / SPI Master Out Slave In[I/O] Bus Data / SPI Master Out Slave In
3Not UsedNot UsedMISO[O] SPI Master In Slave Out[O] SPI Master In Slave Out[O] SPI Master In Slave Out
4INT/TRGINT/TRGINT/TRG[O or I] Interrupt / Trigger Pin (Programmable)[O or I] Interrupt / Trigger Pin (Programmable)[O or I] Interrupt / Trigger Pin (Programmable)
5A0A0Not Used[I] I2 C Address Pin 0[I] I2 C Address Pin 0[I] I2 C Address Pin 0
6V SSV SSV SS[S] Ground[S] Ground[S] Ground
7V DDV DDV DD[S] Supply[S] Supply[S] Supply
8MSMS/CS[I] Mode Select / Chip Select[I] Mode Select / Chip Select[I] Mode Select / Chip Select
Table 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 PackageTable 3: SOIC-8 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.2. Pin Definition for TSSOP-16 Package
Pin #Name (I2 C)Name (I2 C)Name (SPI)DescriptionDescriptionDescription
1SCL1SCL1SCLK1[I] Bus clock[I] Bus clock[I] Bus clock
2SDA1SDA1MOSI1[I/O] I2 C Data / SPI Master Out Slave In[I/O] I2 C Data / SPI Master Out Slave In[I/O] I2 C Data / SPI Master Out Slave In
3Not UsedNot UsedMISO1[O] SPI Master In Slave Out[O] SPI Master In Slave Out[O] SPI Master In Slave Out
4INT/TRG1INT/TRG1INT/TRG1[O or I] Interrupt / Trigger Pin (Programmable)[O or I] Interrupt / Trigger Pin (Programmable)[O or I] Interrupt / Trigger Pin (Programmable)
5A02A02Not Used[I] I2 C Address Pin 0[I] I2 C Address Pin 0[I] I2 C Address Pin 0
6V SS2V SS2V SS2[S] Ground[S] Ground[S] Ground
7V DD2V DD2V DD2[S] Supply[S] Supply[S] Supply
8MS2MS2/CS2[I] Mode Select / Chip Select[I] Mode Select / Chip Select[I] Mode Select / Chip Select

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 8 of 57

MLX90395 Triaxis® Magnetometer Node

Table 3 · 4 columns × 25 rows · p.9–9 · CSV
Pin #Name (I2 C)Name (SPI)Description
10SDA2MOSI2[I/O] I2 C Data / SPI Master Out Slave In
11Not UsedMISO2[O] SPI Master In Slave Out
12INT/TRG2INT/TRG2[O or I] Interrupt / Trigger Pin (Programmable)
13A01Not Used[I] I2 C Address Pin 0
14V SS1V SS1[S] Ground
15V DD1V DD1[S] Supply
16MS1/CS1[I] Mode Select / Chip Select
Table 4: TSSOP-16 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.3. Pin Definition for QFN-16 PackageTable 4: TSSOP-16 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.3. Pin Definition for QFN-16 PackageTable 4: TSSOP-16 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.3. Pin Definition for QFN-16 PackageTable 4: TSSOP-16 Pin Definitions and Descriptions For optimal EMC behaviour connect the unused pins (Not Used) to the Ground (See section 19.1). [I] stands for Input Pin, [O] stands for Output Pin and [S] stands for Supply Pin. 7.3. Pin Definition for QFN-16 Package
Pin #Name (I2 C)Name (SPI)Description
1INTINT[O] Interrupt
2MS/CS[I] Mode Select / Chip Select
3SCLSCLK[I] Bus clock
4Not UsedNot UsedNot Connected
5SDAMOSI[I/O] I2 C Data / SPI Master Out Slave In
6Not UsedMISO[O] SPI Master In Slave Out
7INT/TRGINT/TRG[O or I] Interrupt / Trigger Pin (Programmable)
8Not UsedNot UsedNot Connected
9Not UsedNot UsedNot Connected
10Not UsedNot UsedNot Connected
11A1Not Used[I] I2 C Address Pin 1
12A0Not Used[I] I2 C Address Pin 0
13V SSV SS[S] Ground
14Not UsedNot UsedNot Connected
15V DDV DD[S] Supply
16Not UsedNot UsedNot Connected

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 9 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

Table 4 · 7 columns × 14 rows · p.10–10 · CSV
ParameterSymbolMin.Typ.Max.UnitCondition
Supply VoltageV DDMAX4V<48h
Reverse Voltage ProtectionV DDREV-0.3V<48h
Positive Output VoltageVout4V<48h Vout<V DD +0.3V
Negative Output VoltageVoutREV-0.3V<48h
Positive Input Voltage(1)Vin4V<48h Vin<V DD +0.3V
Negative Input VoltageVinREV-0.3V<48h
Operating TemperatureTAMB-40+125°CRefer to the qualification profile
Junction TemperatureTJ+150°C
Storage TemperatureTST-40+150°CRefer to the qualification profile
Magnetic Flux DensityBMAX-1+1T
ESD voltage, HBMESDHBM-2+2kVAccording AEC-Q100-002 DC and LW package code
ESD voltage, CDMESDCDM-750+750VAccording AEC-Q100-011 DC and LW package code
Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).Table 6: Absolute Maximum Ratings Exceeding the absolute maximum ratings may cause permanent damage. Exposure to absolute maximum-rated conditions for extended periods may affect device reliability. 9. Isolation Specification Only valid for the package code GO, i.e. TSSOP-16 package (dual die).
ParameterSymbolMin.Typ.Max.UnitCondition

Isolation Resistance R ISOL 4 Max. Unit Condition MΩ Between dies, measured between V SS 1 and V SS 2 with ±20V bias

Table 7: Isolation Specification 1 For shared [I/O] pin, maximum rating for output applies.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 10 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

10. General Description

As described on the block diagram the three vector components of the magnetic flux density (B X , B Y and B Z ) applied to the IC are sensed through the sensor front-end. The respective Hall signals (V X , V Y and V Z ) are generated at the Hall plates and amplified.

The analog front-end is based on a fully differential analog chain featuring the classic offset cancellation technique (Hall plate 4 Phases spinning and chopper-stabilized amplification).

The conditioned analog signals are converted through a sigma-delta ADC (19 bits) and provided to a DSP block for further processing. The DSP stage is a custom finite state machine whose primary function consists of signal conditioning of the raw XYZ signals: offset & sensitivity adjustment and thermal offset & sensitivity drift compensation using the calibrated on-board temperature sensor. The result of these computations are a predetermined transfer characteristic of the sensor for a fixed gain setting.

V DD A0 A1 State Machine SDA/ MOSI EEPROM SCL/ SCLK Bias

RAM

Tria xis

V X V Y V Z V V

MUX ®

Control SPI/ I2C Interface ADC G

V T Temp Compensation MISO MS/ CS Interrupt Trigger Temp Sensor Oscillator Low Power Oscillator Wake-Up V SS These 3D linear Hall measurements are made available to the communication bus master for readout. The supported communication protocols are both I 2 C and SPI, where the Triaxis  Magnetic Node is a slave on the bus. Upon readback, it is then up to the microcontroller to process the measurement data – either in a vectorial or a scalar way – in order to achieve more complex position sensing functionality required by the application.

When processing data in a vectorial (or angular) way, all signal amplitude variations due to the sensitivity imperfections of the sensor, as well as the flux density degradation of the permanent magnet over temperature are cancelled out. The magnetic vectorial information is intrinsically self-compensated vs. flux density variations. This feature allows therefore an improved thermal accuracy vs. position sensors based on conventional 1D linear Hall sensors.

Another advantage of vectorial versus scalar signal processing is extended absolute position sensing range and higher linearity for Axial Parallel linear stroke position sensing applications.

In addition to the improved thermal accuracy, the realized position sensor features excellent linearity performances taking into account typical manufacturing tolerances (e.g. relative placement between the Hall IC and the magnet).

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 11 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

11. General Electrical Specification

General electrical specifications are valid for temperature range: -40 - 125°C, supply voltage range: 2.6/3.0 - 3.6V unless otherwise noted (condition).

Table 5 · 7 columns × 41 rows · p.12–14 · CSV
ParameterSymbolMin.Typ.Max.UnitCondition
Analog Supply VoltageV DD2.63.33.6VTA ≤ 90°C
Analog Supply VoltageV DD3.03.33.6VTA > 90°C
Supply Current(2)Idd.convXY2.33mAX-/Y-axis measurement
Supply Current(2)Idd.convZ34mAZ-axis measurement
Supply Current(2)Idd.convT1.62mATemperature measurement
Supply Current(2)Idd.convV1.62mAVoltage measurement
Idle Current(2, 3)Idd.idle1.4 1.49 20(5)µA µATA ≤ 85°C TA within TAMB
Standby Current(2, 4)Idd.stby2.4 2.410 21(5)µA µATA ≤ 85°C TA within TAMB
Surge Current(2, 5)Isurge25250mAStartup current, <3µs
Power-On reset (rising)VporLH1.451.52V
Power-On reset (falling)VporLH1.31.39V
Input High Threshold(5)VIH75%V DDSDA/MOSI, SCL/SCLK
Input Low Threshold(5)VIL25%V DDSDA/MOSI, SCL/SCLK
Input Level Hysteresis(5)VIHYST1527%V DDSDA/MOSI, SCL/SCLK
Input High Threshold(5)VIH70%V DDINT/TRG, MS/CS
Input Low Threshold(5)VIL20%V DDINT/TRG, MS/CS
Input Level Hysteresis(5)VIHYST1722%V DDINT/TRG, MS/CS
Input Capacitance(5)Cin530pF
Output Level HighVOH98%V DDMISO, INT, INT/TRIG, SDA (Static, 1mA load)
Output Level LowVOL2%V DDMISO, INT, INT/TRIG, SDA (Static, 1mA load)
ON Resistance(5)Rds.on469ΩSDA
ON Resistance(5)Rds.on132027ΩINT (NMOS and PMOS)
Output High Short Circuit Current(5)IshortH-60mAVout forced to 0V
Output Low Short Circuit Current(5)IshortL110mAVout forced to V DD
20nASDA
Leakage Current(5)Ileak25 0.1nA nAINT MISO
20nASCLK, MS/CS
Main Oscillator FrequencyFOSC0.9511.05MHzTA = 35°C
Main Oscillator Thermal DriftFOSC_TH-55%FOSCTA within TAMB
Low Power Oscillator FrequencyFLPOSC485052kHzTA = 35°C
LP Oscillator Thermal DriftFLPOSC_TH-66%FLPOSCTA within TAMB
Reset Time (POR and RT command)(6)TPOR1.32.4msTime from STARTUP to IDLE
Initialization Time(6)TINIT165μsTime from IDLE to start of conversion
Voltage Conversion Time(6)TCONVV163259μsV DD measurement FOSC = 1MHz
Temperature Conversion Time(6)TCONVT163835(7)μsProgrammable Signal Integration FOSC = 1MHz
Magnetic Conversion Time(6)TCONVM16333347(8)μsProgrammable Signal Integration FOSC = 1MHz, single channel
Conversion Time(6)TCONVTCONVV + TCONVT +TCONVM +11TCONVV + TCONVT +TCONVM +11TCONVV + TCONVT +TCONVM +11μsFOSC = 1MHz
Output Data Rate(6)ODRDCODRCONT1/(TCONV + TINIT )1/TCONV1/(TCONV + TINIT )1/TCONV1/(TCONV + TINIT )1/TCONVμsDuty Cycled Operation Continuous Operation
Interval Time(6)TINT01260(9)msTime in between conversion cycles (FLPOSC = 50kHz)
Trigger Pulse Width(6)TTRIG0.01250µsActive High
Memory Store time(6)THS_WAIT15msTA within TAMB

mA Vout forced to V DD 98 %V DD 6 20 SDA/MOSI, SCL/SCLK SDA/MOSI, SCL/SCLK SDA/MOSI, SCL/SCLK INT/TRG, MS/CS INT/TRG, MS/CS INT/TRG, MS/CS 110 2 For the dual die version, the supply current is multiplied by 2. Idle current is the current that is drawn by the IC in the IDLE mode, where it can only receive new commands on the communication bus, but all other blocks are disabled. The analog (excluding the power-on-reset block) is disconnected, only the digital IO part allows clocking of a few vital gates. 4 Standby current corresponds to the current consumed in the digital, where not the main oscillator is running which is used for analog sequencing, but only the low-power oscillator. This standby current is present in Burst mode or WOC mode; whenever the IC is counting down to start a new conversion. 5 Not covered by final test, based on characterization data.

3

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 12 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet Parameter Leakage Current (5)

Symbol Ileak Min. Typ. Max. Unit Condition

20 0.1 25 20 nA nA nA nA SDA INT MISO SCLK, MS/CS

Table 8: Electrical Specification

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 13 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

12. Timing Specification

Timing conditions include the variations of supply, temperature and aging, unless specified.

Parameter Symbol Min. Typ. Max. Unit Condition Main Oscillator Frequency Main Oscillator Thermal Drift Low Power Oscillator Frequency LP Oscillator Thermal Drift Reset Time (POR and RT command) (6)

F OSC F OSC_TH 0.95 -5 1 1.05

5 MHz %F OSC T A = 35°C T A within T AMB F LPOSC 48 50 52 kHz T A = 35°C F LPOSC_TH -6 6 %F LPOSC T A within T AMB T POR 1.3 2.4 ms Time from STARTUP to IDLE

Initialization Time (6) T INIT 165

Voltage Conversion Time (6) TCONV V 163 259 μs

Temperature Conversion Time (6) TCONV T 163 835

(7) μs Magnetic Conversion Time (6) TCONV M 163 33347 (8) μs Conversion Time (6) TCONV Output Data Rate (6) ODR DC ODR

CONT TCONV V + TCONV T +

TCONV M +11 1/(TCONV + T INIT )

1/TCONV Interval Time (6) T INT 0 1260 (9) ms Trigger Pulse Width (6) Memory Store time (6)

T TRIG T HS_WAIT 0.01 250

15 µs ms μs μs

μs Time from IDLE to start of conversion V DD measurement

VD D measurem FO SC = 1MHz

Programmable Signal Integration

Integration FO SC = 1MHz

Programmable Signal Integration F OSC = 1MHz, single channel

FO SC = 1MHz

Duty Cycled Operation Continuous Operation Time in between conversion cycles (F LPOSC = 50kHz) Active High T A within T AMB Table 9: General Timing Specification 6 Not covered by final test, based on characterization data. (2 OSR2 96)+67. See section 18.4 for more information about filters. 8 m{[(2+2 DIGFILT )*2 OSR 32]+67}, m = selectable 0 to 3 (XYZ) axes. See section 18.4 for more information about filters. 9 BURST_DATA_RATE20.

7

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 14 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

13. Temperature Specification

The MLX90395 allows for measuring of the junction temperature for on-chip thermal compensations as well as off-chip thermal information within the application, provided there is proper modeling of the junction temperature to application temperature.

Parameter Temperature Sensor Resolution Temperature Sensor Output 0°C Temperature Sensor Output 35°C Temperature Sensor Linearity Temperature Sensor Accuracy Temperature Sensor Accuracy Symbol Min. Typ. Max. Unit Condition

T RES 50 LSB 14 /°C

T 0 0 LSB 14

T 35 1750 LSB 14 Calibration Temperature

°C °C °C T A ≤ 35°C T A > 35°C T LIN T ACC T ACC -2 0 -1 +2 +10 +7

Table 6 · 11 columns × 12 rows · p.15–15 · CSV
ParameterSymbolMin.Typ.Max.UnitCondition
Temperature Sensor ResolutionTRESTRES5050LSB14 /°CLSB14 /°C
Temperature Sensor Output 0°CT0T000LSB14LSB14
Temperature Sensor Output 35°CT35T3517501750LSB14LSB14Calibration Temperature
Temperature Sensor LinearityTLINTLIN-2+2+2°C°C
Temperature Sensor AccuracyTACCTACC0+10+10°C°CTA ≤ 35°C
Temperature Sensor AccuracyTACCTACC-1+7+7°C°CTA > 35°C
Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.Table 10: Temperature Specification 14. Voltage Specification The MLX90395 allows for measurement of the supply voltage for ADC plausibility checks as well as for monitoring battery discharge in battery powered applications.
ParameterSymbolMin.Min.Min.Typ.Typ.Max.Max.UnitCondition
Voltage ResolutionVRES55005500LSB16 /V
Voltage Output for 3VV3V1650016500LSB16
Voltage Output for 2VV2V1100011000LSB16
Voltage LinearityVLIN-20-20-202020mV

-20 -200 Typ. 5500 16500 11000 Max. Unit 20 200 LSB 16 /V LSB 16 LSB 16 mV mV Condition Table 11: Voltage Specification

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 15 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

15. Magnetic Field Requirements

This section describes the magnetic field requirements in order to meet the performance described in section 16.

15.1. Medium-Field Variant (-0xx code)

Parameter Magnetic Flux Density in X or Y Magnetic Flux Density in Z IMC Gain in X and Y IMC Gain in Z k factor Symbol Min. Typ. Max. Unit Condition

BX , BY 55( 10) mT 𝐵𝑋2 + 𝐵𝑌2 BZ 130 mT GI MC_XY 1.5 1.8 GI MC_Z 1 1.2 k 1.3 1.7 GI MC_XY / GI MC_Z

Table 12: Magnetic field requirement for Medium-Field Variant

15.2. High-Field Variant (-1xx code)

Parameter Magnetic Flux Density in X or Y Magnetic Flux Density in Z IMC Gain in X and Y IMC Gain in Z k factor Symbol Min.

B X , B Y B Z G IMC_XY G IMC_Z k 0.4 1.1 0.3 Typ. Max. Unit Condition

120( 10) mT 𝐵𝑋2 + 𝐵𝑌2 130 mT 0.6 1.2 0.5 GI MC_XY / GI MC_Z

Table 13: Magnetic field requirement for High-Field Variant 10 Above this value, the IMC starts saturating yielding to an increase of the linearity error

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 16 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

16. Accuracy Specification

16.1. Medium-Field Variant (-0xx code)

Magnetic Specifications (with Melexis default factory programming) are valid for temperature range: -40 - 125°C, supply voltage range: 2.6/3.0 - 3.6V unless otherwise noted (condition).

Parameter Symbol ADC Internal Resolution ADC External Resolution Sensing Range Offset (11)

N ADCINT N ADCEXT B RANGE50 X 0 , Y 0 , Z 0 S XX50 , S YY50 Sensitivity X- or Y-axis

(12)

Sensitivity Accuracy X- or Y-axis Sensitivity Temperature Coefficient X- or Y-axis Sensitivity Z-axis (13) Sensitivity Accuracy Z-axis Sensitivity Temperature Coefficient Z-axis Mismatch on the Raw Signals X, Y and Z (14) Thermal Drift of Sensitivity Mismatch

Cross-Axis Sensitivity (intrinsic)

Noise Hysteresis T CSXY Min.

-150 -8 Typ. 17.2 16 50

2.5 400 -500

S ZZ50

-10 2.5 400 Max. Unit Condition 8 bits bits mT LSB 16 T A within T AMB µT/LSB 16 LSB 16 /mT

LSB1 6/ mT % TA = 35°C

500 ppm/°C 10 µT/LSB 16 LSB 16 /mT

LSB1 6/ mT % TA = 35°C

150 T A within T AMB T CSZ -600 600 ppm/°C T A within T AMB S MISMXY S MISMXZ S MISMYZ -2 -5 -5 2 5 5

% TA = 35°C

-3 3 % T A within T AMB

-5 5 % TA = 35°C

275 350 450 µT rms µT rms µT rms

60 LSB 16

TA = 35°C TA = 85°C TA = 125°C 0 µT field TA = 35°C

S XYi , S YXi , S XZi , S ZXi , S YZi , S ZYi Table 14: Accuracy Specification for Medium-Field Variant 11 The thermal offset drift will be within a +/-30LSB window, by characterization.

Sensitivity can be adjusted with the parameter SENSXY, RESX and RESY. See section 18.6 for more details. 13 Sensitivity can be adjusted with the parameter SENSZ and RESZ. See section 18.6 for more details. 14 Die rotation tolerances (tilt die) of +/-2° included.

12

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 17 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

16.2. High-Field Variant (-1xx code)

Magnetic Specifications (with Melexis default factory programming) are valid for temperature range: -40 - 125°C, supply voltage range: 2.6/3.0 - 3.6V unless otherwise noted (condition).

Parameter Symbol ADC Internal Resolution ADC External Resolution Sensing Range Offset (15)

N ADCINT N ADCEXT B RANGE120 X 0 , Y 0 , Z 0 S XX120 , S YY120 Sensitivity X- or Y-axis

(16)

Sensitivity Accuracy X- or Y-axis Sensitivity Temperature Coefficient X- or Y-axis Sensitivity Z-axis (17) Sensitivity Accuracy Z-axis Sensitivity Temperature Coefficient Z-axis Mismatch on the Raw Signals X, Y and Z (18) Thermal Drift of Sensitivity Mismatch

Cross-Axis Sensitivity (intrinsic)

Noise Hysteresis T CSXY Min.

-150 -8 Typ. 17.2 16 120

7.14 140 -500

S ZZ120

-10 7.14 140 Max. Unit Condition 150 8 bits bits mT LSB 16 T A within T AMB µT/LSB 16 LSB 16 /mT

LSB1 6/ mT % TA = 35°C

500 ppm/°C 10 µT/LSB 16 LSB 16 /mT

LSB1 6/ mT % TA = 35°C

T A within T AMB T CSZ -600 600 ppm/°C T A within T AMB S MISMXY S MISMXZ S MISMYZ -2 -5 -5 2 5 5

% TA = 35°C

-3 3 % T A within T AMB

-5 5 % TA = 35°C

1080 µT rms 1250 µT rms 1650 µT rms

TA = 35°C TA = 85°C TA = 125°C 0 µT field TA = 35°C

S XYi , S YXi , S XZi , S ZXi , S YZi , S ZYi 60 LSB 16 Table 15: Accuracy Specification for High-Field Variant 15 The thermal offset drift will be within a +/-30LSB window, by characterization.

Sensitivity can be adjusted with the parameter SENSXY, RESX and RESY. See section 18.6 for more details. 17 Sensitivity can be adjusted with the parameter SENSZ and RESZ. See section 18.6 for more details. 18 Die rotation tolerances (tilt die) of +/-2° included.

16

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 18 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17. Functional Description

17.1. Operating Modes

The MLX90395 always acts as slave on the bus. It operates with 3 state machines:

 Measurement State Machine – running off the Main Oscillator  Low Power State Machine – running off the Low Power Oscillator  Communication State Machine – running off the bus clock

The three operating modes are controlled and defined by the master. All modes can be enabled and disabled at runtime through the communication protocol. On reset, the device is in idle mode, waiting for commands.

The components (field in X, Y or Z direction, temperature and voltage) which are needed to be measured can be provided when sending the commands. The order of conversion is fixed, and components which are not needed are simply skipped.

It is the user’s responsibility to read back the data and ensure that timings are met. The MLX90395 is purely a slave. Even in burst mode, the user is responsible to collect the data from the MLX90395.

Table 8 · 4 columns × 0 rows · p.19–19 · CSV
Operating ModeStart of ModeEnd of Mode (Return to IDLE)Measurement Data
Single MeasurementSM command TRG pin rising edgeMeasurement finishedArgument of SM command or BURST_SEL register content if empty argument BURST_SEL register if empty argument, provided SM command has been issued once in the past
Burst ModeSB commandEX commandArgument of SB command or BURST_SEL register content if empty argument

Table 16: Summary of the operating modes

17.1.1. Single Measurement

In single measurement mode, a single measurement is requested by the master through either the SM command or via a rising edge on the TRG pin. After finishing the measurement, the INT pin will go high and the MLX90395 will go back to idle mode. The measurement can be read out at any time by means of the RM command. This will clear the INT pin.

17.1.2. Burst Mode

In burst mode, the MLX90395 will continuously make measurements. The mode is started with the SB command and can be ended with the EX command. Measurements are read by the RM command and the status byte will indicate the freshness of the data. The rate of measurements is programmable. Each time a measurement is finished, the INT pin will go high. Reading out the data will clear the INT pin. If the measurement is not read on time, it will be overwritten by the next measurement when ready. The INT pin will show again a rising edge when the set of measurements can be read out. As long as the INT pin is high, the data is ensured to be most recent and ready.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 19 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet In burst mode, the only allowed commands are RM and EX. In case a different command is sent, the status will show a communication error. In case of SPI, this status is sent right after the first byte is received (even for multi byte commands). 17.1.3. 17.1.3. WakeWake--up on Change Mode up on Change Mode In wake-up on change mode, the MLX90395 will continuously make measurements. The mode is started with the SWOC command and can be ended with the EX command. Measurements can be read by the RM command, and the status byte will indicate the freshness of the data. Also here the rate of measurements is programmable. This mode differs from the burst mode in the sense that the INT pin will not go high at each finish of measurements but go high only when a specific condition is met. This condition can be controlled by the user: Absolute mode: each measurement is compared with the initial one (first measurement after start of the WOC mode). If the difference is larger than the threshold, then the INT pin goes high. The pin is cleared by the RM command. Differential mode: each measurement is compared with the previous one. If the difference is larger than the threshold, then the INT pin goes high. The pin is cleared by the RM command. Comparisons are done on the 16-bit output data, independent of the resolution programmed. In WOC mode, the only allowed commands are RM and EX. In case a different command is sent, the status will show a communication error. In case of SPI, this status is sent right after the first byte is received (even for multi byte commands).

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 20 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.2. Flow Chart

The flow chart below shows the different states the sensor can be in and how they are related for different measurement types. In case of an exit command, the measurement is first finished, and the loop is ended via the SM path.

Startup Idle Command received

to start measurement

Idle to active typ.165µs, typ.2mA Active Measuring WOC STBY Data ready 11us WOC mode,

BDR=0 WOC mode, BDR>0 Ending active mode

typ.90µs BM STBY to active typ.165µs, typ.2mA BM mode, BDR=0 WOC STBY to active typ.165µs, typ.2mA BM STBY BM mode, BDR>0

SM mode, or EX received Figure 4: Flow Chart (BDR = BurstDataRate)

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 21 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.3. Status Byte

A status byte is provided on nearly each command (RT does not return a status byte). Depending on the operating mode, the interpretation differs.

Table 9 · 9 columns × 4 rows · p.22–22 · CSV
ModeBit7Bit6Bit5Bit4Bit3Bit2Bit1Bit0
Burst Mode1Measurement CounterMeasurement CounterMeasurement CounterCE / DEDOVFRSTDRDY
WOC Mode0100CE / DEDOVFRSTDRDY
SM Mode0010CE / DEDOVFRSTDRDY
Idle0000CE / DEDOVFRSTDRDY

The SB command is always replied with a “Burst Mode” status, the SWOC command by a “WOC Mode” status. When the SM command is successfully received, an “SM Mode” status is given.

For the RM and RV command, the status returned purely depends on the mode in which the IC is operating. For single measurement mode, if the measurement is finished, the “Idle” status byte is given.

An EX command, when successfully received is replied with an “Idle” status byte.

Memory commands (HR, HS, RR and WR) are replied with the “Memory” status byte.

In case of an illegal command (RR in burst mode for example) then the status will be the one of the mode currently in, not necessarily the one associated with the command. The command got rejected, and the CE bit is set.

Melexis recommends verifying that the status byte matches the expected value.

17.3.1. Data Ready - DRDY

This flag is set to 1 to indicate that new data is ready (not yet read), or when it is the first time that this data is being read. This flag is updated after the measurement is done.

In burst mode, there is a 10μs window just before the measurement (and measurement counter) is updated, where the flag is always zero, even if the data has not yet been read.

17.3.2. Reset - RST

The reset flag is set whenever the IC has gone through a power-on reset (cold reset through V DD cycling or warm reset through RT command).

17.3.3. Single Bit Error Corrected - SEC

If set, a single bit error is detected in the NVRAM, and the bit is corrected.

17.3.4. Double Bit Error Detected - DED

If set, a double bit error is detected in the NVRAM. Once this bit is set, it will be latched until the problem is cleared (eg. by a write operation to the inconsistent register).

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 22 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.3.5. Overflow - OVF

If set, it indicates that the MSBit of the ADC (bit 18) is set. This situation should not occur, and could indicate a failure in the analog front-end of the IC.

17.3.6. Communication Error - CE

This flag is set in case a communication error is detected. It can be that a wrong command is set (or too early), or a command which was not allowed on a specific operating mode.

17.3.7. Measurement Counter

The 3-bit measurement counter is present in burst mode and is increased on each measurement. This allows the user to know if a measurement is missed when for example the RM commands are not in sync with the measurement rate.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 23 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.4. Measurement CRC

The measured data is protected with a CRC in order to provide a data integrity check at master side. The CRC is implemented as 8-bit CRC-8-CCITT (polynomial 0x07) on the totality of the measured data. The calculation is always done with 10 bytes of data in the order X[15:8], X[7:0], Y[15:8], Y[7:0], Z[15:8], Z[7:0], T[15:8], T[7:0], V[15:8], V[7:0]. Components which are not measured are to be filled out with 0x00.

17.4.1. CRC calculation

The below describes the CRC calculation. Also an example is provided to show the CRC calculation in action.

// Code crc = 0x00; crc = CRC_TABLE[crc ^ X[15:8]]; crc = CRC_TABLE[crc ^ X[7:0]]; crc = CRC_TABLE[crc ^ Y[15:8]]; crc = CRC_TABLE[crc ^ Y[7:0]]; crc = CRC_TABLE[crc ^ Z[15:8]]; crc = CRC_TABLE[crc ^ Z[7:0]]; crc = CRC_TABLE[crc ^ T[15:8]]; crc = CRC_TABLE[crc ^ T[7:0]]; crc = CRC_TABLE[crc ^ V[15:8]]; crc = CRC_TABLE[crc ^ V[7:0]];

// Example crc = 0x00; 0x00 = CRC_TABLE[0x00 ^ 0x00]; 0x00 = CRC_TABLE[0x00 ^ 0x00]; 0x89 = CRC_TABLE[0x00 ^ 0x80]; 0xB6 = CRC_TABLE[0x89 ^ 0x00]; 0x0B = CRC_TABLE[0xB6 ^ 0x00]; 0x31 = CRC_TABLE[0x0B ^ 0x00]; 0x8C = CRC_TABLE[0x31 ^ 0x05]; 0x5F = CRC_TABLE[0x8C ^ 0x26]; 0x9A = CRC_TABLE[0x5F ^ 0x00]; 0xCF = CRC_TABLE[0x9A ^ 0x00];

The CRC table is shown below

CRC_TABLE[256] = {

0x00, 0x07, 0x0E, 0x09, 0x1C, 0x1B, 0x12, 0x15, 0x38, 0x3F, 0x36, 0x31, 0x24, 0x23, 0x2A, 0x2D, 0x70, 0x77, 0x7E, 0x79, 0x6C, 0x6B, 0x62, 0x65, 0x48, 0x4F, 0x46, 0x41, 0x54, 0x53, 0x5A, 0x5D, 0xE0, 0xE7, 0xEE, 0xE9, 0xFC, 0xFB, 0xF2, 0xF5, 0xD8, 0xDF, 0xD6, 0xD1, 0xC4, 0xC3, 0xCA, 0xCD, 0x90, 0x97, 0x9E, 0x99, 0x8C, 0x8B, 0x82, 0x85, 0xA8, 0xAF, 0xA6, 0xA1, 0xB4, 0xB3, 0xBA, 0xBD, 0xC7, 0xC0, 0xC9, 0xCE, 0xDB, 0xDC, 0xD5, 0xD2, 0xFF, 0xF8, 0xF1, 0xF6, 0xE3, 0xE4, 0xED, 0xEA, 0xB7, 0xB0, 0xB9, 0xBE, 0xAB, 0xAC, 0xA5, 0xA2, 0x8F, 0x88, 0x81, 0x86, 0x93, 0x94, 0x9D, 0x9A, 0x27, 0x20, 0x29, 0x2E, 0x3B, 0x3C, 0x35, 0x32, 0x1F, 0x18, 0x11, 0x16, 0x03, 0x04, 0x0D, 0x0A, 0x57, 0x50, 0x59, 0x5E, 0x4B, 0x4C, 0x45, 0x42, 0x6F, 0x68, 0x61, 0x66, 0x73, 0x74, 0x7D, 0x7A, 0x89, 0x8E, 0x87, 0x80, 0x95, 0x92, 0x9B, 0x9C, 0xB1, 0xB6, 0xBF, 0xB8, 0xAD, 0xAA, 0xA3, 0xA4, 0xF9, 0xFE, 0xF7, 0xF0, 0xE5, 0xE2, 0xEB, 0xEC, 0xC1, 0xC6, 0xCF, 0xC8, 0xDD, 0xDA, 0xD3, 0xD4, 0x69, 0x6E, 0x67, 0x60, 0x75, 0x72, 0x7B, 0x7C, 0x51, 0x56, 0x5F, 0x58, 0x4D, 0x4A, 0x43, 0x44, 0x19, 0x1E, 0x17, 0x10, 0x05, 0x02, 0x0B, 0x0C, 0x21, 0x26, 0x2F, 0x28, 0x3D, 0x3A, 0x33, 0x34, 0x4E, 0x49, 0x40, 0x47, 0x52, 0x55, 0x5C, 0x5B, 0x76, 0x71, 0x78, 0x7F, 0x6A, 0x6D, 0x64, 0x63, 0x3E, 0x39, 0x30, 0x37, 0x22, 0x25, 0x2C, 0x2B, 0x06, 0x01, 0x08, 0x0F, 0x1A, 0x1D, 0x14, 0x13, 0xAE, 0xA9, 0xA0, 0xA7, 0xB2, 0xB5, 0xBC, 0xBB, 0x96, 0x91, 0x98, 0x9F, 0x8A, 0x8D, 0x84, 0x83, 0xDE, 0xD9, 0xD0, 0xD7, 0xC2, 0xC5, 0xCC, 0xCB, 0xE6, 0xE1, 0xE8, 0xEF, 0xFA, 0xFD, 0xF4, 0xF3 };

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 24 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.5. Commands

In the commands with zyxt in their first byte, the zyxt is used to select which components need to be measured (set corresponding bit to 1). zyxt = 0x0 results in all components being measured according the settings of VmeasEn and BurstSel (X, Y, Z, T and V). Else, the components of the zyxt argument are measured. With temperature compensation enabled, the temperature will always be measured. However depending on the argument zyxt, it can be read out or not (for CRC calculation it will be 0x0). Recommended is to do the measurement and the read command with the same zyxt argument.

It is not allowed to use the Reset command (RT) during any mode (Single Measurement Mode, Burst Mode, WOC Mode). The Exit Mode command (EX) has to be used to end a mode. The Reset command can be applied at least 1ms following the Exit command, if required.

Table 10 · 7 columns × 10 rows · p.25–25 · CSV
NameSymbol#CMD Byte #1CMD Byte #2CMD Byte #3CMD Byte #4
Start Burst ModeSB10b0001 zyxtN/AN/AN/A
Start WOC ModeSWOC20b0010 zyxtN/AN/AN/A
Start Single Measurement ModeSM30b0011 zyxtN/AN/AN/A
Read Measurement (SPI)RM40b0100 zyxtN/AN/AN/A
Read Register (SPI)RR50b0101 dddd(19)REG[5:0] << 2N/AN/A
Write Register (SPI)WR60b0110 dddd(19)DATA[15:8]DATA[7:0]REG[5:0] << 2
Exit ModeEX80b1000 0000N/AN/AN/A
Read VoltageRVC0b1100 dddd(19)N/AN/AN/A
Memory RecallHRD0b1101 dddd(19)N/AN/AN/A
Memory StoreHSE0b1110 dddd(19)N/AN/AN/A

Register access is always done per word (=2 bytes).

In SPI commands, the register equals the word-address, and is shifted by two bits to the left. To access register 0x01, the corresponding command byte becomes 0x04.

For I 2 C, the RR and WR commands do not exist, but direct register access is available through the I 2 C protocol. More information is found in section 17.7.

17.6. SPI Communication

The SPI protocol is of mode 3, which means that data is clocked on rising edge of the clock and the clock is at a high level in idle (CPOL=1, CPHA=1). MSbits are sent first. CS must be high after command completion and whenever the IC is not communicated with. With CS low the IC will wait for communication to occur.

Note that MISO and MOSI can be shorted together to allow for 3-wire SPI (mind the increased capacitance). This implies that the SPI output of MLX90395 is half-duplex. There is one danger, in case of an illegal command with more than 1 command byte, the IC immediately sends out the status byte after receiving the 19 d stands for “don’t care”. These bits are not checked and can be both 0 and 1.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 25 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet first byte. This leads to a collision on the bus. Illegal commands like this are RR and WR in burst or WOC mode. Always allow the current measurement to be finished too after sending the EX command, before sending other commands.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 26 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

17.6.1. Command implementation

For the examples give, the below convention is used.

xxx MOSI data (1 byte) xxx MISO data (1 byte)

Figure 5: SPI convention

17.6.1.1. SB, SWOC, SM, EX, HR, HS

All the commands follow the structure below. The reply from the MLX90395 is only the status byte. The example below is for a start of a burst mode with X and Y being measured.

0x16 0x00 xx Status Figure 6: SB command, XY

After the HS command, wait at least 15ms before sending the next command to allow the IC to update the NVRAM correctly.

17.6.1.2. RT

This command will (warm-)reset the IC. The status byte of the command following will indicate the reset event.

0xF0 xx Figure 7: RT command

17.6.1.3. RM

This command differs depending on the value for zyxt. In case it is different than 0, the data is returned in the order Status-T-X-Y-Z-CRC, where the components which are set to zero are skipped. In case zyxt is 0, the returned order is Status-CRC-X-Y-Z-T-V (none skipped, unmeasured data is set to 0). The below three examples show this.

0x40 0x00 0x00 0x00 0x00 0x00 0x00 xx Status CRC X [15:8] X [7:0] Y [15:8] Y [7:0]

0x00 0x00 0x00 0x00 0x00 0x00 Z [15:8] Z [7:0] T [15:8] T [7:0] V [15:8] V [7:0] Figure 8: RM command, XYZTV

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 27 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet 0x4F 0x00 0x00 0x00 0x00 0x00 0x00 xx Status T [15:8] T [7:0] X [15:8] X [7:0] Y [15:8]

0x00 0x00 0x00 0x00 Y [7:0] Z [15:8] Z [7:0] CRC Figure 9: RM command, XYZT 0x45 0x00 0x00 0x00 0x00 0x00 0x00 xx Status T [15:8] T [7:0] Y [15:8] Y [7:0] CRC Figure 10: RM command, YT

17.6.1.4. RR

Important in this command is that the register address to be read needs to be shifted left by two bits. To read register 0x12 for example, the MOSI byte becomes 0x48.

0x50 Register << 2 0x00 0x00 0x00 xx xx Status Data [15:8] Data [7:0] Figure 11: RR command

17.6.1.5. WR

Important in this command is that the register address to be read needs to be shifted left by two bits. To read register 0x12 for example, the MOSI byte becomes 0x48.

0x60 Data [15:8] Data [7:0] Register << 2 0x00 xx xx xx xx Status Figure 12: WR command

17.6.1.6. RV

In case RM with 0 as zyxt is done, V can be returned. To get the data faster without the X, Y, Z and T (all zero) also being clocked out, the RV command can be used.

0xC0 0x00 0x00 0x00 0x00 xx Status V [15:8] V [7:0] CRC Figure 13: RV command

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 28 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

17.6.2. SPI Timing Specification

All timings are referred to the levels found in Table 8.

Electrical Parameter Symbol SPI Clock Cycle SPI Clock Cycle CS Setup Time CS Hold Time SDI Input Setup Time SDI Input Hold Time SDO Valid Output Time SDO Output Hold Time SDO Output Disable Time t c (SPC) t c (SPC) t su (CS) t h (CS) t su (SI) t h (SI) t v (SO) t h (SO) t dis (SO)

Min. Max. Unit

100 ns

MHz ns ns ns ns ns ns ns 10 5 10 5 15

50 5

50 Table 19: General SPI Timing Specification CS t su (CS) t c (SPC) t h (CS)

SPC t su (SI)

SDI t h (SI)

MSB IN LSB IN t v (SO)

SDO t h (SO) t dis (SO)

MSB OUT LSB OUT Figure 14: SPI Timing Diagram

17.6.3. EMC filter (not re-programmable) - Not available in BAA version

An RC filter is enabled on the SPI communication input lines. The impact of this filter is that 1MHz is the maximum SPI clock frequency that the IC accepts. For other filter configurations, please contact Melexis.

Parameter Symbol Min. SCLK RC Filter Bandwidth CS RC Filter Bandwidth MOSI RC Filter Bandwidth BW 1MHz BW CS BW MOSI 2 3.6 4.75 Typ. Max. Unit

4 9.5 9.15 MHz MHz MHz Condition Table 20: SPI RC Filter Specifications

This feature is not available in the BAA version.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 29 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

17.7. I 2 C Communication

The I 2 C protocol is implemented such that the command is written to a specific register (0x80) in the RAM, and the status and measurement data are read back from this RAM. The commands themselves are the same as for SPI (section 17.5) except for the read measurement commands and the memory read/write commands. For memory read/write commands, register access is provided directly through the I 2 C protocol. Note that memory read/write commands are required to be word-wise, so always in multiples of 2 bytes. The I2C protocol uses the byte address instead of the word address. Because a word contains 2 bytes, the byte address is double that of the word address or register. Hence in the I 2 C, the corresponding command byte becomes the register shifted by 1 bit to the left.

Read measurement is the same as a memory read, except starting from the status register. MSbits are sent first.

The 7-bit I 2 C-address is determined by the connection to the A0 and A1 pins. The 5 MSBs are programmed by Melexis in the MLX90395. Please contact Melexis in case other addressing is required.

Table 14 · 5 columns × 16 rows · p.39–39 · CSV
GainSel[3]GainSel[2:0]Gain A1Gain A2Total Gain (A1 x A2)
0010.20.2
0110.250.25
0211/31/3
0310.40.4
0410.50.5
0510.60.6
0610.750.75
07111
100.50.20.1
110.50.250.125
120.51/31/6
130.50.40.2
140.50.50.25
150.50.60.3
160.50.750.375
170.510.5

2 0 if A1 shorted to ground 1 if A1 shorted to supply 1 0 if A0 shorted to ground 1 if A0 shorted to supply R/W bit

0 0 for I 2 C write 1 for I 2 C read

17.7.1. Command Implementation

For the examples given, the below convention is used.

AS I2C Start SR I2C Repeated Start P I2C Stop A Acknowledge from IC (1 bit) NACK (Not) Acknowledge from Master (1 bit) xxx I2C Addressing (1 byte) xxx Data from Master to IC (1 byte) xxx Data from IC to Master (1 byte)

Figure 15: I 2 C Convention

17.7.1.1. SB, SWOC, SM, EX, HR, HS

All the commands follow the structure below. The reply from the MLX90395 is only the status byte. The example below is for a start of a burst mode with X and Y being measured.

S I2C addr [W] A 0x80 A 0x16 A SR I2C addr [R] A Status NACK P Figure 16: SB command, XY

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 30 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet After the HS command, wait at least 15ms before sending the next command to allow the IC to update the NVRAM correctly.

17.7.1.2. RT

This command will (warm-)reset the IC. The status byte of the command following will indicate the reset event.

I2C addr [W] S 0x80 A 0xF0 A A P Figure 17: RT command

17.7.1.3. RM

All values which are not measured are 0x00.

Table 12 · 10 columns × 2 rows · p.31–31 · CSV
SI2C addr [W]A0x80ASR I2C addr [R]A Status A CRCA
X [15:8]AX [7:0]AY [15:8] AY [7:0] A Z [15:8]AZ [7:0]A
T [15:8]AT [7:0]AV [15:8] AV [7:0] NACK P

A Z [15:8] Z [7:0] A P Figure 18: RM command

17.7.1.4. RR

Important in this command is that the register address to be read needs to be shifted left by one bit. To read register 0x12 for example, the SDA byte becomes 0x24.

S A I2C addr [W] Register << 1 A SR I2C addr [R] A Data [15:8] A Data [7:0] NACK P Figure 19: RR command

17.7.1.5. WR

Important in this command is that the register address to be written needs to be shifted left by one bit. To write register 0x12 for example, the SDA byte becomes 0x24.

S I2C addr [W] A Register << 1 A Data [15:8] A Data [7:0] A SR I2C addr [R] A Status NACK P Figure 20: WR command

17.7.1.6. RV

In case RR with 0 as zyxt is done, only V will be returned. To get the data faster without the X, Y, Z and T (all zero) also being clocked out, the RV command can be used.

S I2C addr [W] A 0x8A A SR I2C addr [R] A V [15:8] A V [7:0] NACK P Figure 21: RV command

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 31 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

17.7.2. I 2 C Timing Specification

All timings are referred to the levels found in Table 8.

Electrical Parameter Symbol

SCL Clock Frequency SCL Clock Low Time SCL Clock High Time SDA Setup Time SDA Data Hold Time f (SCL) t w (SCLL) t w (SCLH) t su (SDA) t h (SDA) t r (SDA) t r (SCL) t r (SDA) t r (SCL) t h (ST) t su (SR) t su (SP)

SDA and SCL Rise Time

SDA and SCL Fall Time START Condition Hold Time REPEATED START Condition Setup Time STOP Condition Setup Time Bus Free Time Between STOP and START Condition I 2 C Standard Mode I 2 C Fast Mode Plus Min. Min.

4.7 4 250 t w (SP:ST)

Max.

100 Max. 1000 Unit 0.45 kHz µs µs ns µs 20+0.1*C b(20) 120 ns

20+0.1*C b(20) 120 ns 3.45 0.5 0.26 50 0 1000

300 4 4.7 4 0.26 0.26 0.26 µs µs µs 4.7 0.5 µs

Table 21: General I 2 C Timing Specification REPEATED START t r (SDA) t f (SDA) START t su (SR) SDA

STOP t su (SDA)

START t h (SDA)

t su (SP) t w (SP:ST)

SCL t h (ST) t w (SCLL) t w (SCLH) t r (SCL) t f (SCL)

Figure 22: I 2 C Timing Diagram 20 Where C

b is the total bus capacitance (in pF).

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 32 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18. Memory Structure and End-User Programmable Items

18.1. NVRAM Endurance

The NVRAM is qualified to guarantee an endurance of minimum 1000 write cycles (store operations) at 125°C (for engineering/calibration purpose).

If operated above 90°C with less than 3.0V supply, the performance of the NVRAM is not guaranteed.

18.2. Memory Structure

The MLX90395 has 1kbit of non-volatile memory, and the same amount of volatile memory. Each memory consists out of 64 addresses containing 16-bit words. The non-volatile memory has automatic 2-bit error detection and 1-bit error correction capabilities per address. The handling of such corrections & detections is explained in Section 17.3.

The memory is split in 2 areas:

  Customer area [address 0x00 to 0x1F] Melexis area [address 0x20 to 0x3F]

The RR and WR commands impact the volatile memory only, there no direct access possible to the nonvolatile memory. The customer area of the volatile memory is fully accessible (read and write) to the customer; the Melexis area is write-protected and contains the 48-bit unique identification. Only modifications in the customer area are allowed with the WR command. The adjustments in the customer area can be stored in the permanent non-volatile memory with the store command HS, which copies the entire volatile memory to the non-volatile memory. With the HR command the non-volatile memory content can be recalled to the volatile memory, which can restore any modifications due to prior WR commands. The HR step is performed automatically at start-up of the IC, either through cold reset or warm reset with the RT command.

Volatile Memory Non-Volatile

Memory Customer Area Customer Area HR HS Melexis Area RR Melexis Area WR Figure 23: MLX90395 Memory Structure

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 33 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.3. Register Map

The table below gives an overview of the customer area in the MLX90395’s NVRAM.

In the register map, the 16-bit words are split into 2 bytes for the sake of readability. The general format is shown below in the yellow table. (21)

Register

0x..

Register

0x00 0x01 0x02 0x03 0x04 0x05 Bit 7 Bit 7 Bit 15 (MSB)

Bit 6 Bit 6 Bit 14 Bit 5 Bit 5 Bit 13 Bit 7 Bit 6 Bit 5

GainSel[3:0] Lock_HS Lock_WR Reserved (21)

BurstSel[1:0] TrigIntSel CommMode[1:0] ResY[0] ResX[1:0] OSR3 0x0 VMeasEn - - - - - - - - - - - - - - - 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 21 Bit 4 Bit 4 Bit 12 Bit 3 Bit 3 Bit 11 Bit 4 Bit 3 Bit 2 Bit 2 Bit 10 Bit 1 Bit 1 Bit 9 Bit 0 Bit 0 (LSB) Bit 8 Bit 2 Bit 1 Bit 0

HallConf[3:0] TrimDelSDAOut[1:0] TrimDelSDAIn[1:0] ZSeries

BurstDataRate[5:0] WOCDiff ExtTrig TCmpEn BurstSel[3:2]

DigFilt[2:0] OSR[1:0] OSR2[1:0] ResZ[1:0] ResY[1] TRef[7:0] - - (21) WOCStart TRef[9:8] SensTCH[7:0] - - - - SensTCH[8] SensTCL[7:0] - - - - SensTCL[8] OffsetX[7:0] OffsetX[15:8] OffsetY[7:0] OffsetY[15:8] OffsetZ[7:0] OffsetZ[15:8] OffsetDriftXL[7:0] OffsetDriftXH[7:0] OffsetDriftYL[7:0] OffsetDriftYH[7:0] OffsetDriftZL[7:0] OffsetDriftZH[7:0]

SensXY[7:0] - - - SensXY[9:8]

SensZ[7:0] - - - SensZ[9:8] WocXYThreshold[7:0] WocXYThreshold[15:8] Cells marked with “-“ can be overwritten. Reserved cells are not to be changed.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 34 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet Register Bit 7 Bit 6 Bit 5

0x0F 0x10 0x11 0x12 - 0x1F Bit 4 Bit 3 WocZThreshold[7:0] WocZThreshold[15:8] WocTThreshold[7:0] WocTThreshold[15:8] WocVThreshold[7:0] WocVThreshold[15:8]

Free Free Bit 2 Bit 1 Bit 0 For the RM command in I 2 C, the register can be accessed byte-wise, with automatic increment. No left shift (as compared to the RR and RM commands in I 2 C) is needed to access these registers.

Register I 2 C

0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8A 0x8B Bit 7 Bit 6 Bit 5 Bit 4 Bit 3

Command/Status

CRC-8-CCITT

X[15:8] X[7:0] Y[15:8] Y[7:0] Z[15:8] Z[7:0] T[15:8] T[7:0] V[15:8] V[7:0] Bit 2 Bit 1 Bit 0 Melexis stores a unique ID in every single IC. This ID is stored in the following registers (Read-Only):

Register Bit 7

0x26 0x27 0x28

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Bit 6 Bit 5 Bit 4 Bit 3

ID1[7:0] ID1[15:8] ID2[7:0] ID2[15:8] ID3[7:0] ID3[15:8] Bit 2 Bit 1 Bit 0 Page 35 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.3.1. Default NVRAM content

Changing the default settings will impact the values in Table 12 and Table 13.

Table 13 · 3 columns × 30 rows · p.36–36 · CSV
ParameterMedium Field VersionHigh Field Version
HallConf00
GainSel98
ZSeries00
TrimSelSDAIn11
TrimSelSDAOut00
Reserved0 (keep zero)(22)0 (keep zero)(22)
Lock_WR (not available in BAA)00
Lock_HS (not available in BAA)00
BurstDataRate00
BurstSel15 (0xF)15 (0xF)
TCmpEn11
ExtTrig00
WOCDiff00
CommMode00
TrigIntSel11
OSR00
DigFilt00
ResX11
ResY11
ResZ11
OSR200
VMeasEn00
OSR300
TRefTrimmed to 35°CTrimmed to 35°C
WOCStart (check paragraph 18.8)00
SensTCH, SensTCLTrimmed to 0ppm/°CTrimmed to 0ppm/°C
OffsetX, OffsetY, OffsetZTrimmed to 0LSBTrimmed to 0LSB
OffsetDriftXL, OffsetDriftXH, OffsetDriftYL, OffsetDriftYH, OffsetDriftZL, OffsetDriftZHTrimmed to 0LSB/°CTrimmed to 0LSB/°C
SensXY, SensZTrimmed to 400LSB16 /mTTrimmed to 140LSB16 /mT
WocXYThreshold, WocZThreshold, WocTThreshold, WocVThreshold00

Table 22: Default NVRAM content 22 If enabled, the magnetic measurements will be corrupted and current consumption is increased.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 36 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.4. Measurement Filters

The MLX90395 has several options to filter the measurements. The first type is available for all components: the oversampling rate OSR) of the decimation filter at the ADC. OSR is for magnetic measurements, OSR2 for the temperature measurement and OSR3 for the voltage measurement. The second type is an averaging filter (DigFilt, averaging over 2 𝐷𝑖𝑔𝐹𝑖𝑙𝑡 measurements) which is only present on the magnetic measurements. Changing these parameters directly impacts the typical conversion time per measurement. This according the formulas below:

𝑇𝑚 𝑎𝑔 [𝜇 𝑠] = 67 + 32 ∙ 2𝑂 𝑆𝑅 ∙ 2 + 2𝐷 𝑖𝑔𝐹𝑖𝑙𝑡 𝑇 𝑡 𝑒𝑚𝑝 [𝜇𝑠 ] = 6 7 + 96 ∙2𝑂 𝑆𝑅2 𝑇𝑉 [𝜇 𝑠] = 6 7 + 9 6 ∙2 𝑂 𝑆𝑅3

oversampling rate are set to 0:

𝑇3 −𝑎𝑥𝑖𝑠 = 3 ∙ [67 + 32 ∙ 20 ∙ (2 + 20 ) ] + 11 = 500 𝜇𝑠 𝑇2 −𝑎𝑥𝑖𝑠 + 𝑡𝑒𝑚𝑝𝑒𝑟𝑎𝑡𝑢𝑟𝑒 = 6 7 + 96 ∙2 0 + 2 ∙ [ 67 + 3 2 ∙ 20 ∙( 2 + 20) ] + 11 = 500 𝜇𝑠 Note that with O SR=0, the three LSBits o f the 19-bit A DC a re 0. T his is because t hey c annot b e determined

accurately in the short integration time.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 37 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.5. Communication and I 2 C Filters

The communication mode in which the MLX90395 needs to respond to is selectable by CommMode.

CommMode Accepted Protocol MS pin

0b00 or 0b01 I 2 C and SPI (first come, first serve) 0b10 0b11 SPI only I 2 C only Keep high for I 2 C Use as Chip Select (CS) for SPI CS pin for SPI Keep high for 200 µs after POR, then don’t care

Table 23: CommMode

Due to NXP’s specification on I 2 C, where is stated that the delay between SDA and SCL toggling can be 0µs, there is a delay implemented on the SDA line (when data from µController to IC) to ensure that the IC can properly decode the commands. This parameter is called TrimDelSDAIn, and can be programmed as follows:

    0b00: 70ns 0b01: 110ns (recommended) 0b10: 140ns 0b11: 160ns

TrimDelSDAOut controls the delay (when data from IC to µController) between SCL switching from high to low and SDA toggling to the new data bit value. This is indicated on the below picture. The delay is also present on the acknowledge of the IC.

SCL SDA data (bit) out data (bit) out Figure 24: TrimDelSDAOut Definition

The delay is programmed follows:

    0b00: 80ns (recommended) 0b01: 110ns 0b10: 130ns 0b11: 150ns

Note: These delays are only active after a reset, so a memory store command is needed.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 38 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.6. Sensitivity

The sensitivity in LSB 16 out vs. magnetic field applied can be adjusted in the MLX90395 with several parameters. GainSel changes the gain stages before the input of the ADC. Table 24 provides the relative gain/attenuation for these 2 stages.

Table 11 · 8 columns × 2 rows · p.30–30 · CSV
7-bit I2 C addressR/W bit
76543210
000110 if A1 shorted to ground 1 if A1 shorted to supply0 if A0 shorted to ground 1 if A0 shorted to supply0 for I2 C write 1 for I2 C read

SensXY and SensZ adjust the sensitivity after the ADC, so fully digital. SensXY and SensZ are always positive.

With ResX, ResY, and ResZ, 16 bits of the 19-bit ADC value can be selected. An increase of this parameter leads to a change in sensitivity by factor 2. Note that for resolution 2 and 3, the saturation of the analog chain becomes visible. The used span is 17.2 bits, of the 19 available bits.

For small adjustments, it is recommended to use SensXY, SensZ and the ResX, ResY, ReZ parameters. It is recommended to keep GainSel constant as an optimization is done to be at the optimal range at the input of the ADC. The default for resolution is 1, and for GainSel it is 9 for the medium field version and 8 for the high field version.

The relation on the measurements for SensXY and SensZ is given by the formula below:

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 𝑀𝐴𝐺 = 𝑀𝐴𝐺 × 1 + 𝑆𝑒𝑛𝑠𝑋𝑌 𝑜𝑟 𝑆𝑒𝑛𝑠𝑍 2 9

Page 39 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet For ResX, ResY, and ResZ, the below figure shows the implementation:

18 17 16 15 14 19-bit output (after corrections are applied) 13 12 11 10 9 8 7 6 5

Selected bits for resolution 0 Selected bits for resolution 1 Selected bits for resolution 2 Selected bits for resolution 3 4 3 2 1 0

18.7. Offset

The offset on the magnetic output of the MLX90395 can be adjusted. This is done by parameters OffsetX, OffsetY, and OffsetZ. Important to note is that the parameter is implemented as unsigned 16-bit code. This means that 0x8000 (default value) corresponds to no offset adjustment. Also important is that the offset is adjusted right on the 19-bit ADC value, so before the sensitivity adjustments, thermal compensations and resolution selection.

𝑀𝐴𝐺 = 𝑀𝐴𝐺 − 4 ∙ 𝑂𝐹𝐹𝑆𝐸𝑇𝑋 /𝑌/𝑍 18.8.18.8. Burst and WOC Parameters Burst and WOC Parameters

In burst mode and in WOC mode, the rate of measurements can be selected, as well as the components to be measured. The rate is adjusted by BurstDataRate, in steps of 20ms (min = 0ms, max is 1260ms). This time is measured between the finish of the previous set of measurements and the start of the next set of measurements.

BurstSel selects the components to be measured if this is not given by the command initially. The bit order is Z (MSbit), Y, X, T (LSbit).

Selection between differential and absolute WOC mode is done with WOCDiff. Set to 1 for differential mode.

Finally, the thresholds for each of the components (X and Y, Z, T, and V) can be set by WocXYThreshold, WocZThreshold, WocTThreshold, and WocVThreshold.

WOCStart can be set to force the IC in WOC mode after power-on. Note that this mode, if WOCStart is set, can never be ended. No commands will be accepted, except for the RM command. But note that the data itself is not synchronized (same for CRC). This mode is intended for use only with the INT pin, not for communication.

18.9. Thermal Drift

The user can choose to enable the temperature compensation. This is done with the TCmpEn parameter. Set it to enable the on-chip thermal offset drift and thermal sensitivity drift compensation.

Thermal sensitivity drift and thermal offset drift are trimmed by Melexis in order to minimize the error. In case the user wishes to change the parameters, this is possible but not recommended. For information, the formulas below show the usage of the parameters SensTCH, SensTCL (both always positive) and OffsetDrift* (2’s complement format).

Parameters denoted with L are for used for low temperatures, below TRef, parameters with H are for high temperatures, above TRef. Tref can only be set positive, and TRef[9:0] maps to T[13:4] of the output

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 40 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet temperature value. With a slope of 50LSB/°C, this corresponds to a resolution of 0.32°C (=0.02<<4). All calculations are done on the 19-bit data.

First offset corrections: 𝑀𝐴𝐺 = 𝑀𝐴𝐺 − 4 ∙ 𝑂𝑓𝑓𝑠𝑒𝑡 − 𝑂𝑓𝑓𝑠𝑒𝑡𝐷𝑟𝑖𝑓𝑡×𝑇 𝑂 𝑈𝑇24− 𝑇𝑅𝑒𝑓 26 Then sensitivity corrections: 𝑀𝐴𝐺 = 𝑀𝐴𝐺 × 1 + 𝑆𝑒𝑛𝑠 29 × 1 + 𝑆 𝑒𝑛𝑠𝑇𝐶24 ×𝑇 𝑂 𝑈𝑇24− 𝑇𝑅𝑒𝑓 2 1 2 In case temperature compensation is disabled, the red terms are not executed.

18.10. External Trigger

The MLX90395 provides an option to trigger single measurements by means of the TRG pin. To enable this pin, it needs to be configured accordingly.

TrigIntSel is used to change the function of the INT/TRG pin. In case it is set, the pin is an output and used as INT pin. In case it is 0, the pin becomes an input and can see the rising edge event.

ExtTrig is set to enable the single measurement by rising edge. Note that this is only active after an SM command has been executed, or a HS followed by reset.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 41 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.11. NVRAM Lock (SPI mode) - Not available in BAA version

The NVRAM can be locked to avoid accidental rewriting of the settings in the application. It is basically disabling the writing commands. Two bits are available:

  Lock_HS: blocks the SPI memory store command (HS). Lock_WR: blocks the SPI write register command (WR).

As it applies to SPI mode, it is also recommended to set CommMode to “SPI only”.

This option is not available in the BAA version. For detailed information, please contact Melexis.

18.11.1. Temporary NVRAM Lock

The sequence below has to be executed to initialise the IC to be used with the temporary NVRAM lock feature:

1. Write Lock_HS to ‘1’ and keep Lock_WR to ‘0’. 2. Execute a memory store command (HS). 3. Power cycle. (23)

In application, the sequence below has to be executed in order to configure and protect the volatile memory of the IC:

1. Write configuration needed. 2. Write Lock_WR to ‘1’ (Lock_HS kept to ‘1’). 3. Start measurement. From this point on, the memory is protected.

In application, the sequence below has to be executed in order to enable reconfiguration of the volatile memory of the IC:

1. Execute a memory recall command (HR). 2. Start measurement. From this point on, the memory is unprotected.

Note: also a power cycle or reset (RT) enables reconfiguration of the volatile memory of the IC, hence reducing the level of protection.

23 Recommended action is the power cycle, but a reset command (RT), or a memory recall (HR) + start measurement (SM) will also work. Mind to respect the T HS_WAIT .

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 42 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

18.11.2. Permanent NVRAM Lock

Although the temporary NVRAM lock is offering a good protection, it is strongly recommended to use the permanent NVRAM lock, to avoid accidental NVRAM corruption in harsh environments. This is not suitable for applications requiring dynamic reconfiguration of the volatile memory. The sequence is shown below:

1. Write both Lock_HS and Lock_WR to ‘1’. 2. Execute a memory store command (HS). 3. Power cycle. (23) 18.12. Other Controls

VMeasEN enables a voltage measurement. Here the supply voltage is measured. In case it is set to 0x0, even though the command might ask for a voltage measurement, the result will be 0. Also in burst mode, when the zyxt in the command is empty, this parameter is used to determine doing the voltage measurement or not.

HallConf and ZSeries are not to be touched. It is recommended to keep HallConf to 0x0 and ZSeries to 0x0 for optimal performance. Note that in both cases of ZSeries, the Z-field can be measured.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 43 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

19. Recommended Application Diagrams

In case of long cable length or wire harness, it is recommended to add a series resistor on the communication lines (including INT and INT/TRIG) close to the IC to reduce coupling. The value has to be evaluated carefully to keep EMC emissions to a minimum.

19.1. Wiring with the MLX90395 in SOIC-8/TSSOP-16 Package 19.1.1. SPI Mode

A0 V DD V DD

SCLK

Table 15 · 4 columns × 1 rows · p.44–44 · CSV
MLX90395MOSIC3
SOIC-8MISOC4SPI
TSSOP-16, 1 dieMSC5MCU
SPI modeV SSC6

V SS C 2 C 1 Short for 3-wire SPI R 1

C 3

C 4

C 5 SPI

MCU

C 6 INT/TRIG

C 7 Figure 26: Application diagram SOIC-8 or TSSOP-16 (only one die represented) in SPI mode

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 44 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet Component

C 1 C 2 (24) C 3 (24, 25) C 3 (24, 25) C 3 (24, 25) C 4 (24) C 5 (24) C 6 (24) C 7 (24) R 1 Standard routing Min. 100nF Typ.

47pF EMC robust routing Max. 1μF Min. 100nF

18pF 110pF 220pF Typ.

100pF Max. 1μF

12pF 82pF 160pF 47pF 47pF 47pF 220pF 100pF 100Ω Remark

fS CLK = 10MHz fS CLK = 2MHz fS CLK = 1MHz

C 3 for improved immunity

For improved filtering Table 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA version Component

C 1 C 2 (24) C 3 (24) C 4 (24) C 5 (24) C 6 (24) C 7 (24) R 1 Standard routing Min. 100nF Typ.

Table 16 · 8 columns × 21 rows · p.45–45 · CSV
ComponentStandard routingEMC robust routingRemark
ComponentMin.Typ.Max.Min.Typ.Max.Remark
C1100nF1μF100nF1μF
C2 (24)100pF
C3 (24, 25)18pF12pFfSCLK = 10MHz
C3 (24, 25)110pF82pFfSCLK = 2MHz
C3 (24, 25)47pF220pF47pF160pFfSCLK = 1MHz
C4 (24)47pF
C5 (24)47pF
C6 (24)220pF> C3 for improved immunity
C7 (24)100pF
R1100ΩFor improved filtering
Table 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA versionTable 25: Recommended values for SOIC-8 or TSSOP-16 (one die) in SPI mode, BAA version
ComponentStandard routingStandard routingStandard routingEMC robust routingEMC robust routingEMC robust routingRemark
ComponentMin.Typ.Max.Min.Typ.Max.Remark
C1100nF1μF100nF1μF
C2 (24)100pF
C3 (24)--
C4 (24)-
C5 (24)47pF
C6 (24)-> C3 for improved immunity
C7 (24)100pF
R1--

25 Place at the pin, keep connection below 1mm and use ground via. MCU assumed to have output impedance of 300Ω. Values calculated for rapid flanks, f co = 1/(2πRC), and are strongly dependent on driver strength and cable length.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 45 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

19.1.2. I 2 C Mode

Short to VD D or VS S t I2 C address (A1=0)

A0 V DD V DD

SCL

MLX90395 SOIC-8 TSSOP-16, 1 die I 2 C mode

C 1 R 1 SDA

MISO

MS R 2 I 2 C

MCU

V SS

INT/TRIG Figure 27: Application diagram SOIC-8 or TSSOP-16 (only one die represented) in I 2 C mode Component Min. C 1 R 1 R 2 100nF Typ.

10kΩ 10kΩ Max. 1μF Remark On MCU side, if not internal On MCU side, if not internal Table 27: Recommended values for SOIC-8 or TSSOP-16 (one die) in I 2 C mode

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 46 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

19.2. Wiring with the MLX90395 in QFN-16 Package

The bottom pad of the QFN package is not connected internally. Grounding is advised to increase robustness against mechanical shocks and improve EMC performance.

19.2.1. SPI Mode

A1 A0 V DD V DD

SCLK

MLX90395 QFN

MOSI

MISO

MS

SPI mode V SS

C 2 C 1 Short for 3-wire SPI R 1

C 3

C 4

C 5 SPI

MCU

C 6 INT/TRIG

INT C 7

C 8 Figure 28: Application diagram QFN-16 in SPI mode

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 47 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet Component

C 1 C 2 (26) C 3 (26, 27) C 3 (26, 27) C 3 (26, 27) C 4 (26) C 5 (26) C 6 (26) C 7 (26) C 8 (26) R 1 Standard routing Min. 100nF Typ.

47pF EMC robust routing Max. 1μF Min. 100nF

18pF 110pF 220pF Typ.

100pF Max. 1μF

12pF 82pF 160pF 47pF 47pF 47pF 220pF 100pF 100pF 100Ω Remark

fS CLK = 10MHz fS CLK = 2MHz fS CLK = 1MHz

C 3 for improved immunity For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA version Component

C 1 C 2 (26) C 3 (26) C 4 (26) C 5 (26) C 6 (26) C 7 (26) C 8 (26) R 1 Standard routing Min. 100nF Typ.

Table 18 · 8 columns × 22 rows · p.48–48 · CSV
ComponentStandard routingEMC robust routingRemark
ComponentMin.Typ.Max.Min.Typ.Max.Remark
C1100nF1μF100nF1μF
C2 (26)100pF
C3 (26, 27)18pF12pFfSCLK = 10MHz
C3 (26, 27)110pF82pFfSCLK = 2MHz
C3 (26, 27)47pF220pF47pF160pFfSCLK = 1MHz
C4 (26)47pF
C5 (26)47pF
C6 (26)220pF> C3 for improved immunity
C7 (26)100pF
C8 (26)100pF
R1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA versionR1 100Ω For improved filtering Table 28: Recommended values for QFN-16 in SPI mode, BAA version
ComponentStandard routingStandard routingStandard routingEMC robust routingEMC robust routingEMC robust routingRemark
ComponentMin.Typ.Max.Min.Typ.Max.Remark
C1100nF1μF100nF1μF
C2 (26)100pF
C3 (26)--
C4 (26)-
C5 (26)47pF
C6 (26)-> C3 for improved immunity
C7 (26)100pF
C8 (26)100pF
R1--

27 Place at the pin, keep connection below 1mm and use ground via. MCU assumed to have output impedance of 300Ω. Values calculated for rapid flanks, f co = 1/(2πRC), and are strongly dependent on driver strength and cable length.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 48 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

19.2.2. I 2 C Mode

V DD A1 A0 Short to V DD or V SS to select I 2 C address V DD

C 1 SCL

MLX90395 QFN

R 1

R 2 SDA MISO MCU MS

I 2 C mode

I 2 C V SS

INT/TRIG

INT Figure 29: Application diagram QFN-16 in I 2 C mode Component Min. C 1 R 1 R 2 100nF Typ.

Table 17 · 5 columns × 2 rows · p.46–46 · CSV
ComponentMin.Typ.Max.Remark
C1100nF1μF
R110kΩOn MCU side, if not internal

Table 30: Recommended values for QFN-16 in I 2 C mode

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 49 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet 20. 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 standards in place in Semiconductor industry. For further details about test method references and for compliance verification of selected soldering method for product integration, Melexis recommends reviewing on our web site the General Guidelines soldering recommendation (http://www.melexis.com/en/quality-environment/soldering) For all soldering technologies deviating from the one mentioned in above document (regarding peak temperature, temperature gradient, temperature profile etc.), additional classification and qualification tests have to be agreed upon with Melexis. For package technology embedding trim and form post-delivery capability, Melexis recommends consulting the dedicated trim&form recommendation application note: lead trimming and forming recommendations (http://www.melexis.com/en/documents/documentation/application-notes/lead-trimming-and-forming- recommendations). 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/en/quality-environment. 21. ESD Precautions Electronic semiconductor products are sensitive to Electro Static Discharge (ESD). Always observe Electro Static Discharge control procedures whenever handling semiconductor products.

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 50 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

22. Package Information

22.1. SOIC-8 Package 22.1.1. SOIC-8 - Package Dimensions

1.27 TYP

NOTES:

3.81 5.80 3.99** 6.20 4.80 4.98* All dimensions are in millimeters (angles in degrees). * Dimension does not include mold flash, protrusions or gate burrs (shall not exceed 0.15 per side). ** Dimension does not include interleads flash or protrusion (shall not exceed 0.25 per side). *** Dimension does not include dambar protrusion. Allowable dambar protrusion shall be 0.08 mm total in excess of the dimension at maximum material condition. Dambar cannot be located on the lower radius of the foot.

1.37 1.57 1.52 1.72 0.36 0.46*** 0.19 0.25 0.100 0.250 0.41 1.27 0° 8° Figure 30: SOIC-8 Package Dimensions

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 51 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

22.1.2. SOIC-8 - Pinout and Marking

8 Part Number MLX90395 (3 digits) Die Version (2 digits) A0 V SS V DD MC/CS Marking :

Top 5 Bx

F 12345 Xy Bottom I NT /T RG MISO SDA/MOSI 4 SCL/SCLK Lot number (5 digits) Fab Identifier (1 letter) 395Bx F12345

Xy-Z 1 395 Z YY Application Code (1 digit)

“M” - Medium-Field “H” - High-Field Split lot number

WW

Week Date code (2 digits) Year Date code (2 digits)

Figure 31: SOIC-8 Pinout and Marking

22.1.3. SOIC-8 - Sensitive Spot Location

Z8 7 6 5

X1.955 ± 0.2

0.46 +/- 0.06

1.16 +/- 0.155 1 2 Die rotation tolerances (tilt die) in X, Y, Z: ±2°, with reference to leadframe

Dimensions in “mm” Y 3 4 2.11 ±0.15 Figure 32: SOIC-8 Sensitive Spot Location

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 52 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

22.2. TSSOP-16 Package 22.2.1. TSSOP-16 - Package Dimensions

0.20 ± 0.04 12O REF 0.65 ± 0.04

1.0 DIA

REF 0.09 MIN

6.4 ± 0.2 4.30 4.50**

0.09 MIN

1.0 REF 12 O REF 1.0 REF 0.50 0.75 0 O 8 O 1.0 ± 0.2 0.85 0.95 4.90 5.10* 1.1 MAX 0.19 0.30*** 0.09 0.20 0.05 0.15 NOTES:

All dimensions are in millimeters (angles in degrees). * Dimension does not include mold flash, protrusions or gate burrs (shall not exceed 0.15 per side). ** Dimension does not include interleads flash or protrusion (shall not exceed 0.25 per side). *** Dimension does not include dambar protrusion. Allowable dambar protrusion shall be 0.08 mm total in excess of the dimension at maximum material condition. Dambar cannot be located on the lower radius of the foot. REF: Reference dimensions as stated in packaging supplier POD, based on JEDEC.

Figure 33: TSSOP-16 Package Dimensions

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 53 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

22.2.2. TSSOP-16 - Pinout and Marking

Marking :

16 1 SCL/SCLK 1 SDA/MOSI 1 V DD 1

MISO 1 V SS 1 Top 395 Bx

F 12345 I NT /T RG 2 V SS 2 MISO 2 V DD 2 8 9 395Bx F12345 Xy-Z A0 2 Lot number (5 digits) Fab Identifier (1 letter) A0 1 I NT /T RG1 MC/CS 2 Part Number MLX90395 (3 digits) Die Version (2 digits) MS/CS 1 Xy Z SDA/MOSI 2 Application Code (1 digit)

“M” - Medium-Field “H” - High-Field SCL/SCLK 2 Split lot number

Bottom YY WW

Week Date code (2 digits) Year Date code (2 digits)

Figure 34: TSSOP-16 Pinout and Marking

22.2.3. TSSOP-16 - Sensitive Spot Location

Y 2 Z 1 , Z 2 16 9 Die 1 Die 2 X 1 X 2 0.30 +/- 0.06

0.30 +/- 0.06 1.95 0.70 ± 0.11

2.45 1 8 1.17 1.37

Y 1

3.35 3.65 Die rotation tolerances (tilt die) in X, Y, Z: ±2°, with reference to leadframe

Dimensions in “mm” Figure 35: TSSOP-16 Sensitive Spot Location

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 54 of 57

MLX90395 Triaxis® Magnetometer Node

Datasheet

22.3. QFN-16 Package 22.3.1. QFN-16 - Package Dimensions and Sensitive Spot Location

0.42 ± 0.10 Die rotation tolerances (tilt die) in X, Y, Z: ±2°, with reference to leadframe 0.80 1.00 0.20 REF Dimensions in “mm” 0.00-0.05 0.50 0.18 0.30 1.50±0.20

1 1.50 ±0.20 2 3 16 1.55 1.80 2.90 3.10 X Y Z 0.20 1.55 1.80 2.90 3.10 0.30-0.50 Figure 36: QFN-16 Package Dimensions and Sensitive Spot Location

22.3.2. QFN-16 - Pinout and Marking (BAA version)

A0 A1 Marking :

12 11 Part Number MLX90395 (3 digits)

Die Version (1 digit) B 395 V SS 13

395B 2345 HYWW

1 2 3

INT MS/CS SCL/SCLK V DD 15 2345 7 I NT /T RG 6 MISO 5 SDA/MOSI H YWW Lot number: Last 4 digits Assembly Year (Y) and week (WW) Application Code (1 digit)

“M” - Medium-Field “H” - High-Field Figure 37: QFN-16 Pinout and Marking (BAA version)

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395

Page 55 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

22.3.3. QFN-16 - Pinout and Marking (BBA version)

A0 A1 Marking :

12 11 Part Number MLX90395 (2 digits)

Die Version (2 digit) 95 V SS 13

95BB 2345 ZYWW

1 2 3

I

NT MS/CS SCL/SCLK

V DD 15 Lot number: Last 4 digits 2345 7 I NT /T RG

6 MISO

BB Z

5 SDA/MOSI

YWW

Assembly Year (Y) and week (WW) Application Code (1 digit)

“M” - Medium-Field “H” - High-Field

Figure 38: QFN-16 Pinout and Marking (BBA version)

22.4. Package Thermal Performances

The table below describes the thermal behaviour of available packages following JEDEC EIA/JESD 51.X standard. Package Junction to Case - θjc SOIC-8 TSSOP-16 QFN-16 38.8 K/W 27.6 K/W 21 K/W Junction to Ambient - θja (JEDEC 1s2p board) 112 K/W 99.1 K/W 185 K/W Junction to Ambient - θja (JEDEC 1s0p board) 153 K/W 137 K/W 213 K/W Table 31: Package Thermal Performance

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 56 of 57

MLX90395 Triaxis® Magnetometer Node Datasheet

23. Contact

For the latest version of this document, go to our website at http://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: [email protected] Americas Telephone: +1 603 223 2362 Email: [email protected] Asia Email: [email protected]

24. Disclaimer

The content of this document is believed to be correct and accurate. However, the content of this document is furnished "as is" for informational use only and no representation, nor warranty is provided by Melexis about its accuracy, nor about the results of its implementation. Melexis assumes no responsibility or liability for any errors or inaccuracies that may appear in this document. Customer will follow the practices contained in this document under its sole responsibility. This documentation is in fact provided without warranty, term, or condition of any kind, either implied or expressed, including but not limited to warranties of merchantability, satisfactory quality, non-infringement, and fitness for purpose. Melexis, its employees and agents and its affiliates' and their employees and agents will not be responsible for any loss, however arising, from the use of, or reliance on this document. Notwithstanding the foregoing, contractual obligations expressly undertaken in writing by Melexis prevail over this disclaimer.

This document is subject to change without notice, and should not be construed as a commitment by Melexis. Therefore, before placing orders or prior to designing the product into a system, users or any third party should obtain the latest version of the relevant information. Users or any third party must determine the suitability of the product described in this document for its application, including the level of reliability required and determine whether it is fit for a particular purpose.

This document as well as the product here described may be subject to export control regulations. Be aware that export might require a prior authorization from competent authorities. The product is 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 life-sustaining equipment or avionics application are specifically excluded by Melexis. The product may not be used for the following applications subject to export control regulations: the development, production, processing, operation, maintenance, storage, recognition or proliferation of: 1. chemical, biological or nuclear weapons, or for the development, production, maintenance or 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.

No license nor any other right or interest is granted to any of Melexis' or third party's intellectual property rights.

If this document is marked “restricted” or with similar words, or if in any case the content of this document is to be reasonably understood as being confidential, the recipient of this document shall not communicate, nor disclose to any third party, any part of the document without Melexis’ express written consent. The recipient shall take all necessary measures to apply and preserve the confidential character of the document. In particular, the recipient shall (i) hold document in confidence with at least the same degree of care by which it maintains the confidentiality of its own proprietary and confidential information, but no less than reasonable care; (ii) restrict the disclosure of the document solely to its employees for the purpose for which this document was received, on a strictly need to know basis and providing that such persons to whom the document is disclosed are bound by confidentiality terms substantially similar to those in this disclaimer; (iii) use the document only in connection with the purpose for which this document was received, and reproduce document only to the extent necessary for such purposes; (iv) not use the document for commercial purposes or to the detriment of Melexis or its customers. The confidentiality obligations set forth in this disclaimer will have indefinite duration and in any case they will be effective for no less than 10 years from the receipt of this document.

This disclaimer will be governed by and construed in accordance with Belgian law and any disputes relating to this disclaimer will be subject to the exclusive jurisdiction of the courts of Brussels, Belgium.

The invalidity or ineffectiveness of any of the provisions of this disclaimer does not affect the validity or effectiveness of the other provisions. The previous versions of this document are repealed.

Melexis © - No part of this document may be reproduced without the prior written consent of Melexis. (2020)

IATF 16949 and ISO 14001 Certified

REVISION 6.0 - SEPTEMBER 15, 2020 3901090395 Page 57 of 57