0% found this document useful (0 votes)
465 views25 pages

Ui 90365

This document provides instructions for using the PTC-04 software and the MLX90365 device module user interface to program the Melexis MLX90365 family of temperature sensors. It describes the software installation requirements, launching the program, navigating the main program shell, and starting a session for the MLX90365 module. The document also outlines the key sections and features of the MLX90365 module for calibrating the sensor, programming the EEPROM, taking measurements, and troubleshooting.

Uploaded by

marco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
465 views25 pages

Ui 90365

This document provides instructions for using the PTC-04 software and the MLX90365 device module user interface to program the Melexis MLX90365 family of temperature sensors. It describes the software installation requirements, launching the program, navigating the main program shell, and starting a session for the MLX90365 module. The document also outlines the key sections and features of the MLX90365 module for calibrating the sensor, programming the EEPROM, taking measurements, and troubleshooting.

Uploaded by

marco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

UI 090365 MLX-PTC04

User Interface MLX90365 for PTC-04

U S E R IN T ER FA C E
90365
F O R PTC -0 4
PRO G RA M M E R

User interface Rev 1.5.03

Author: JCD

MLX90365 User Interface Page 1 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Contents:

SECTION 1 OVERVIEW .......................................................................................................................................... 3


System Architecture .............................................................................................................................................. 3
SECTION2 SOFTWARE INSTALLATION ........................................................................................................... 4
Requirements ........................................................................................................................................................ 4
SECTION 3 LAUNCHING THE SOFTWARE....................................................................................................... 5

SECTION 4 THE PROGRAM SHELL.................................................................................................................... 5


Starting a Device Module Session ........................................................................................................................ 6
SECTION 5 THE MLX90365 DEVICE MODULE................................................................................................. 7
Description ........................................................................................................................................................... 7
5A THE MENUS ......................................................................................................................................................... 7
5B AUTO-CALIBRATION MODE ................................................................................................................................ 8
5C THE EEPROM 90365ABB ................................................................................................................................ 13
Device EEPROM Parameters............................................................................................................................. 13
Melexis trimmed EEPROM Parameters ( read only )........................................................................................ 14
Customer EEPROM Parameters ........................................................................................................................ 14
4 points linear setup............................................................................................................................................ 16
17 points linear setup.......................................................................................................................................... 16
5D MEASUREMENTS .......................................................................................................................................... 17
5E SETTINGS............................................................................................................................................................ 18
5F ADVANCED ......................................................................................................................................................... 19
5G RAM.................................................................................................................................................................. 20
SECTION 6 THE DATA LOG FEATURE ............................................................................................................ 21
The Log Menu ..................................................................................................................................................... 21
Opening/Creating a Log File.............................................................................................................................. 22
Executing the Log Function ................................................................................................................................ 23
SECTION 7 APPLICATION SUPPORT ............................................................................................................... 23
Systematic Approach for Calibrating the Sensor................................................................................................ 23
Programming Procedure .................................................................................................................................... 23
SECTION 8 TROUBLESHOOTING / FAQ .......................................................................................................... 24

MLX90365 User Interface Page 2 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Section 1 Overview
The Melexis PTC-04 software is a Windows application that provides a user interface to program Melexis'
family of PTC (Programmed Thru the Connector) programmable IC’s. The software is a 32 bit Windows
application program that uses a serial COM port or USB port to control a specified Melexis
Programmer/Tester.

System Architecture
The PTC-04 software consists of the following main components:

1) Melexis Programmable Toolbox. The MPT is the main executable portion of the program. It
manages the main window and frame, File l/O, and preferences.

2) User Interface. The user interface is part of the device module. It contains the functions and features
used in developing applications with Melexis PTC sensor ICs.

3) Product specific functions (PSF). This is an active-X DLL that manages the serial I/O and translates
operation requests - typically between the Personality Module and the Programmer specific
commands (firmware).
Important Note:
This document is written specifically for the MLX90365 Module. It provides an overview of the PTC-04 and
gives instructions for using the MLX90365 AAA & ABB device module.

The MLX90365 is based on the architecture of the MLX90316, and therefore the DB90316 and Firmware
90365 are used for the PTC-04.

