ZMID5201 Manual for Calibration and Linearization Using the Analog Output. Contents. List of Figures. List of Tables

Similar documents
ZMID Communication Board (ZMID-COMBOARD) User Guide: Serial Communication and Commands. Contents. List of Figures. List of Tables

User Manual for the SDAH01 Evaluation Kit for the HS3001 Humidity and Temperature Sensor. Description. Features. Kit Contents. SDAH01 Evaluation Kit

FS1023 Datasheet. Liquid Flow Sensor Module. Description. Features. FS1023 Flow Sensor Module. Typical Applications

ZMID520x Technical Brief One Wire Interface (OWI) Contents. List of Figures. List of Tables

Introduction. Why have ncxo Redundancy? Per-Input Reference Monitors (REFMON) AN-1020 Application Note. ClockMatrix on ncxo Redundancy

ZSC31050 Application Note: 0-to-10V Analog Output. Contents. List of Figures. List of Tables. AN-981 Application Note

ZSSC4151 Evaluation Kit Hardware Manual

ZLED7030KIT-D1 Demo Kit Description

ZMID520xMLIN01201 Linear Application Module User Manual. Description. Features. Linear Module Summary. Kit Contents

ZLED7002. Toggle (Side-Step) Dual-Channel LED Driver. Datasheet. Features. Brief Description. Benefits. Available Support. Physical Characteristics

ZSSC5101 Evaluation Kit Description

ZMID520x Evaluation Kit User Manual. Description. Features. Kit Contents. ZMID520x Evaluation Kit

Application Module User Manual. Description. Features. Arc Module Summary. Kit Contents. ZMID520xMARC13001 Arc Application Module Sensor PCB

Flammable Gas Smart Sensing Module

Hydrogen Gas Smart Sensing Module. Features

ZSPM4121. Under-Voltage Load Switch for Smart Battery Management. Datasheet. Brief Description. Features. Related IDT Smart Power Products

8V9705x Evaluation Board User Guide IDT Applications

1.8V to 3.3V LVCMOS High Performance Clock Buffer Family

Figure 1. Wave Shape at an Output Port of the 2048kHz Synchronization Interface...8. Table 6. Configuration for BITS/SSU in E1 Mode...

HS300x Datasheet. High Performance Relative Humidity and Temperature Sensor. Description. Features. Physical Characteristics. Typical Applications

ZWIR4532 Evaluation Kit User Manual. Description. Features. Kit Contents

HCMOS 3.2x2.5mm SMD Oscillator O3HS DATASHEET (Former F300, F310, F330, F340, Series)

ZSC31xxx / ZSSC3xxx. SSC Communication Board. Datasheet. Brief Description. Features. Benefits

FRONT-HAUL COMPRESSION FOR EMERGING C- RAN AND SMALL CELL NETWORKS

ZMOD4410 Evaluation Kit User Manual. Description. Features. ZMOD4410-EVK Contents. ZMOD4410 Evaluation Kit

Tsi148/Universe II Differences Application Note. Formal Status September 29, 2014

ZMID520x Evaluation Kit User Manual. Description. Features. Kit Contents

IDT Converting Designs from PLX PEX 8114 to IDT Tsi384. Application Note

Adaptive DFE Application Note. Formal Status March 19, 2013

ZSC31050 Application Note - Two-Wire Current-Loop Output

BLOCK DIAGRAM PIN ASSIGNMENT I Data Sheet. Low Skew, 1-to-9 Differential-to-HSTL Fanout Buffer ICS852911I

IDT Using the Tsi310 TM to Optimize I/O Adapter Card Designs

MPC9817ENR2. Clock Generator for PowerQUICC and PowerPC Microprocessors and Microcontrollers DATA SHEET NRND

ZSC31150 Evaluation Kit Description

IDT Converting Designs from PLX PEX8111 or PEX8112 to IDT Tsi381. Application Note

BUS SWITCHES PROVIDE 5V AND 3V LOGIC CONVERSION WITH ZERO DELAY. Figure 1. 5V & 3V Logic Mixture in PC Design

