Infineon TLE5014P16 User Manual

Gmr-based angle sensor

Advertisement

Quick Links

T L E 5 0 1 4
GMR-Based Angle Sensor
User's Manual
About this document
Scope and purpose
This document covers the TLE5014 with the different interfaces SENT, SPC, PWM and SICI. It provides further
information what should be considered using this sensor in an application and how to program it.
Intended audience
This document is aimed at experienced hardware and software engineers using the TLE5014 iGMR angle
sensor.
This documents contains information for the following devices:
Table 1
Derivatives covered by this user manual
Product Type
Marking
TLE5014P16
014P
TLE5014S16
014S
TLE5014C16
014C
TLE5014S16D
014SD
TLE5014C16D
014CD
TLE5014P16D
014PD
User's Manual
www.infineon.com/sensors
Ordering Code
Package
SP001231814
PG-TDSO-16
SP001231818
PG-TDSO-16
SP001231806
PG-TDSO-16
SP001410046
PG-TDSO-16
SP001410042
PG-TDSO-16
SP001673472
PG-TDSO-16
1
Comment
PWM Interface, single die
SENT Interface, single die
SPC Interface, single die
SENT Interface, dual die
SPC Interface, dual die
PWM Interface, dual die
Rev. 1.0
2019-03-12

Advertisement

Table of Contents
loading