Other Required Documents


The following documents are required in addition to this one for use of the PTC-04 software and
MLX90365 device module.

• PTC-04 datasheet
• MLX90365 datasheet
• PTC-04 Software Installation Notes: Get_Started_with_PTC04.pdf

MLX90365 User Interface Page 3 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

System Architecture

Section2 Software Installation


Installation is done by running the setup or install file provided with the software. For more detailed
installation instructions please refer to the installation notes provided with the software.

Requirements

To install and use MPT for PTC04 on your system must have the following:
NT 4.0, 2000 or XP
A free serial port or a free USB port
50 Megabytes of free disk space
Screen must have minimal resolution of 1024 x 768 with 16 bit colour.
Software History
For revision information, please refer to the release notes located in the HIS090365AAMLX.txt file provide
with the software.

MLX90365 User Interface Page 4 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Section 3 Launching the Software


Launching the Software
The software can be launched through the Windows start menu or through the Explorer by executing
MPTApp.exe.

From the Start Menu


1) Go to the START menu.
2) Go to PROGRAMS, then MELEXIS, Melexis Programmable Toolbox
3) Click Melexis Programmable Toolbox

Section 4 The Program Shell


When the MPT software is launched successfully the following window will appear.

Select “activate” or double click to start the 90365 UI

Connect channel is shown after loading the 90365UI

System log: shows all actions from MPT

Figure 1: MPT - Melexis Programmable Toolbox

For more information, please check the Melexis programming toolbox documentation.

MLX90365 User Interface Page 5 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Starting a Device Module Session


To start the UI of the 90365, double click on “MLX90365” in the list “UI modules” or select the menu
“Tools, Search devices, All”. The UI can be used for programming 90365AAA and 90365ABB. Select the
correct chipversion at the left bottom side before continuing In case of an error, please check the
“troubleshooting/FAQ” section before continuing, DO NOT continue in case of an error message

Select chipversion AAA/ABB

Figure 2: User Interface MLX90365 - Auto-Calibration screen.

MLX90365 User Interface Page 6 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

To open a previous session, choose Open from the profile menu. You may then browse and locate the
saved session. Once you select a file click open to begin the session.
When a Device session is loaded the software will then load any saved preference and presets from the
registry.

Section 5 The MLX90365 Device Module

Description
The software was designed as a tool for rapid development of MLX90365 sensor applications. The
software provides a simple user interface for programming the MLX90365 and taking measurements. It
has one main solver interface screens. The solver gives the user control over a step by step programming
procedure of the sensor and will program the most important EERPOM settings. This auto-calibration
mode will optimize the programmable settings for the application. The software can be used for
engineering development, analysis, and small volume production.
Main Features
• Main auto-calibration screen
• EEPROM screen
• Settings of PTC-04
• Absolute Measurements
• Advanced screen
• RAM screen

NOTE: It is strongly recommended to read MLX90365 datasheet carefully before using this software.
Melexis would like to emphasize that without a basic understanding of the MLX90365 (or other Tri-axis
products) it can be difficult to use this interface.

5A The Menus
The MLX90365 device module has three menus on the tool bar

Figure 3: Menus
MLX90365 User interface has three menus available on the tool bar

1. Profile
To open a previous session with defined solver settings:
Open-> Choose your *.ini file
To save your session solver settings:
Save-> Define your *.ini file
To close your session:
Close

2. Windows

The Windows menu enables to open special screens, like EEPROM screen, measurement screen,
settings of PTC-04, advanced functions and a RAM screen

3. The Close menu will exit the program.

MLX90365 User Interface Page 7 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5B Auto-Calibration Mode

The EEPROM interface is an excellent tool for engineering development. However, for most applications,
manually setting all the device parameters can be cumbersome and time consuming. The Auto-Calibration
interface provides the user with a semi-automated method for programming the MLX90365. This interface
makes use of specially developed algorithms to determine the best device parameters to meet the users'
specifications. Given the proper information, the software will calculate the crucial device parameters.
Step 1 is mandatory and needs to pass w/o error before continuing
1. Press “New device” to clear cache memory,
check the presence and chipverion , read
eeprom and check CRC