SDAWIR03 Demonstration Kit User Manual for the HS3001, FS2012, and ZWIR4512. Description. Features. Kit Contents. SDAWIR03 Demonstration Kit

Performance Comparison of IDT Tsi381 and Pericom PI7C9X110

Bridging from PCI Express to PCI in Small-Form Factor Embedded Computing Designs

Tempo Semiconductor, Inc. TSDP18x Evaluation Board User Guide Rev 0.1 (April 27, 2018)

UM1488 User manual. STPMC1 evaluation software. Introduction

ZSSC3154 Evaluation Kit and Mass Calibration System Description

Performance Comparison of IDT Tsi384 TM and Pericom PI7C9X130

IDT Using the Tsi310 TM to Migrate I/O Adapters from PCI to PCI-X

Application Note AN-428

Tsi108 TM /Tsi109 TM Device Differences

DDR4 LRDIMMs Let You Have It All

Tsi384 Board Design Guidelines

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS QUADRUPLE BUS SWITCH WITH INDIVIDUAL ACTIVE LOW ENABLES

Low Skew, 1-to-16 Differential-to-LVDS Clock Distribution Chip

ZAMC4100 Application Kit Description

RS232 Relay Board-R242. User Manual. Jan 2012 Doc-R242-UM-Rev1.0 iknowvations.in