Summary of Contents for Infineon TLE5014P16

  • Page 1 This documents contains information for the following devices: Table 1 Derivatives covered by this user manual Product Type Marking Ordering Code Package Comment TLE5014P16 014P SP001231814 PG-TDSO-16 PWM Interface, single die TLE5014S16 014S SP001231818 PG-TDSO-16 SENT Interface, single die...
  • Page 2: Table Of Contents

    TLE5014 GMR-Based Angle Sensor Table of Contents Application Circuits ............. . . 4 Interfaces overview .
  • Page 3 TLE5014 GMR-Based Angle Sensor Reading EEPROM with SICI ............. . . 49 Writing EEPROM with SICI .
  • Page 4: Application Circuits

    TLE5014 GMR-Based Angle Sensor Application Circuits Application Circuits The application circuits in this chapter show the various communication possibilities of the TLE5014. Figure 1 shows a basic application circuit of a TLE5014 with PWM interface. The pull-down resistor is required to ensure that the sensor starts with a low level after power-on or reset (PWM starts with a rising edge).
  • Page 5 TLE5014 GMR-Based Angle Sensor Application Circuits µC TLE501 4 µControlle r Master 100nF 2.2n 100p Figure 3 Application circuit for TLE5014 with SENT User’s Manual Rev. 1.0 2019-03-12...
  • Page 6: Interfaces Overview

    TLE5014 GMR-Based Angle Sensor Interfaces overview Interfaces overview Depending on the application, the TLE5014 is available with different interfaces: • PWM (Pulse Width Modulation) • SPC (Short PWM Code) • SENT (Single Edge Nibble Transmission) • SICI (Single-wire Interface for Calibration and Inspection; for programming purpose only) The PWM is an unidirectional interface.
  • Page 7: Spc Interface Configuration

    TLE5014 GMR-Based Angle Sensor Interfaces overview Table 2 PWM Interface configuration (cont’d) Parameter EEPROM Description Register PWM diagnostic duty cycle high 0x0066 This value determines the duty cycle which indicates a sensor reset or a sensor start-up error (BIST error) PWM predevider for PWM period 0x0068 This value is used for PWM frequency adjustment according Equation (4.1)
  • Page 8 The address of the sensor, so that it responds to a corresponding SPC trigger pulse, has to be set in the EEPROM. All parts delivered from Infineon have the default address of ID = 0 in the EEPROM. Please refer to...
  • Page 9 TLE5014 GMR-Based Angle Sensor Interfaces overview SPC status nibble The 4-bit status nibble of the SPC protocol has different content depending on SPC protocol configuration: • No short serial message: Table 5 SPC Status Nibble Description 0 (LSB) Sensor ID (LSB) Sensor ID (MSB) Internal sensor failure 3 (MSB)
  • Page 10 TLE5014 GMR-Based Angle Sensor Interfaces overview Table 7 Examples for ID Nibble, RC_Nibble and ID_RC_Nibble calculation ID_Nibble RC_Nibble RC_ID_Nibble – 0000 – – – 0001 – – – 0010 – – – 0011 – – – – 0000 – – –...
  • Page 11: Sent Interface Configuration

    TLE5014 GMR-Based Angle Sensor Interfaces overview //Seed value = 0x5 uint8_t crc = 0x5; for(uint8_t i=0;i<nb_nibble;i++){ crc = nibble[i] ^ cr4Table[crc]; //Final XOR crc = 0x0 ^ cr4Table[crc]; SENT Interface Configuration The following table shows the different options for SENT interface configuration. Table 8 SENT Interface configuration Parameter...
  • Page 12 TLE5014 GMR-Based Angle Sensor Interfaces overview CRC calculation for SENT protocol The checksum nibble is a 4-bit CRC of the data nibbles and does not include the status nibble (different to SPC CRC implementation). The CRC is calculated using a polynomial x4+x3+x2+1 with a seed value of 0101 .
  • Page 13: Eeprom

    Care shall be taken when the EEPROM configuration is changed, as not all possible configurations are released by Infineon. This means, that they can be used for testing purpose but not necessarily for production. All released configurations can be found in the TLE5014 datasheet.
  • Page 14 TLE5014 GMR-Based Angle Sensor EEPROM Page Map Table 10 EEPROM page map (cont’d) Page EEPROM Name Description Default value of Reg. Register 0x009 0x0090 – Reserved 0x0092 – Reserved 0x0094 – Reserved 0x0096 ACSTAT Activation of internal safety mechanism 0x0098 MOD1 3 V/5 V, pad configuration, LUT options 0x009A...
  • Page 15 TLE5014 GMR-Based Angle Sensor EEPROM Page Map Table 10 EEPROM page map (cont’d) Page EEPROM Name Description Default value of Reg. Register 0x00D 0x00D0 LUT_16 Look-up table value for 180.00° 0x00D2 LUT_17 Look-up table value for 191.25° 0x00D4 LUT_18 Look-up table value for 202.50° 0x00D6 LUT_19 Look-up table value for 213.75°...
  • Page 16 TLE5014 GMR-Based Angle Sensor EEPROM Page Map Page 0x006 0x0060 OUT_LIM_MIN 0x0062 OUT_LIM_MAX 0x0064 OUT_STAT_L 0x0066 OUT_STAT_H 0x0068 TMR_PREDIV 0x006A TMR_PERIOD 0x006C 0x006E CRC_EEP Page 0x009 0x0090 0x0092 0x0094 0x0096 ACSTAT 0x0098 MOD1 0x009A MOD2 0x009C IF123_CFG 0x009E IFABC_CFG Page 0x00A 0x00A0 ANG_BASE ANG_DIR...
  • Page 17: Eeprom Register Description

    TLE5014 GMR-Based Angle Sensor EEPROM Register Description EEPROM Register Description This chapter describes the EEPROM registers which can be accessed via SICI in the EEPROM programming mode. Further registers needed for EEPROM programming are described in Chapter 7.1. Care shall be taken that there is no unintended modification of bits. When modifying registers, reserved bits have to be read and written back with the same value.
  • Page 18 TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description OUT_STAT_L 13:0 Low value of diagnostic duty cycle; 0% … 100% mapped to 0 … 16383 EEPROM Register Address 0x0066 OUT_STAT_H OUT_STAT_H Field Bits Type Description OUT_STAT_H 13:0 High value of diagnostic duty cycle; 0% … 100% mapped to 0 … 16383 EEPROM Register Address 0x0068 TMR_PREDIV TMR_PREDIV Field...
  • Page 19: Page 0X009

    TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description CRC_EEP CRC has to be calculated with following values: page 0x002 & 0x003 & 0x004 & 0x005 & register 0x0060 & 0x0062 & 0x0064 & 0x0066 & 0x0068 & 0x006A & 0x006C & first byte of 0x006E (bit [15:8]) The PWM frequency of the PWM output can be programmed with the two parameters TMR_PREDIV and TMR_PERIOD according to the following Equation...
  • Page 20 TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description IFMD_ABC For test purpose only IFMD_123 For test purpose only Description EEPROM Register Address 0x009A MOD2 MOD2 Field Bits Type Description MOD2 15:0 Lock register for 0x00A2. The bits in this registers are connected with a logical AND function with the corresponding bit in 0x00A2.
  • Page 21 TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description IF3_CFG For test purpose only IF2_OD IF2 open drain enable: Disable (Push-Pull) Enable (Open Drain) IF2_CFG For test purpose only IF1_OD IF1 open drain enable: Disable (Push-Pull) Enable (Open Drain) IF1_CFG For test purpose only Description EEPROM Register Address 0x009E IFABC_CFG...
  • Page 22: Page 0X00A

    TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description IFA_OD IFA open drain enable: Disable (Push-Pull) Enable (Open Drain) IFA_CFG For test purpose only Page 0x00A Care has be taken that there is no unintended modification of bits. When modifying registers, reserved bits have to be read and written back with the same value.
  • Page 23 TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description PWI_MODE 15:13 Interface selection (Only available for Product Type: TLE5014F16D): 100: 010: SENT 001: PWM _EDGE PWM starting edge: Rising edge Falling edge SENT/SPC_LT_ SENT/SPC low time: 5 UT 3 UT SPC_TEMP Temperature information in SPC protocol:...
  • Page 24: Page 0X00B - 0X00E

    TLE5014 GMR-Based Angle Sensor EEPROM Register Description Field Bits Type Description SENT/SPC_PWI _SSM SENT/SPC short serial message: No short serial message Short serial message activated SENT/SPC_UT SENT/SPC unit time setting: 000: 3 µs 001: 2.5 µs 010: 2.0 µs 011: 1.5 µs 100: 1.0 µs...
  • Page 25 TLE5014 GMR-Based Angle Sensor EEPROM Register Description Description EEPROM Address 0x00F0 CRC_LUT CRC_LUT Field Bits Type Description CRC_LUT 8-bit CRC has to be calculated with following values: Page 0x00B & 0x00C & 0x00D & 0x00E & first byte of 0x00F0 (bits [15:8]) In the EEPROM registers 0x00F2 to 0x00FE the customer ID is stored.
  • Page 26: Working Register Description

    TLE5014 GMR-Based Angle Sensor Working Register Description Working Register Description This chapter describes the working registers which can be read with the SICI interface. These registers are updated with the time t , which is approximately 25 µs. update STAT Register 0x00: Status This register provides detailed information on sensor status and internal sensor errors.
  • Page 27: Aval Register 0X02: Angle Value

    TLE5014 GMR-Based Angle Sensor Working Register Description Field Bits Type Description S_VR Bit is a combination of several voltage checks S_WD Bit is set when the last reset happened due to a watchdog event S_PLAUSI Bit is set when the redundant angle calculation is failing the limits S_RST Reset occurred AVAL Register 0x02: Angle Value...
  • Page 28: Raw_X Register 0X06: X Raw Value

    TLE5014 GMR-Based Angle Sensor Working Register Description Field Bits Type Description RD_ASPD Read angle speed Read bit that indicates that the bits in the ASPD-register are updated since last readout by interface 14:12 Reserved ASPD 11:0 Angle speed Calculated angle speed signed 12-bit value 360°...
  • Page 29: Temp Register 0X0A: Temperature Raw Value

    TLE5014 GMR-Based Angle Sensor Working Register Description TEMP Register 0x0A: Temperature raw value This register provides the actual raw temperature value. To calculate the actual temperature, the temperature offset has to be determined. This is done by reading the register once at a known temperature (e.g. 25°C) This value is then TEMPER_25 and the offset corrected temperature can be calculated using the formula below.
  • Page 30 TLE5014 GMR-Based Angle Sensor Working Register Description Field Bits Type Description ANG_BASE 15:2 Angle base signed 14 bit zero angle value. Output angle is referring to this angle base 0x0000 = 0°, 0x2000 = -180°, 0x1FFF = +179,978°, 0x001 = 0,02197° ANG_DIR Direction of the angle rotation 0 = clockwise...
  • Page 31: Sici

    TLE5014 GMR-Based Angle Sensor SICI SICI Basic Functionality The SICI interface (SICI: Single-Wire Interface for Calibration and Inspection) is a one-wire programming interface that allows read and write access to the working registers and EEPROM registers of the sensor. It is bidirectional for every transferred bit, meaning that for every single bit sent by the master one bit is immediately sent back from the slave.
  • Page 32 TLE5014 GMR-Based Angle Sensor SICI ΔT = T – 2*T ΔT = 2*T ΔT master pulls low line is released Figure 6 Timing description of master bit After receiving a bit from the master, the sensor answers by transmitting one bit: •...
  • Page 33 TLE5014 GMR-Based Angle Sensor SICI ΔT ΔT 1 from master 0 from master 1 from sensor 0 from sensor master pulls low sensor pulls low line is released Figure 8 SICI communication example The transmission rate of the interface is determined by the width T of the PWM signal sent by the master. A maximum transmission speed of 240 kbit/s can be reached for T = 2 µs.
  • Page 34: Communication Protocol

    TLE5014 GMR-Based Angle Sensor SICI To enter the programming mode of TLE5014 some dedicated commands have to be sent within the start-up time of the sensor (see Chapter 6.2.4).Thus, not all possible settings of the SICI timing parameters (e.g. T, T1, T2, …) can be used with TLE5014.
  • Page 35 TLE5014 GMR-Based Angle Sensor SICI Table 13 Structure of the Command Word Name Bits Description [15] Read - Write 0: Write 1: Read PRTY [14] Command Parity Odd parity of all command word bits. Number of “1”s including parity has to be odd [13] Command Mode...
  • Page 36: Crc Generation

    TLE5014 GMR-Based Angle Sensor SICI Table 14 Structure of the Safety Word Name Bits Description STAT Chip and Interface Status [15] Indication of Chip-Reset or watchdog was activated 0: Reset occurred or watchdog was activated 1: No reset [14] System Error (e.g. Overvoltage; Undervoltage; GND- off; CRC) 0: Error occurred 1: No error [13]...
  • Page 37: Sici Application Example: Eeprom Read/Write

    TLE5014 GMR-Based Angle Sensor SICI In the application, the chip will switch into SENT/SPC/PWM mode (depending on pre programmed configuration) after startup. Therefore the SICI can only be entered during startup and internal settings have to be modified to keep the SICI in case it shall be used for programming purpose. The following sequence has to be performed to read a register (angle value register AVAL 0x02 in this example): Power on the sensor, wait at least 10 µs to allow the internal voltages to stabilize: •...
  • Page 38: Sici Programming In Bus Mode

    TLE5014 GMR-Based Angle Sensor SICI SICI Programming in Bus Mode In case several sensors (up to 4) are connected in a bus mode with the SPC interface, the EEPROM read/write via SICI has to be performed in the bus mode configuration. For this purpose, to each individual sensor an address has to be assigned which is done by the external wiring of the pins IF1, IF2 and IFC on the PCB as described in the data sheet and in Table 4...
  • Page 39: Eeprom Programming

    TLE5014 GMR-Based Angle Sensor EEPROM Programming EEPROM Programming The EEPROM of the TLE5014 consists of user accessible and locked pages with eight 16-bit data words each. To access a page of the EEPROM, the page is mapped onto a range of registers, which can then be read or written via the SICI interface.
  • Page 40: Verification Of Eeprom

    TLE5014 GMR-Based Angle Sensor EEPROM Programming Changing the configuration of the TLE5014 without updating the corresponding checksum results in a CRC error, which is indicated. EEPROM Timing Table 11 gives the timing specification for reading and programming the EEPROM. Table 15 EEPROM timing specification Parameter Symbol...
  • Page 41 TLE5014 GMR-Based Angle Sensor EEPROM Programming • Power on the sensor, wait at least 10 µs to allow the internal voltages to stabilize • Write unlock word 0x4711 to 0x77 to enable access to the registers: – WRITE-CMD to 0x77: 0x0771 –...
  • Page 42: Initial Calibration

    TLE5014 GMR-Based Angle Sensor Initial Calibration Initial Calibration This chapter describes which initial calibration has to be performed with the TLE5014. Zero Angle Calibration The zero angle (or angle base) is stored in the bits [15:3] of address 0x00A0 of the EEPROM as a 14-bit value (see Description EEPROM Address 0x00A0 ANG_BASE).
  • Page 43: Customer Id

    The default value is the ideal angle value at the defined position, e.g. address 0x00B0: 0°, 0x00B2: 11.25°, … The chip is delivered from Infineon with the default values already written to the look-up table. An example how to use the look-up table can be found in Chapter 9.3.
  • Page 44: Examples

    TLE5014 GMR-Based Angle Sensor Examples Examples The following chapter provides some practical examples. Angle Read Out Value Angle value read-out with SICI, register 0x02 Please refer to Chapter 6.2.4 on how to read registers with SICI. In the register 0x02, the angle value is stored as a 15-bit value in bit [14:0]. It is described as a signed register, the angle value is stored as Two’s complement.
  • Page 45: Angle Base Calculation

    TLE5014 GMR-Based Angle Sensor Examples 360° Angle ° [ ] ----------- - readout LSB 12 ] ⋅ 4096 SENT with error code 4091 in data range In case the sensor is configured to SENT interface with the option of “4091” as error code in the data range, the calculation has to be modified as in this case not the complete 12 bit are available for sensor output.
  • Page 46: Look-Up Table Calculation

    TLE5014 GMR-Based Angle Sensor Examples Table 16 Example for Angle Base Calculation (cont’d) Value decimal Value HEX Description 8194 0x2002 Add 2 for setting bit [1] (rotation direction clockwise) 8194 0x2002 Value to be burned to EEPROM address 0x00A4 in case rotation direction is cw In case the sensor is configured to SENT interface with the option of “4091”...
  • Page 47 TLE5014 GMR-Based Angle Sensor Examples The formula for calculating the look-up (LUT) correction values is as follows: (9.7) ⋅ ⋅ LUT LSB 16 2 POSITION LSB 16 – 16 readout LSB 12 With: • LUT[LSB ]: Calculated 16-bit value which has to be stored in the corresponding address of the LUT •...
  • Page 48: Temperature Calculation From Short Serial Message

    TLE5014 GMR-Based Angle Sensor Examples In case the look-up table is used for sensor output linearization, the angle base (angle offset) has to be corrected first by programming the angle base register 0x00A0. After defining the correction values for the look-up table, the angle base shall not be changed as this will introduce additional angle error.
  • Page 49: Reading Eeprom With Sici

    TLE5014 GMR-Based Angle Sensor Examples Table 21 Reading of angle value (AVAL register, 0x02) (cont’d) Type Command Data Comment sensor stays in this mode with SICI interface enabled. To return to normal interface, sensor reset is necessary (can be done by power-down or sending the reset command 0x0001 to address 0x01: write 0x4011 0x0001...
  • Page 50: Writing Eeprom With Sici

    TLE5014 GMR-Based Angle Sensor Examples Table 22 Reading of EEPROM page 0x006) (cont’d) Type Command Data Comment read 0x8671 DATA Ready DATA from register 0x67, corresponds to content of EEPROM address 0x006E Sensor stays in this mode with SICI interface enabled. To return to normal interface, sensor reset is necessary (can be done by power-down or sending the reset command 0x0001 to address 0x01: write 0x4011...
  • Page 51 TLE5014 GMR-Based Angle Sensor Examples Table 23 Writing of EEPROM page 0x006) (cont’d) Type Command Data Comment write 0x4671 newDATA Writes newDATA to register 0x67, corresponds to intended new content of EEPROM address 0x006E write 0x4681 0x03FF Prepare EEPROM programing write 0x4671 0x0009...
  • Page 52: Revision History

    TLE5014 GMR-Based Angle Sensor Revision History Revision History Revision Date Changes 2019-03-12 Initial release User’s Manual Rev. 1.0 2019-03-12...
  • Page 53 Infineon Technologies, The data contained in this document is exclusively Infineon Technologies’ products may not be used in intended for technically trained staff. It is the Document reference any applications where a failure of the product or any responsibility of customer’s technical departments to...

This manual is also suitable for:

Tle5014s16Tle5014c16Tle5014s16dTle5014c16dTle5014p16d

Table of Contents