2. Select application mode , 3. Select 2 Field components for


analog or PWM the angle calculation

4. Define application related


parameters

5. Press “Set settings” to 6. Read Gain code from RAM


finalize the solver settings to check field strength
7. Define DP can be used to
trim angle reference point

New device
Before starting to (re)program the MLX90365, all calculating parameters must be reset in the cache of the
PC and the EEPROM contents of the MLX90365 must be known. To do so click the “New device” button.
All internal solver parameters will be reset to the default values, the complete EEPROM contents of the
90365 will be read and copied in the cache, CRC of the received data is checked and the chip version is
verified.
Note : The “New device’ button executes multiple PSF90365 methods, like DeviceReplaced, NOPalive,
Readchipversion ReadFullDevice and CheckCRC

Solver settings
To use auto-calibration the user must first define the parameters specific for the application. To do this,
enter all parameters on the screen or use the profile menu to load a previously stored session.

Solver setting Description


Select the required output mode ( ratiometric analog output %Vdd or PWM) See
Output mode
datasheet for more information.
The MAPXYZ parameter defines which fields are used to calculate the angle. The
different possibilities are XY mode , Z/k*XMode or k*/ YZ mode
MAPXYZ
Note: Other combination of Sel_K and MAPXYZ are in principle possible for
dedicated applications but will require manual eeprom manipulations.
Select the rotating direction of the magnet relative to the top view of the chip. By
Clockwise
default the setting is unchecked which corresponds with counterclockwise direction.
Select the digital FIR filter (Filter 1 to 2 = FIR filter from light to strong)
Filter Mode
0 corresponds to no filtering.
Select the transfer function (LNR) method
4points
Checked = 4 arbitrary points (defined on X and Y coordinates) and 5 slopes

MLX90365 User Interface Page 8 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Unchecked = 17 equidistant X points for which only the Y coordinates are defined.
Defines the angular working range when using the 16 points output calibration
Working range method. See calibration point’s description for more details.
Clamp Low Defines the low limit for the output value [ 0..100 %]
Clamp High Defines the high limit for the output value [ 0..100 %]
PWM Freq Define the PWM frequency from 100Hz to 1kHz
Define a fix angle value to adjust the DP or Discontinuity point as the new zero
DP
degrees of the circle. [ α90365 = αmagnet - DP ]
Select if a pull-up resistor (5K6) to Vbat is required
Pull up
Note: This option has no prog effect on the device but only on the PTC04/DB90316
Select if a pull-down resistor (10K) to Gnd is required
Pull down
Note: This option has no prog. effect on the device but only on the PTC04/DB90316

Click “Set settings” to continue.

Output DAC
In case the 12 bit radiometric analog output is selected, the behavior of the Digital – analog converter
needs to be characterized. The gain and offset parameters will be used to correct the errors from the DAC
and adjust all the programmed levels of the calibration points targeted in % Vdd and clamping levels. (In
case of PWM the D/A is not used and therefore default values of gain = 1 and offset =0 are used)
The DAC error is measured between 5 and 95%Vdd (on 2 points)

Note; EEPROM parameter defined in %Vdd are affected by the gain & offset values. See PSF
documentation for more information

Get Gain
Click “Get Gain” to read the current value for the analog gain and the current magnet position. In case the
result is <2 or >30, the magnetic field measured by the chip is most likely respectively too high or too low.
Improper gain settings will give corrupted angle results and lead to wrong calibration results.
Note: This function only shows the actual Virtual gain code from RAM

Define DP

The DP point is also programmable by angle reading in case of random or unknown magnet position.
Based on the actual magnet position and the requested target angle, the solver will calculate the new DP
value and overwrite the previous defined DP value from the solver settings.
Ex: Magnet position is 312 degrees Angle is defined by the user to be at 90degrees. The calculated DP
point will be 312-90 = 222 degrees.

Calibration points of linear transfer function


The shape of the 90365 transfer function from the digital angle value to the output voltage is described by
the drawings.

MLX90365 enables to improve the output linearity through a piece-wise linear calibration.
2 options are available:

1. 4points calibration