NOTE: For the remainder of this paper, we will refer to the logical equivalent of this signal as EAPD(#).

ZSSC3170 Evaluation Kit Description

How to interpret the LPS331AP pressure and temperature readings. Main components mbar absolute barometer with digital output

PowerSpan II TM Initialization Application Note

ZSSC3018 SSC Evaluation Kit and MCS User Manual. Description. Features. Kit Contents. ZSSC3018 SSC Evaluation Kit. SSC Communication Board (SSC CB)

PureTouch * Capacitive Touch Sensor IC Configuration Registers Detailed Register Information and Default Values

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS QUICKSWITCH DOUBLE-WIDTH BUS SWITCH

ZSSC30x6 Evaluation Kit Description Contents

DATA SHEET. Features. General Description. Block Diagram

VersaClock 6E 5P49V6967/68 Evaluation Board User Manual. Contents. List of Figures

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS 10-BIT BUS SWITCH WITH FLOW-THROUGH PINOUT

Low Skew, 1-to-8, Differential-to-LVDS Clock

ICS548A-03 LOW SKEW CLOCK INVERTER AND DIVIDER. Description. Features. Block Diagram DATASHEET

QUICKSWITCH PRODUCTS 2.5V / 3.3V 32-BIT HIGH BANDWIDTH BUS SWITCH

QUICKSWITCH PRODUCTS 2.5V / 3.3V 16-BIT HIGH BANDWIDTH BUS SWITCH

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS QUICKSWITCH 32-BIT MULTIWIDTH BUS SWITCHES

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS QUICKSWITCH DOUBLE-WIDTH BUS SWITCH

QUICKSWITCH PRODUCTS 2.5V/3.3V 20-BIT HIGH BANDWIDTH BUS SWITCH

QUICKSWITCH PRODUCTS 2.5V / 3.3V 8-BIT HIGH BANDWIDTH BUS SWITCH

T1/E1 CLOCK MULTIPLIER. Features

QUICKSWITCH PRODUCTS 2.5V / 3.3V 8:1 MUX / DEMUX HIGH BANDWIDTH BUS SWITCH

DATA SHEET. TSDP90xx FEATURES DESCRIPTION APPLICATIONS SPEAKER AMPLIFIER

ZSC31210 / ZSSC3122 / ZSSC3123 SSC Modular Evaluation Kit Description

QUICKSWITCH PRODUCTS 2.5V / 3.3V 20-BIT DUAL PORT, HIGH BANDWIDTH BUS SWITCH

PAS 9732/AI ENGINEERING SPECIFICATION

CMOS SyncFIFO 64 x 8, 256 x 8, 512 x 8, 1,024 x 8, 2,048 x 8 and 4,096 x 8 LEAD FINISH (SnPb) ARE IN EOL PROCESS - LAST TIME BUY EXPIRES JUNE 15, 2018

APPLICATION NOTE AN-265

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

Application Note. Deploying Survivable Unified Communications Solutions with the Dialogic 2000 Media Gateway Series

STTS V memory module temperature sensor. Features

LOW-VOLTAGE 24-BIT BUS EXCHANGE SWITCH

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

QUICKSWITCH PRODUCTS 2.5V / 3.3V 24-BIT HIGH BANDWIDTH BUS SWITCH

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

APPLICATION NOTE AN 59

HYDRA-X EH-PROTOx-1 Heads

AN2667 Application note

LOW-VOLTAGE OCTAL BUS SWITCH

EV-VNQ5E050AK VNQ5E050AK evaluation board

IDT Bridging the PCI Express Interconnect Divide Application Note

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

Features. Applications

BLOCK DIAGRAM PIN ASSIGNMENT ICS LOW SKEW, DUAL, 1-TO-5 DIFFERENTIAL- TO-LVDS FANOUT BUFFER PRELIMINARY ICS854210

SGJ Cable Actuated Sensor Industrial CANBus J1939

Evaluation Board for CS4344

AN3154 Application note

TC4049BP,TC4049BF, TC4050BP,TC4050BF

AN2261 APPLICATION NOTE

Transcription:

ZMID5201 Manual for Calibration and Linearization Using the Analog Output Contents 1. Introduction...2 2. Spa, Pos0, and Pos1 Registers...3 3. Nonlinearity Error Correction...3 4. Zero Point Offset and Slope Calibration...5 4.1 Zero Offset Correction...5 4.2 Slope Correction...6 5. Linearization Process...7 6. Calibration: Zero Offset and Slope...8 6.1 Reference Angle Calculation...9 6.2 Determining the Correction Factor for Linearization...10 7. Revision History...11 List of Figures Figure 1. Calibration and Linearization Flow Diagram...2 Figure 2. ZMID5201 Data s Block Diagram...3 Figure 3. Correction Points...3 Figure 4. Correction Curve...4 Figure 5. Example of Pos0 Values Before and After Zero Offset Correction...5 Figure 6. Slope Correction Example...6 List of Tables Table 1. Correction Factors...4 Table 2. Example of Ideal Data...9 Table 3. Correction Factor Calculation...10 2018 Integrated Device Technology, Inc. 1 March 7, 2018

1. Introduction This document describes the calibration and linearization process for the ZMID5201. Important: These procedures are specifically for linearization and calibration using the analog output (the SOUT pin) and Linear Output Mode. All data, for example Spatialangle (Spa), Pos0, and Pos1, are calculated/converted from the analog output. Figure 1. Calibration and Linearization Flow Diagram Move the target to the minimum position and record the voltage at the analog output. Repeat at the maximum position. Convert the two voltage measurements to the Spatialangle values. Calculate the Slope and Zero Offset values. Write the values to EEPROM. Sweep the target and read the analog output. Convert the voltage measurements to Pos0. Calculate the linearization correction factors. Write to EEPROM. 2018 Integrated Device Technology, Inc. 2 March 7, 2018

2. Spa, Pos0, and Pos1 Registers The processing of data in the ZMID5201 is represented in Figure 2. Important registers: The Spa register represents the position value of the target without any calibration or linearization. The Pos0 register represents the position value of the target after calibration for slope and zero offset. The Pos1 register represents the position value of the target after calibration (slope and zero offset) and after linearization (corrections at 9 data points). Figure 2. ZMID5201 Data s Block Diagram Input Xsine Ycosine Phase polarity Amp Offset Correction Cordic Extension 0 to 360 Phase Polarity Xsine Ycosine Mag Angle [0 to 90] Spa [0 to 360] Slope and Offset Linearity Clamping Pos0 Pos1 3. Nonlinearity Error Correction The value of the measured position after calibration is stored in the register Pos0 (shadow word register (SWR) address 19 HEX, read only). Pos0 is a 16-bit value covering a range of output values [0, 2 16 1]. The measurement output range of 2 16 is divided into 8 sections. Each section has a range of 2 13, and the boundaries are the correction points. Correction points are fixed, and their values are expressed with respect to the maximum position output value 2 16. The linearization procedure is a one-dimensional procedure where only the values for the y-coordinate (i.e., the measured position values) can be corrected to match the ideal measurement curve. The position values of the correction points for the Y coordinates are defined by the EEPROM (E2P) address range 03 HEX to 07 HEX. Figure 3. Correction Points Corr0 Corr1 Corr2 Corr3 Corr4 Corr5 Corr6 Corr7 Corr8 0 8192DEC 16384DEC 24576DEC 32768DEC 40960DEC 49152DEC 57344DEC 65536DEC 2018 Integrated Device Technology, Inc. 3 March 7, 2018

The Y correction factor is a number in the range of ±127 decimal, i.e., ±6.2% full scale (FS), and it is applied on the 11 MSB (most significant position bits) of the measured position. Table 1. Correction Factors Parameter x-coord (Fixed) y-coord Range (Variable/11 MSB) Corr0 0 ±127DEC Corr1 1 2 13 = 8192DEC ±127DEC Corr2 2 2 13 = 16384DEC ±127DEC Corr3 3 2 13 = 24576DEC ±127DEC Corr4 4 2 13 = 32768DEC ±127DEC Corr5 5 2 13 = 40960DEC ±127DEC Corr6 6 2 13 = 49152DEC ±127DEC Corr7 7 2 13 = 57344DEC ±127DEC Corr8 8 2 13 = 65536DEC ±127DEC Each section is identified by two correction points, so a linear interpolation function can be defined between each pair of corrections points. The set of linear interpolation functions connecting the correction points defines a linear piecewise function expressing the correction function over the whole measurement range of 2 16. Applying the correction function to position value Pos0 after the zero-point offset and slope calibration improves the linearity by more than a factor of 2. After the correction is applied, the measured position can be monitored by reading the register Pos1. Figure 4. Correction Curve 2018 Integrated Device Technology, Inc. 4 March 7, 2018

Row data Row data ZMID5201 Manual for Calibration and Linearization Using the Analog Output 4. Zero Point Offset and Slope Calibration The goal of the calibration is to ensure that at the mechanical stroke ends, the measured positions are at zero and the maximum position respectively. The receiver input signals are transformed by the arctan function into a linear position curve called the spatial angle. The spatial angle is transformed by the calibration process using the zero offset and slope to calculate the calibrated position: position_cal = (Spa Zero Offset) Slope 4.1 Zero Offset Correction The zero offset correction is used for mapping the electric angle to the mechanical angle using the Zero Offset term. Example: It is possible to design a 100 coil and to use a designer-selected range; e.g., 20, 30, or 40.The zero offset correction allows selecting the start point and the endpoint within this 100 range and allows moving the target in both directions (right to left or left to right). Figure 5 shows an example of the difference between before and after zero offset correction. Figure 5. Example of Pos0 Values Before and After Zero Offset Correction 70000 Pos0 before Correction 70000 Pos0 after Correction 60000 60000 50000 50000 40000 40000 30000 30000 20000 20000 10000 10000 0 0 100 200 300 mechanical angle ( deg ) 0 0 100 200 300 400 mechanical angle ( deg ) 2018 Integrated Device Technology, Inc. 5 March 7, 2018

Raw data ZMID5201 Manual for Calibration and Linearization Using the Analog Output 4.2 Slope Correction The slope correction allows mapping the measured angle to the full scale range for the measurement. Example: In the graph in Figure 6, the red waveform is the mechanical movement data of the target before slope correction. It is mapped in a range from 0 to 50000 DEC. After slope correction, the same mechanical movement of the target is mapped to a range from 0 to 65535 DEC as shown by the blue waveform. The Slope term is a simple multiplication factor. Figure 6. 70000 Slope Correction Example Pos0 60000 50000 40000 30000 20000 10000 0 0 50 100 150 200 250 300 Position angle ( deg) 2018 Integrated Device Technology, Inc. 6 March 7, 2018

5. Linearization Process The linearization process follows this sequence: 1. Calibration Zero offset Slope 2. Linearization of correction points Corr0 Corr1 Corr8 Important: This method of calibration and linearization is valid only for the analog output. The values are expressed in volts. The linearization function is implemented in the digital domain, and the correction factors are applied at fixed digital points. In order to achieve the linearization, a conversion of the analog output data is required. If the zero offset is equal to the origin (zero) and the slope is 1, the analog output (volts) is the converted digital raw data. converted data = spatial value = Pos0 = Pos1 After the analog output measurement, it is possible to calculate the Spa value, which is used for calibration and linearization. Example: Zero offset (address 00 HEX ) = 2400 HEX Slope (address 01 HEX) = 0400 HEX VDDE supply = 5V For this case, the analog output voltage for each measured value is converted using these calculations: Ratiometric output range = 5% of VDDE to 95% of VDDE = 0.25V to 4.75V Full-scale voltage output range = 4.75 0.25 = 4.5V This range is mapped to 0 to (2 16 1): converted data = (Volt_meas 0.25) (216 1) 4.5 V Where Volt_meas is the value measured at the analog output. 2018 Integrated Device Technology, Inc. 7 March 7, 2018

6. Calibration: Zero Offset and Slope Calibration consists of measurements at the two end points and determination of the zero point offset and slope: 1. Measure the actual analog output voltage when the target is in the first position (point A). 2. Measure the actual analog output voltage when the target is in the last position (point B). 3. Convert the analog output data in the Spa register. spatial_angle_pt.a is the SPA register value when the target is at point A. spatial_angle_pt.b is the SPA register value when the target is at point B. If spatial_angle_pt.a < spatial_angle_pt.b Else spatial_angle_min = spatial_angle_pt.a spatial_angle_max = spatial_angle_pt.b spatial_angle_min = spatial_angle_pt.b spatial_angle_max = spatial_angle_pt.a 4. Determine the offset of the zero point and save it to memory. Zero point offset: offset_value = spatial_angle_min Map offset_value to register notation: If (offset_value 2^15 ) else Offset_parameter = 2^13 + 2^10 [1 (offset_value/2^15 )] offset_parameter = 2^10 [(offset_value/2^15 ) 1] Write to EEPROM address: address 0x00 = dec2hex [offset_parameter; 4 ] 5. Determine the slope correction factor and save it to memory. Slope: Slope_value = 2^16 /(spatial_angle_max spatial angle_min) Slope_parameter = 2^10 slope_value Write to EEPROM address: address 0x01 = dec2hex[slope_parameter; 4] Optional: change the slope polarity for the position output: offset_value = spatial_angle_max slope_parameter = 2^12 + 2^10 slope_value 2018 Integrated Device Technology, Inc. 8 March 7, 2018

6.1 Reference Angle Calculation For the linearization, an ideal reference angle must be generated. This ideal reference angle is needed only if the acquisition of the analog output is not synchronized with the movement of the target. The values of an ideal reference angle are defined as an array in the range from 0 to 65535 (Pos0, 16 bits). This array contains a given number of elements and a specific step between two adjacent values of the array. Ideal Data Acquisition: The acquisition of data is done at equidistant time intervals, and the target is moved with constant velocity. Table 2. Example of Ideal Data Index Ideal Pos0 Value 0 0 1 154.5637 2 309.1274 3 463.6911 4 618.2548 5 772.8185 6 927.3822 7 1081.9459 8 1236.5096 9 1391.0733 10 1545.637 11 1700.2007 12 1854.7644 13 2009.3281 14 2163.8918 15 2318.4555 16 2473.0192 17 2627.5829 18 2782.1466 19 2936.7103 20 3091.274 21 3245.8377 22 3400.4014 23 3554.9651 24 3709.5288 25 3864.0925 26 4018.6562 27 4173.2199 2018 Integrated Device Technology, Inc. 9 March 7, 2018

Definitions: Step_value_Pos0: Step value between two adjacent values. Pos0_ideal_elem_nr: The number of elements present in the ideal reference angle. Spat_ele_nr: The number of samples that are read from the Spatialangle register during a complete sweep of the target. Pos0_ideal_elem_nr is calculated as Pos0 = Spat_ele_nr idealelem nr Step_value_Pos0 is calculated as Step_value_Pos0 = 65535 / Pos0_ideal_elem_nr Ideal_Pos0_Value is an array that is populated as follows: index = 0 While (index < Pos0_ideal_elem_nr) { } Ideal_Pos0_Value[index] = index Step_value_Pos0 Index ++ 6.2 Determining the Correction Factor for Linearization Table 2 provides an example of the calculations for correction factors when Pos0_ideal_elem_nr is 383. In Table 3, the OutputCalPOS0 column contains the analog output converted value from a complete sweep of the target. The Difference column value is calculated as Ideal_pos0_Value[Index_calc] OutputCalPOS0[Index_calc]. For the Difference/32 column, 32 is a scaling factor inherent to the ZMID5201. Table 3. Correction Factor Calculation Index_calc OutputCalPOS0 Ideal_pos0_Value Difference Difference/32 Difference/32 [Hexadecimal] 0 3277 3245 1 3289 3400.................. 32 6775 8191.875 1417 44.26 Corr1 = 2C.................. 85 14094 16383.75 2290 71.553 Corr2 = 47...................................................... 381 62172 382 62258 The correction factor and the respective fixed point values are given in Table 1. 2018 Integrated Device Technology, Inc. 10 March 7, 2018

Linearization algorithm for Corr0,., Corr8: Corr1 factor: 1. In the Ideal_pos0_Value array, find the closest value to 8192. (See Table 3.) 2. Calculate the difference between the found value and the value of the array OutputCalPOS0 that has the same index. 3. Corr1 = difference / 32 4. Convert the data to hexadecimal and write it to EEPROM. Repeat the four steps for each remaining correction factor (Corr0, Corr2, Corr3 Corr8). Example for Corr2: 1. In the Ideal_Pos0_Value array, the element with the value 16384 is found and the Index_calc = 85 (see Table 3.) 2. In Table 3, the value of the array OutputCalPOS0 at index = 85 is equal to 14094. 3. The difference between these two values divided by 32 is the correction factor for Corr2. (16383.75 14094) / 32 = 71.553 4. Convert the data to hexadecimal and write it to EEPROM. 7. Revision History March 7, 2018 Revision Date Initial release. Description of Change Corporate Headquarters 6024 Silver Creek Valley Road San Jose, CA 95138 www.idt.com Sales 1-800-345-7015 or 408-284-8200 Fax: 408-284-2775 www.idt.com/go/sales Tech Support www.idt.com/go/support DISCLAIMER Integrated Device Technology, Inc. (IDT) and its affiliated companies (herein referred to as IDT ) reserve the ri ght to modify the products and/or specifications described herein at any time, without notice, at IDT's sole discretion. Performance specifications and operating parameters of the described products are d etermined in an independent state and are not guaranteed to perform the same way when installed in customer products. The information contained herein is provided without representation or warranty of any kind, whether express or implied, including, but not limited to, the suitability of IDT's products for any particular purpose, an implied warranty of merchantability, or non-infringement of the intellectual property rights of others. This document is presented only as a guide and does not convey any license under intellectual property rights of IDT or any third parties. IDT's products are not intended for use in applications involving extreme environmental conditions or in life support systems or similar devices where the failure or malfunction of an IDT product can be reasonably expected to significantly affect the health or safety of users. Anyone using an IDT product in such a manner does so at their own risk, absent an express, written agreement by IDT. Integrated Device Technology, IDT and the IDT logo are trademarks or registered trademarks of IDT and its subsidiaries in the United States and other countries. Other trademarks used herein are the property of IDT or their respective third party owners. For datasheet type definitions and a glossary of common terms, visit www.idt.com/go/glossary. All contents of this document are copyright of Integrated Device Technology, Inc. All rights reserved. 2018 Integrated Device Technology, Inc. 11 March 7, 2018