This option allows defining:


• 4 calibration points A, B, C, D which are defined by their coordinates.
Ax, Bx , Cx and Dx define the angle in degrees between 0 and 360deg with a 16 bits accuracy.

MLX90365 User Interface Page 9 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Ay, By , Cy and Dy define the Output level in %Vdd between 0 and 100% with a16 bits accuracy
Note: The point 0 is only made to calculate the slope 0 but is not written in the EEPROM.

• 5 slopes
Slope0 is the slope before the A calibration point.
Slope0=(Ay-0y)/(Ax-0x) In case slope 0 is negative, the rotation direction will be inverted
SlopeA is the slope after the A calibration point.
SlopeA=(By-Ay)/(Bx-Ax)
SlopeB is the slope after the B calibration point.
SlopeB=(Cy-By)/(Cx-Bx) equal to Slope A if point B is not measured
SlopeC is the slope after the C calibration point.
SlopeC=(Dy-Cy)/(Dx-Cx) or equal to Slope B if point D is not measured
SlopeD is the slope after the D calibration point.
SlopeD=(Ey-Dy)/(Ex-Dx) or equal to Slope C if point E is not measured

Note: In case a calibration point is not used, the default angle position is 360 deg and therefore disabled.
Always start with calibration Point 0 and add additional points A,B..if required…

Overwrite calculated/default slopes


This option allows the user to overrule or manually program the different slopes. Select the required slope
and click “Get” for reading the current slope value or “ Set” to update the value in % Vdd / Angle.

MLX90365 User Interface Page 10 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

2. 17 points calibration/16 segments


Using this option, the output calibration can be done over 17 points defined by their output level
in %Vdd between -50%Vdd to 150%Vdd. The angular value for each point is fixed. The angular delta
between each point depends on the selected working range.

Procedure:

1. Move magnet to first position and define output value, example 10 %. Press “Set first point”
2. Move magnet to next position and define output value, example 30 %. Press “Set next point”
3. Repeat step 2 if required or remove previous step by pressing “Delete last point “
4. Select linear interpolation and press “Fit point”
o The 17 point will be determined by linear interpolation / extrapolation based in the data
collected during step 1 & 2.
o In case “Front end fit was selected, then a Least square linear fit will determine the best k-
dimension linear curve based on the typical Front-end errors fit ( Offset , SMM,..) and
recalculate the 17 points for the requested transfer curve.

NOTE : The angle readings from the sensor during step 2, need to correspond with a continuous linear
function and be in the range [0 – Working range] deg. The definition of DP and the clockwise bit are
important.
Tip For best accuracy at a certain position , for example first point, use “define DP” to set the angle
value at that point to one of the 17 calibration points * ∆ X .

Example : for working range = 360 deg application , set define DP @ first point = 0 or 22.5 or 45

MLX90365 User Interface Page 11 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Program device
To finalize the auto-calibration all necessary EEPROM parameters will be programmed.

NOTE : The “Self diagnostics ” are not enabled by default, so please check the solvers setting
“Enable diag” or the EEPROM contents to enable the diagnostic check of the sensor.

Locking the device


To prevent any reprogramming of the device, the sensor needs to be locked.
In the current version of 90365ABB software this option has not been foreseen, but a comlock
can be archived by reprogramming the Patch area in EEPROM. See document
“EEPROM_description 90365.pdf ‘ for more information

MLX90365 User Interface Page 12 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5C The EEPROM 90365ABB

Device EEPROM Parameters


The following figure shows all the programmable and un-programmable EEPROM parameters in the
MLX90365ABB, which define the behavior of the device.

Melexis parameters Customer parameters Linear setup

1: Read EERPOM of 90365


Values with gray background = EEPROM sensor
Values with white background = EEPROM Copy in PC cache
2: Program all changed parameters of 90365 (White<> gray background)

Note: Only the most relevant eerpom parameters are shown. For the complete list of EEPROM
parameters, please check PSF90365.

MLX90365 User Interface Page 13 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Melexis trimmed EEPROM Parameters ( read only )

EEPROM
Description
Parameter
OSC TRIM Digital trimmed code for the oscillator frequency [ 7 Bit ]

T +35 Digital trimmed code for internal temperature sensor 1 @ 35 deg [ 16 Bit ]

T -60 Min code for internal temperature sensor 1 @ -60 deg [ 8 Bit ]

T +170 Max code for internal temperature sensor 1 @ 170 deg [ 8 Bit ]

I Trim Digital trimmed code for Current source Hall plates[ 5 Bit ]
XOFFSETSLOPES
-40 to T35 and T35 to 125deg linear offset compensation slopes for X, Y and Z axis
YOFFSETSLOPES
[ 2x8 Bit ]
ZOFFSETSLOPES
ID 1/2
ID 3/4 Unique IC identification [ 3 x 16 bit]
ID 5/6
SMISM X/Y sensitivity mismatch correction [ 16 bit ]
ORTHXY
ORTHZX X/Y, Z/X and Y/Z Phase mismatch correction [ 3 x 8 bit ]
ORTHYZ
X0
Y0 Offset compensation correction @ 35 Deg for X, Y and Z axis [ 3x 16 Bit ]
Z0

The Melexis eeprom parameters are read only calibrated and traceability parameters.
They are the results of tests and calibration procedures at tree different temperatures.

Customer EEPROM Parameters


The customer eeprom parameters are read/write parameters to define the behavior of the 90365ABB

EEPROM
Description
Parameter
If enabled, A scaling factor is applied to LNR Y coordinate parameters
Enable scaling Default Range [ 0..100 ] -> [ -50 .. 150 ] % Vdd .
Note ; only needed in case of 4 x 90 deg saw tooth application
Selects the active output mode, in case no fault
0 = OFF / HiZ
Output Mode
1, 2, 3, 4 = Analog modes
5, 6, 7 = Digital modes
Selects the diagnostic output mode, in case of a fault
0 = OFF/ HiZ
Output DIAG Mode
1, 2, 3, 4 = Analog modes
5, 6, 7 = Digital modes

OsDiag.Diag Determines the reporting level (0= low, 1= high) during start-up or during a fault reporting

PWMT Divider code of Qsc freq/3 to trim PWM frequency

Filter Select the digital FIR filter ( 0 = No filtering, 1 or 2 = FIR)

MLX90365 User Interface Page 14 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

CUST ID 1
CUST ID 2 Free customer identification number [ 3 x 16 bit]
CUST ID 3
B1/B2 sensitivity mismatch correction , if MAPXYZ <>0
MAPXYZ = 1, SelK = 1 -> Angle ( k* X / Z)
K
MAPXYZ = 2, SelK = 0 -> Angle ( Z / k * Y)
Sel K
[ K 15 bit; SelK 1 bit ; k = K / 2^15 ]

Enable PWM H/W & S/W, but not the output stage. Use Outmode to switch the output
PWM
stage to PWM.
PWMPOL defines the polarity of the output in PWM Mode.
0 = Period Start with rising edge
PWMPOL
1 = Period Start with falling edge
Note : Keep PWMPOL parameter aligned with parameter OsDiag.Diag
PWM SR When enabled, doubles the rise and fall times in PWM modes
When enabled, the output is based on 4 LNR reference points and 5 LNR slopes.
4 points
When disabled, output is based on 16 points linear points inside working range W
When enabled, Virtual gain is limited by GAINMIN / GAINMAX values
Gain saturation When disabled, Virtual gain range is [0 .. 41 ] and Gainmin/max are used as diagnostic
levels.
W Working range [ 65.5 … 360 ] deg for 16 points linear setup [ 4 bits]
The MAPXYZ parameter defines which fields are used to calculate the angle.
0 = Y/X mode
MAPXYZ
1 = X/Z mode
2 = Z/Y mode
GAINMIN Defines the minimum virtual gain value or minimum threshold value for gain diagnostic

GAINMAX Defines the maximum virtual gain value or maximum threshold value for gain diagnostic

8 bit value to define the hysteresys on the calculated output


FHYST
FHYST=1 equals 8LSB on 16 bit output

DiagSettings Enables 16 diagnostic features.

DiagDebThres Threshold for diagnostic debouncing counter.


Increment value for diagnostic debouncing counter.
DiagDebUP
Threshold / StepUp determines the debouncing time
Decrement value for diagnostic debouncing counter.
DiagDebDn Threshold / Stepdown determines the reporting time
Note ; 0 = permanent Diag latch once a diagnostic is triggered
CW Enables clockwise rotation direction
Define the new 0 degree point on the circle. Defined from 0 to 360 deg.
DP
Digital angle = physical angle - discontinuity point
Clamp Low Defines the low limit for the output value [ 0..100 %]

Clamp High Defines the High limit for the output value [ 0..100 %]

FieldThresLow Defines the low limit for the field threshold

FieldThresHigh Defines the High limit for the field threshold

MLX90365 User Interface Page 15 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

4 points linear setup

EEPROM
Description
Parameter
LNR S0 Signed Slope if digital angle < Ax

LNR A_S Signed Slope if digital angle > Ax

LNR B_S Signed Slope if digital angle > Bx

LNR C_S Signed Slope if digital angle > Cx

LNR D_S Signed Slope if digital angle > Dx

LNR_A_X X coordinate of the first calibration point in degree

LNR_A_Y Y coordinate of the first calibration point in % Vdd

LNR_B_X X coordinate of the second calibration point in degree

LNR_B_Y Y coordinate of the second calibration point in % Vdd

LNR_C_X X coordinate of the third calibration point in degree

LNR_C_Y Y coordinate of the third calibration point in % Vdd

LNR_D_X X coordinate of the last calibration point in degree

LNR_D_Y Y coordinate of the last calibration point in % Vdd

Note: To avoid strange output behavior, keep LNR_A_X ≤ LNR_B_X ≤ LNR_C_X ≤ LNR_D_X

17 points linear setup

EEPROM
Description
Parameter
Y0 [%] Y coordinate at 0 deg point in % Vdd

…Y N [%]… Y coordinate at ( N * Working range / 16 ) deg point in % Vdd

Y16 [%] Y coordinate at last point in % Vdd

MLX90365 User Interface Page 16 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5D MEASUREMENTS

Measurements are performed every second.

Measurement
Description
Parameter
Out1MUX Enable output measurement (analog or PWM duty cycle)

Vdd mux [V] Enable Vdd measurements at multiplexer

Vdd [V] Enable VDD measurements

Idd [mA] Enable IDD measurements


Read digital calculated angle from MLX90365 RAM memory
Angle [Deg]
= ThetR2P / 2^16 *360
Enable PWM measurement. Switch output measurement from analog to duty cycle
PWM mode
Note Tick this box before the Out1Mux

MLX90365 User Interface Page 17 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5E Settings
This are the default recommended settings for PTC-04 / MLX90365.

Settings
Description
Parameter
Voltage settings Default voltage settings (V) for normal and communications mode
Default timing settings when PTC-04 command is send ( uSec)
Tpor = Time power on reset= Time @ VddNorm
TSynchro = Time before sending synchronization pulses @ Vdd_Comm
Timing settings
Baudrate = Communication Speed of modulated signal at output pin
B.R Sync Diff = Correction of baudrate ( baudrate + Sync diff) during synchronization
pulses for big capacitors.
Switch on/off pull up or pull down resistor. See datasheet DB_90316 for
Resistor
more information.

Vbattery Voltage level PPS3 for Pull up resistor


Default settings for measurements
Measure filter = number of measurements
Measurement setup
Delay before = Time to wait before start of measurements

MLX90365 User Interface Page 18 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5F Advanced

Low level instructions for MLX90365.

Advanced
Description
Parameter
Reads the contents (16 bit) of any address defined in Addr. Result = “Data in” and
Memread
checks CRC
MemWriteWithCRC Writes the contents ( 16 bit) of “Data out” to any address defined in Addr.

Checks the PTC-04 communication by sending “Hello” and expects a valid answer from
NopAlive
the 90365

HotReset Not implemented in 90365ABB -> Will create an error

Reset Vdd: Reboot the sensor by switching off the supply for a short period and set Vdd=5V

Set Vdd: Set manually the supply level Vdd=?? V


Select a INI file with Default EEPROM settings to update 90365. See PSF90365 for list
of all possible parameters.
If “Program only 16 Bit” is checked , then only EEPROM parameters with 16 bit range
are written without reading
If “Program only 16 Bit” is unchecked , then EEPROM parameters smaller then 16 bit
range will first be read and then updated.
Example of INI file
Program EEPROM
[EEPROM Parameter Values]
From INI
LNRS0 =0
LNRAS=0.22
[EEPROM Parameter Codes]
GAINMIN = 1 ‘Note : only updated if “Program only 16 Bit” is unchecked
GAINMAX = 39 ‘Note : only updated if “Program only 16 Bit” is unchecked
DP16 = 0
ROMCHECKSUM = 0x2E3D Note : hex code used when using 0x

MLX90365 User Interface Page 19 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

5G RAM
The Melexis RAM parameters , displayed in Hex code, are used to check the status of 90365.

RAM Parameter Description

ERROR FLAGS Error status : See chart below for more details

DIAG FLAGS Diagnostic status : See chart below for more details

B1 Equals to X, Y, Z Fiel depending on MAPXYZ parameter

B2 Equals to X, Y, Z Field depending on MAPXYZ parameter

ThetaR2P 16 bit value of calculated angle Arctan( B2/B1) ( 0..360°)

ThetaOUT 16 bit value of calculated output ( 0..100%)

TEMPSENS1 16 bit value for Temperature sensor 1

TEMPSENS2 16 bit value for Temperature sensor 2

VIRTULA GAIN Analog Gain code from 0 to 29h

FIELDNORM Normalized field value [lsb]

FIELDSTRENGTH Calculated field strength value * 256 in mT

MLX90365 User Interface Page 20 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Error Flags

Bit ID Error Flags


bit 0 Fail RomChecksum
Bit ID Diagnostic Flags
bit 1 Fail SU_RamMarch
bit 0 Virtual Gain Out of spec
bit 2 Fail RamTest
bit 1 Field Too Low
bit 3 Fail _Watch Dog test
bit 2 Field Too High
bit 4 Fail FlowControl
bit 3 ADC Saturation
bit 5 Fail EepromCrc
bit 4 ADC Monitor fail
bit 6 Fail DiagTooFast
bit 5 V ana Monitor fail
bit 7 Fail Communication Error
bit 6 Vdd Monitor fail
bit 8 Fail Communication Timeout
bit 7 Rough Offset too high
bit 9 Fail WriteAlsoCRC
bit 8 Temp Monitor fail
bit 10 Fail Unlock before communication
bit 9:15 not used
bit 11:15 not used

Section 6 The data log feature


The data log feature allows important information to be saved electronically. The information is saved in a
Comma Separated Value format. This standard format can be used by nearly any spreadsheet or data
analysis software. The logged parameters are configured by the user. The logging feature can be
disabled, used manually, or automated in the auto-calibration mode.

The Log Menu


There are six commands located under the Log menu. The commands and their purpose are explained
below. Log files are accessed differently than a document or spreadsheet file. Therefore the file
commands are slightly different. It is important to read the information provided below.

Enable
With the Enable function is used to enable or disable the automatic logging function. The function is
default enabled.

Log
The log function is used to manually log information. This is a specialized function similar to those
functions under the action menu.

Preferences
This command is used to access the log preferences window. In this the window the user can customize
and configure all the data log options.

MLX90365 User Interface Page 21 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Opening/Creating a Log File


The first step in setting up the data log is to open a log file.

The MPT is equipped with two logging systems: a Data Log and a
System Log. The Data logger, logs for each performed read back,
the device parameters (decoded ROM contends) and the software
parameters like targets of the Auto calibration , etc…
The system logger logs all performed functions including solver
loggings.
The change the logging filename and options, select the menu
“Tools → Options. See figure 11.

1. In the options window (figure 12) you’ll find on the left a


logging list. Select the logger you want to modify.
2. Enable or Disable “Output to Data Log window”.
3. Log to file: In this window you can enable and disable the
logging and change the filename. If you select
“Log to file used for system logging”, system and data is
logged in one file.
1 2 Figure: MPT – Options

Figure: Data and system logging

MLX90365 User Interface Page 22 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Executing the Log Function


When working in the manual interface or using the manual logging option for the auto-calibration interface,
the user must execute the log function to record any parameters. The user can execute the log function by
selecting "Log" from the log menu or clicking the "Log" button on the interface screen. Each time the log
function is executed the selected parameters will be recorded in a single row in the log file.

Important Note
The parameter headings and units of measurement are not recorded in the log file. Only the value of the
parameter is saved.

Section 7 Application Support

Systematic Approach for Calibrating the Sensor


The MLX90365 is a versatile product with many possible adjustments. The versatility of the product can
simplify a design and improve accuracy. As with any product with multiple adjustments a good procedure
is needed to efficiently use the device. Randomly making adjustments will add time and difficulty for the
user calibrating a sensor. However, by taking a systematic approach sensors can be calibrated quickly
and with relative ease.

The PTC software has an effective automated calibration tool. This section describes the process used in
the automated calibration tool. Understanding the calibration process will help developers create new
products, diagnose problems, and improve performance. The following information provides a general
approach to programming the MLX90365. Upon request Melexis will provide any additional information or
specific technical support.

Programming Procedure
1. Read the MLX90365 datasheet. Using the datasheet try to estimate some of the parameters. Make
sure the target specifications are within the limits of the devices.

2. Determine the parameter needed for your application. Output mode

3. Program the transfer function Vout = Slope x angle + offset, using the LNR parameters. Use the
GetAngle() function to define the X coordinates of calibration point A,B and C

4. Set the clamp parameter.

5. Verify the results.

MLX90365 User Interface Page 23 of 25 jun – 13


Rev 1.503
UI 090365 MLX-PTC04
User Interface MLX90365 for PTC-04

Section 8 Troubleshooting / FAQ


1) The programmer fails to responds. This is most often the result of a communications problem
between the PC and the programmer. Check the cable connections and communications settings in
the preferences window. Look at the LED Indicator on the programmer. The red LED is the power
indicator, the green LED is used to indicate the communication. In case of USB, check Windows
device manager settings if USB is recognized.

2) No Readback . Make sure the device is inserted in the socket correctly. Check the connections of
Vdd, Gnd and output. This should be verified with measurements screen: VDD=5V, IDD = 5..10mA
and Vout for new devices = 2.5 V

If the connection is OK and bigger capacitor values are used , try reducing the baudrate , increase Tpor
and Tsynchro

3) Writing to EEPROM failed. Writing to the EEPROM is only possible to the customer area.

4) Firmware is not recognized as MLX90365". To use the PTC-04 as programmer for MLX90365, the
correct firmware must be loaded. Load MLX/90365 firmware with the PTC-04 UI.

5) Daughterboard not recognized or revision too low. To use the PTC-04 as a programmer for
MLX90365, the correct daughterboard and firmware is needed. Check if the DB90316 is installed and
the correct firmware is loaded. For more information: datasheet PTC-04, DB90316 and UI PTC04 /
Configuration

MLX90365 User Interface Page 24 of 25 jun – 13


Rev 1.503
UI 090365 AA MLX-PTC04
User Interface MLX90251 for PTC-04

6) Strange behavior of angle / output


To guarantee a correct behavior of the angle / output, the eeprom parameters needs to be programmed
correctly. Check if eeprom data is realistic and corresponds with what is programmed / expected.

EEPROM parameters to be checked ;


a. Parameter K represents the amplitude difference between Z/X and Z/Y and should be around
0.7. An incorrect programming sequence could lead to a value “zero’ and is incorrect
b. Parameter Output mode represents the behavior for normal and diagnostic mode A value
“zero’ corresponds with a disabled output mode and will force the output stage in HiZ instead
of representing the position in analog / PWM
c. Clamping levels

7) Error message during calibration


If an error message is triggered during 3 / 16 point calibration, then this is typically linked to an incorrect
angle reading, due to either an incorrect communication or discontinuity of the transfer curve. Check the
logging for the received angle value.

MLX9033 User Interface Page 25 of 25 May-13


Rev 1.3

You might also like