Infineon Technologies TLE5012B User Manual

Angle sensor gmr-based angle sensor
Table of Contents

Advertisement

A n g l e S e n s o r
GMR-Based Angle Sensor
T L E 5 0 1 2 B
U s e r ' s M a n u a l
Rev. 1.2, 2018-02
User's Manual
S e n s e & C o n t r o l

Advertisement

Table of Contents
loading

Summary of Contents for Infineon Technologies TLE5012B

  • Page 1 A n g l e S e n s o r GMR-Based Angle Sensor T L E 5 0 1 2 B U s e r ’ s M a n u a l Rev. 1.2, 2018-02 User’s Manual S e n s e & C o n t r o l...
  • Page 2 Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life.
  • Page 3 Add explanation when ANG_DIR = 1 Figure 6-1 Update STAT register Chapter 3 Uptade Chapter 3 Chapter 5.6 Add footnote regarding maximum rotation speed Chapter 6.2.1 Update S_MAGOL definition Trademarks of Infineon Technologies AG AURIX™, C166™, CanPAK™, CIPOS™, CIPURSE™, EconoPACK™, CoolMOS™, CoolSET™, CORECONTROL™, CROSSAVE™, DAVE™, DI-POL™, EasyPIM™, EconoBRIDGE™, EconoDUAL™,...
  • Page 4: Table Of Contents

    TLE5012B in bus mode ........
  • Page 5 TLE5012B Table of Contents Pulse Width Modulation Interface ........... . 46 Short PWM Code (SPC) .
  • Page 6: List Of Figures

    Figure 3-1 Application circuit for TLE5012B with IIF interface and SSC ......17 Figure 3-2 Application circuit for TLE5012B with HSM interface (push-pull configuration) and SSC .
  • Page 7 TLE5012B List of Figures Figure 5-27 Phase A/B output during a rotation direction change due to the hysteresis threshold ..62 Figure 6-1 Bitmap Part 1 ..............64 Figure 6-2 Bitmap Part 2 .
  • Page 8: List Of Tables

    TLE5012B List of Tables List of Tables Table 2-1 Pin Description ..............16 Table 4-1 Initialization via SSC / SPI to change ANG_DIR .
  • Page 9: Product Description

    Figure 1-1 PG-DSO-8 package Overview The TLE5012B is a 360° angle sensor that detects the orientation of a magnetic field. This is achieved by measuring sine and cosine angle components with monolithically integrated Giant Magneto Resistance (iGMR) elements. These raw signals (sine and cosine) are digitally processed internally to calculate the angle orientation of the magnetic field (magnet).
  • Page 10: Features

    RoHS compliant (Pb-free package) • Halogen-free Application Example The TLE5012B GMR-based angle sensor is designed for angular position sensing in automotive applications such • Electrically commutated motor (e.g. Electric Power Steering (EPS), Brushless DC electric motors (BLDC)) • Rotary switches •...
  • Page 11: Functional Description

    Oscillator and PLL The digital clock of the TLE5012B is provided by the Phase-Locked Loop (PLL), which is by default fed by an internal oscillator. In order to synchronize the TLE5012B with other ICs in a system, the TLE5012B can be User’s Manual...
  • Page 12: Sd-Adc

    RAM at startup Laser fuses configuration The laser fuse settings are derivate specific. During production, each and every TLE5012B chip is specifically configured according to a derivate interface (PWM, SPC, HSM or IIF) and to its specific calibration values (e.g.
  • Page 13: Interfaces

    TLE5012B Functional Description 2.2.5 Interfaces Bi-directional communication with the TLE5012B is enabled by a three-wire SSC interface. In parallel to the SSC interface, one secondary interface can be selected, which is available on the IFA, IFB, IFC pins: • •...
  • Page 14: Sensing Principle

    The Giant Magneto Resistance (GMR) sensor is implemented using vertical integration. This means that the GMR-sensitive areas are integrated above the logic part of the TLE5012B device. These GMR elements change their resistance depending on the direction of the magnetic field.
  • Page 15: Figure 2-5 Ideal Output Of The Gmr Sensor Bridges

    TLE5012B Functional Description Y Component (SIN) X Component (COS) (COS) 0° 90° 180° 270° 360° Angle α (SIN) Figure 2-5 Ideal output of the GMR sensor bridges User’s Manual Rev. 1.2, 2018-02...
  • Page 16: Pin Configuration

    TLE5012B Functional Description Pin Configuration Center of Sensitive Area Figure 2-6 Pin configuration (top view) Pin Description Table 2-1 Pin Description Pin No. Symbol In/Out Function Interface C: (CLK / IIF_IDX / HS3) External Clock / IIF Index / Hall Switch...
  • Page 17: Application Circuits

    TLE5012B with Incremental Interface (IIF) and SSC interface. The derivate TLE5012B - E1000 is by default configured with push-pull IFA (IIF_A), IFB (IIF_ B) and IFC (IIF_IDX) pins. When the output pins are configurated as open-drain, three pull-up resistors should be added (e.g. 2k2Ω) between the data lines and VDD.
  • Page 18: Hsm Interface And Ssc (Hsm In Open-Drain Configuration)

    (HS3) Rs1 recommended, e.g. 100Ω Rs2 recommended, e.g. 470Ω Rpu required, e.g. 2K2Ω Figure 3-3 Application circuit for TLE5012B with HSM interface (open-drain configuration) and SSC PWM interface (push-pull configuration) The TLE5012B can be configured with PWM only (Figure 3-4). The derivate TLE5012B - E5000 is by default configurated with push-pull configuration for IFA (PWM) pin.
  • Page 19: Pwm Interface (Open-Drain Configuration)

    Application Circuits PWM interface (open-drain configuration) The TLE5012B - E5020 is also a PWM derivate but with open drain for IFA (PWM) pin. A pull-up resistor (e.g. 2.2kΩ) should be added between the IFA line and VDD, as shown in Figure 3-5.
  • Page 20: Ssc Interface (Push-Pull Configuration)

    It is possible to use an open-drain configuration for the DATA line. This setup can be used to communicate with a microcontroller in a bus system, together with other SSC slaves (e.g. two TLE5012B devices for redundancy reasons). This mode can be activated using the bit SSC_OD.
  • Page 21: Sensor Supply In Bus Mode

    TLE5012B Application Circuits Sensor supply in bus mode When using two or more devices in a bus configuration (SSC or SPC interface). It is recommended to use the same supply for every sensors connected to the bus. In case of a power loss the unpowered device is sinking current through the OUT pin.
  • Page 22: Specification

    Autocalibration enables online parameter calculation, and therefore reduces angle error due to temperature and lifetime drifts. The TLE5012B is a pre-calibrated sensor; at start-up the parameters stored in the laser fuses are loaded into flip- flops. During operation, the TLE5012B needs 1.5 revolutions to generate new autocalibration parameters. The parameters are updated with new autocalibration parameters according to the mode selected via the AUTOCAL bits (Mode 2 register).
  • Page 23: Figure 4-3 Parameter Correction With Autocalibration Mode 3

    Thus, autocalibration should only be used in applications where the magnet regularly rotates by at least one full turn (internal TLE5012B check of full turn requires maximum 1.5 revolutions) at a temperature which is constant within 5 Kelvin.
  • Page 24: Table 4-1 Initialization Via Ssc / Spi To Change Ang_Dir

    TLE5012B Specification Table 4-1 Initialization via SSC / SPI to change ANG_DIR Step Command type Register Value Description 0 (default) - MOD_2 0x0801 Angle Range = 360°, Angle Direction = counter clockwise, Autocal = on This is the default value.
  • Page 25: Angle Error Adder With Autocalibration Enabled

    The angle error adder is described in the TLE5012B Data Sheet (Figure 4-3, page #25 on the TLE5012B Data Sheet, Rev. 2.0 from 2014-02) and depends on the initial temperature. To read the right angle error adder select the initial temperature and move through the x-axis as many degrees as the delta between the final temperature and the initial temperature.
  • Page 26: Prediction Mode

    Specification Prediction mode The TLE5012B has an optional prediction feature, which serves to reduce the speed dependent angle error in applications where the rotation speed does not change abruptly. Prediction (enable PREDICT bit on MOD_2 register) uses the difference between current and last two angle values to approximate the angle value which will...
  • Page 27: Calculation Of The Junction Temperature

    × ⎢ ⎣ ⎥ ⎦ Calculation of the Temperature The TLE5012B provides the temperature in the TEMPER bits of the FSYNC register via the SSC interface (see Chapter 6.2) or with an extended SPC frame (see Table 5-8). TEMPER is a compensated value of the temperature at the ADC.
  • Page 28: Switching To External Clock

    Switching to external clock External clock operation is possible for the interface configurations SSC only, SSC & PWM, and SSC & SPC. To switch the TLE5012B to external clock supply the following procedure is used: • Trigger a chip reset by writing a “1” to the AS_RST bit (address 01 [0]) via SSC interface •...
  • Page 29: Interfaces

    Redundancy Check) and secure communication (use of the Safety Word after data transfer). Up to 4 sensors can be used with SSC. SSC is meant for short distances (TLE5012B and ECU to be placed on the same PCB) PWM: the PWM is an unidirectional interface. Only one line is needed in which the angle value is transmitted. The angle value corresponds to the duty cycle of the signal, with 0°...
  • Page 30: Table 5-1 Main Interface Characteristics

    Based on SENT Emulates (three) 3-wire SPI Encoder protocol Hall Switches 1) Not subject to production test. Distance subject to application circuit and environment. 2) Communication lines between slave (TLE5012B) and master (microcontroller). External clock not included User’s Manual Rev. 1.2, 2018-02...
  • Page 31: Synchronous Serial Communication (Ssc) Interface

    SCKl DATA DATAs DATAh Figure 5-1 SSC timing SSC Inactive Time (CS The SSC inactive time defines the delay time after a transfer before the TLE5012B can be selected again. Table 5-2 SSC push-pull timing specification Parameter Symbol Values Unit Note / Test Condition Min.
  • Page 32: Table 5-3 Ssc Open-Drain Timing Specification

    TLE5012B Interfaces Table 5-3 SSC open-drain timing specification Parameter Symbol Values Unit Note / Test Condition Min. Typ. Max. SSC baud rate Mbit/s Pull-up Resistor = 1kΩ CSQ setup time CSQ hold time CSQ off SSC inactive time CSoff SCK period...
  • Page 33: Ssc Data Transfer

    SSC-Slave is driving DAT A Figure 5-3 SSC data transfer (data-write example) Command Word SSC Communication between the TLE5012B and a microcontroller is generally initiated by a command word. The structure of the command word is shown in Table 5-4, where the Update (UPD) bit allows the access to current values or updated values.
  • Page 34: Table 5-5 Structure Of The Safety Word

    TLE5012B Interfaces Table 5-4 Structure of the Command Word (cont’d) Name Bits Description [10] Update-Register Access 0: Access to current values 1: Access to values in update buffer ADDR [9..4] 6-bit Address [3..0] 4-bit Number of Data Words (if bits set to 0000...
  • Page 35: Figure 5-4 Ssc Bit Ordering (Read Example)

    CSoff • By default, the SSC interface is set to push-pull. The push-pull driver is active only if the TLE5012B has to send data, otherwise the DATA pin is set to high-impedance. User’s Manual Rev. 1.2, 2018-02...
  • Page 36: Tle5012B In Bus Mode

    Figure 5-6 Example of four slaves connected to a bus with one master with SSC interface The TLE5012B particularity is that it is a 3-pin SSC (SPI) slave. One of these pins is for the Clock, another one is for the Chip Select and the third one is for the Data (input and output). Since there is only one pin for the Data, the output and input of the master have to be connected.
  • Page 37: Cyclic Redundancy Check (Crc)

    SSC data transfer consists of a command word and a write data word send by the master (microcrontroller) followed by a safety word -which contains the CRC- send by the slave (TLE5012B). The command word 5081 indicates that a write data word (MSB of the command word at “0”) will follow and that...
  • Page 38: Figure 5-9 Crc Generation Example With Ssc Interface

    TLE5012B Interfaces genarator polynomial always has to be aligned to the non-zero MSB of the dataset. Finally the CRC value (line 33) has to be inverted (XOR with a all “1”s polynominal) to generate the Inverted Remainder (line 34). COMMAND...
  • Page 39 //“crc” is calculated as the XOR operation from the previous “crc” and the generator //polynomial (0x1D for TLE5012B). Be aware that here the x8 bit is not taken since //the MSB of the “crc” already has been deleted in the previous step.
  • Page 40 TLE5012B Interfaces //In case the crc MSB is 0. else //“crc” advances one position (this step is to ensure that the XOR operation is only //done when the generator polynomial is aligned with a MSB of the message that is “1”.
  • Page 41 Interfaces return(~crc); The look-up table -which depends on the CRC generator polynomial- required for the TLE5012B is as follows: //Look-up table (LUT) for the TLE5012B with generator polynomial 100011101 (0x11D). //As this table will be checked byte by byte, each byte has 256 possible values (2^8) //for its CRC calculation with the given generator polynomial.
  • Page 42 The CRC generation software code provided above shall be used as guidance to the developer of solutions with the TLE5012B. Infineon is not responsible for malfunctioning of the code provided above. This code was used with an Infineon's microcontroller XC878.
  • Page 43: Angle Calculation With X-Raw And Y-Raw Values

    For safety checks and other purposes, it is also possible to calculate the angle value in a microcontroller by reading the X-raw and Y-raw values from the TLE5012B. The raw values have to be compensated by either calculating the offset, amplitude and phase parameters or by reading the registers which contain the pre-calibrated values.
  • Page 44 TLE5012B Interfaces After the X and Y values are read out, the temperature-corrected offset value must be subtracted: − − (5.2) X_RAW and Y_RAW are 16 bit values at which a 12 bit value is subtracted. Offsets are in the 12 bit range since the values are smaller than the whole X_RAW and Y_RAW range.
  • Page 45: Angle Calculation With End-Of-Line Calibration Values

    Figure 5-10 Flow-Chart of Angle Calculation from the X-raw and Y-raw values 5.2.5.2 Angle Calculation with end-of-line calibration values The TLE5012B already has pre-calibrated compensation parameters which can be used to calculate the angle value (see Chapter 5.2.5.1). Own compensation parameters can also be calculated end-of-line if desired. In that...
  • Page 46: Pulse Width Modulation Interface

    5-7). As long as a fault is present, the error information will be transmitted in PWM frames. This diagnostic function can be disabled via the MOD_4 register (see Chapter 6.2). Sensors with preset PWM are available as TLE5012B E5xxx. The register settings for these sensors can be found Chapter 6.2. ON = High level OFF = Low level Duty cycle = 6.25%...
  • Page 47: Table 5-7 Pwm Interface

    TLE5012B with resolution up to 0.100°. The 0.100° resolution is due to the fact that with 12bit resolution (4096 steps) 100% of the duty cycle can be mapped, but only 87.5% of the duty cycle translates to angle values.
  • Page 48: Short Pwm Code (Spc)

    TLE5012B Interfaces Short PWM Code (SPC) The Short PWM Code (SPC) is a synchronized data transmission based on the SENT protocol (Single Edge Nibble Transmission) defined by SAE J2716. As opposed to SENT, which implies a continuous transmission of data, the SPC protocoll transmits data only after receiving a specific trigger pulse from the microcontroller. The required length of the trigger pulse depends on the sensor number, which is configurable.
  • Page 49: Figure 5-13 Spc Frame Example

    The frame contains a 16-bit angle value and an 8-bit temperature value in the full configuration (Table 5-8). Sensors with preset SPC are available as TLE5012B E9000. The register settings for these sensors can be found in the Chapter User’s Manual...
  • Page 50: Unit Time Setup

    TLE5012B Interfaces Table 5-8 Frame configuration Frame type IFAB_RES Data nibbles 12-bit angle 3 nibbles 16-bit angle 4 nibbles 12-bit angle, 8-bit temperature 5 nibbles 16-bit angle, 8-bit temperature 6 nibbles The status nibble, which is sent with each SPC data frame, provides an error indication similar to the Safety Word of the SSC protocol.
  • Page 51: Master Trigger Pulse Requirements

    TLE5012B Interfaces 5.4.2 Master Trigger Pulse Requirements An SPC transmission is initiated by a master trigger pulse on the IFA pin. To detect a low-level on the IFA pin, the voltage must be below a threshold V . The sensor detects that the IFA line has been released as soon as V crossed.
  • Page 52: Checksum Nibble Details

    XOR (line 5). 11101 Figure 5-17 TLE5012B’s CRC generator polynomial for the SPC interface From this point onwards, reiterative XOR logical operations between the data (result of the previous operation) and the generator polynomial are done till the remaining bits are equal or smaller than 0x0F (only 4 bits left).
  • Page 53 //“crc” is calculated as the XOR operation from the previous “crc” and the generator //polynomial (0x0D for TLE5012B). Be aware that here the x4 bit is not taken since //the MSB of the “crc” already has been deleted in the previous step.
  • Page 54 The CRC generation software code provided above shall be used as guidance to the developer of solutions with the TLE5012B. Infineon is not responsible for malfunctioning of the code provided above. This code was used with an Infineon's microcontroller XC878.
  • Page 55: Hall Switch Mode (Hsm)

    Hall Switch Mode (HSM) The Hall Switch Mode (HSM) within the TLE5012B makes it possible to emulate the output of 3 Hall switches. Hall switches are often used in electrical commutated motors to determine the rotor position. With these 3 output signals, the motor will be commutated in the right way.
  • Page 56 TLE5012B Interfaces Table 5-12 Hall Switch Mode (cont’d) Parameter Symbol Values Unit Note / Test Condition Min. Typ. Max. Electrical angle accuracy α 1 ° 1 pole pair with elect 1)2) autocalibration 1)2) 2 ° 2 pole pairs with autocal.
  • Page 57 TLE5012B Interfaces Table 5-12 Hall Switch Mode (cont’d) Parameter Symbol Values Unit Note / Test Condition Min. Typ. Max. Electrical angle switching α 0.70 ° 1 pole pair; HShystel 1)2) hysteresis IFAB_HYST=11 1.41 ° 2 pole pairs; 1)2) IFAB_HYST=11 2.11 °...
  • Page 58: Figure 5-20 Hs Hysteresis

    TLE5012B Interfaces Ideal Switching Point α α HShystel HShystel α α 0° elect elect Figure 5-20 HS hysteresis User’s Manual Rev. 1.2, 2018-02...
  • Page 59: Incremental Interface (Iif)

    The Index Signal that indicates the zero crossing is available on the IFC pin. Sensors with preset IIF are available as TLE5012B E1000. The register settings for these sensors can be found Chapter 6.2.
  • Page 60: Figure 5-23 Increcremental Interface Startup Pulses And First Step Movements At Different Speeds

    TLE5012B Interfaces Startup pulses Just after startup, in absolute mode (default mode in the register MOD_4, bits HSM_PLP), the IIF generates the number of pulses needed to count to the initial angle position on the shortest direction. These pulses may be...
  • Page 61: Figure 5-24 Increcremental Interface Startup Pulses Frequency

    TLE5012B Interfaces Phase B … … Phase A Remaining Maximum frequency (1MHz) pulses Figure 5-24 Increcremental Interface startup pulses frequency IIF Index The IFC pin -or IIF Index- generates one pulse at zero crossing. This output can be used as check or as comparison with the Phase A/Phase B outputs.
  • Page 62: Figure 5-26 Iif Index Pulse In Step/Direction Mode

    Hysteresis effect when changing rotation direction The TLE5012B has an hysteresis threshold to avoid pulsing unintended steps due to mechanical vibrations of the rotor or system. The default hysteresis is 0.703° and it can be changed in the register IFAB (IFAB_HYST). Once the hysteresis threshold is surpassed, the Phase A and Phase B output the missed steps and continue to work in their normal operation mode.
  • Page 63: Table 5-13 Incremental Interface

    TLE5012B Interfaces Table 5-13 Incremental Interface Parameter Symbol Values Unit Note / Test Condition Min. Typ. Max. Incremental output frequency 1.0 MHz Frequency of phase A and phase B μs Index pulse width 0° 0° 1) Not subject to production test - verified by design/characterization User’s Manual...
  • Page 64: Ssc Registers

    Registers Overview There are twenty-two documented registers, but only a few are relevant to read data or to configure the TLE5012B. Many extra features that are also documented may only be used in very specific cases. In the following bitmap the relevant bits can be identified.
  • Page 65: Figure 6-2 Bitmap Part 2

    TLE5012B SSC Registers OFFX (0B Y_OFFSET Offset Y Reg. SYNCH (0C SYNCH Synchronicity Reg. FIR_ IFAB IFAB (0D ORTHO IFAB_HYST IFAB Reg. MOD_4 (0E TCO_X_T HSM_PLP IFAB_RES IF_MD Interface Mode4 Reg. SBIS TCO_Y (0F TCO_Y_T CRC_PAR Temperature Coef. R. ADC_X (10 ADC_X X-raw value Reg.
  • Page 66 Interface mode: there are different TLE5012B derivates with different default interfaces. Still, the interface of the TLE5012B can also be chosen via SSC at start-up by setting the two IF_MD bits (bits 1:0) of the MOD_4 register ). At reset the default interface of the derivate is restored. It is recommended to configure any IF_MD setting early after a hardware reset to guarantee a correct switch to the desired interface mode.
  • Page 67: Bit Types

    TLE5012B SSC Registers 6.1.1 Bit Types The TLE5012B contains read, write and update registers as described in Table 6-1. Table 6-1 Bit Types Abbreviation Function Description Read Read-only registers Write Read and write registers Update Update buffer for this bit is present. If an update is triggered, the immediate values are stored in this update buffer simultaneously.
  • Page 68: Communication Examples

    TLE5012B SSC Registers 6.1.2 Communication Examples This chapter gives some short SSC communication examples. The sensor has to be selected first via CSQ, and SCK must be available for the communication. 1. Command: 1_0000_0_000010_0001 R/W_Lock_UPD_ADD_ND 2. Read Data: 1_xxxxxxxxxxxxxxx Transmit angle value Micro‐ TLE5012B controller 3. Safety Word: 1_1_1_1_xxxx_xxxxxxxx Transmit safety word Figure 6-4 SSC command to read angle value 1. Command: 1_0000_0_000011_0010...
  • Page 69: Figure 6-7 Ssc Data Transfer Sequence To Change A Configuration Parameter

    (for check) Figure 6-7 SSC data transfer sequence to change a configuration parameter In the following example the Incremental Interface resolution of a TLE5012B E1000 derivate will be changed from the default 0.088° (IFAB_RES bits 00 in the MOD_4 register) to 0.352° (IFAB_RES bits 10 ) via a SSC data tranfer.
  • Page 70: Signed Registers And Two's Complement

    TLE5012B SSC Registers 6.1.3 Signed registers and Two’s complement Many registers are described as signed registers. Data in the registers such as the Angle Speed and also configuration parameters such as the X and Y Offset, the Amplitude Synchronicity, Orthogonality Correction and the Offset Temperature Coefficients are, among others, signed registers.
  • Page 71: Zero Position Configuration

    ANG_BASE register and store the result in the non-volatile memory of the microcontroller. 5. On every start-up of the TLE5012B, write the stored value into the ANG_BASE register. The ANG_BASE register should be written before Autocalibration is enabled (so either disable Autocalibration to write this register, or write this register within the first 120µs after a hardware reset).
  • Page 72: Figure 6-10 Ssc Data Transfer To Configure The Zero Position

    TLE5012B SSC Registers Figure 6-10 shows an example with the register values when setting the angle 191.9° (or -168.1°) as the 0°- position when ANG_DIR = 0, Turn mechanical assembly to desired 0°-position COMMAND READ Data 1 SAFETY-WORD D021 C439 FE3D …...
  • Page 73: Registers Descriptions

    TLE5012B SSC Registers Registers Descriptions This section describes the registers of the TLE5012B and replaces the TLE5012B Register Setting document. It also defines the read/write access rights of the specific registers. Table 6-2 identifies the values with symbols. Access to the registers is accomplished via the SSC Interface.
  • Page 74 The reset values of certain registers (for example interface settings) are set by laser fuses which are specific for the employed derivate (Exxxx number) of the TLE5012B. In this case, the reset values in the register table are marked as “derivate-specific”. A list of specific reset values for all derivates is given in Chapter 7.6.
  • Page 75: Register Descriptions

    TLE5012B SSC Registers 6.2.1 Register Descriptions Status Register STAT Offset Reset Value Status Register 0000 RD_ST S_NR NO_GMR_A NO_GMR_XY S_ROM Reserved S_ADCT S_MAGOL S_VR S_XYOL S_OV S_DSPU S_FUSE S_WD S_RST Field Bits Type Description RD_ST Read Status status values not changed since last readout.
  • Page 76 TLE5012B SSC Registers Field Bits Type Description NO_GMR_XY No valid GMR XY Values Cyclic check of ADC input. Flag will be set as long as error persists and is not reset by SSC read-out. valid GMR_XY values on the ADC input and thus on filter output.
  • Page 77 TLE5012B SSC Registers Field Bits Type Description S_OV Status Overflow Cyclic check of DSPU overflow. This bit is updated based on the current angle value and thus the recommendation is to read it in update mode, if a consistent read-out is desired.
  • Page 78 TLE5012B SSC Registers Field Bits Type Description S_WD Status Watchdog Permanent check of watchdog. After watchdog-counter overflow, the DSPU stops. Deactivation via AS_WD normal operation watchdog counter expired (DSPU stop), AS_RST must be activated. Outputs deactivated, pull up/down active. Reset: 0...
  • Page 79 TLE5012B SSC Registers Activation Status Register ACSTAT Offset Reset Value Activation Status Register 18EE Reserved AS_FRST Reserved AS_ADCT AS_VEG_MAG AS_VEC_XY AS_VR AS_OV AS_DSPU AS_FUSE AS_WD AS_RST Field Bits Type Description 15:11 Reserved Reset: 00011 (during operation may change to 01011...
  • Page 80 TLE5012B SSC Registers Field Bits Type Description AS_DSPU Activation DSPU BIST after execution activation of DSPU BIST or BIST running Reset: 1 (for update buffer 0 if no update command send before) AS_FUSE Activation Fuse CRC A write in any of the fuse registers will set this bit automatically (automatically enabled by deactivation of AUTOCAL).
  • Page 81 TLE5012B SSC Registers Angle Value Register AVAL Offset Reset Value Angle Value Register 8000 RD_AV ANG_VAL ANG_VAL Field Bits Type Description RD_AV Read Status, Angle Value no new angle value since last readout new angle value (ANG_VAL) present. The bit is cleared on a read-out (valid for both: normal operation and update buffer).
  • Page 82 TLE5012B SSC Registers Angle Speed Register ASPD Offset Reset Value Angle Speed Register 8000 RD_AS ANG_SPD ANG_SPD Field Bits Type Description RD_AS Read Status, Angle Speed no new angle speed value since last readout new angle speed value (ANG_SPD) present. The bit is cleared on a read-out (valid for both: normal operation and update buffer).
  • Page 83 TLE5012B SSC Registers Angle Revolution Register AREV Offset Reset Value Angle Revolution Register 8000 RD_REV FCNT REVOL REVOL Field Bits Type Description RD_REV Read Status, Revolution no new values since last readout new value (REVOL) present. The bit is cleared on a read-out (volid for both: normal operation and update buffer).
  • Page 84 TLE5012B SSC Registers Frame Synchronization Register FSYNC Offset Reset Value Frame Synchronization Register 0000 FSYNC TEMPER TEMPER Field Bits Type Description FSYNC 15:9 Frame Synchronization Counter Value Subcounter within one frame. Increments every internal clock cycle (synchronously at a 750kHz rate). Maximum counter value depends on FIR_MD setting: 16 @ FIR_MD=00;...
  • Page 85 TLE5012B SSC Registers Interface Mode1 Register MOD_1 Offset Reset Value Interface Mode1 Register derivate-specific FIR_MD DSPU_HO CLK_SEL IIF_MOD Field Bits Type Description FIR_MD 15:14 Update Rate Setting (Filter Decimation) 42.7 µs 85.3 µs 170.6 µs Reset: derivate-specific CLK_SEL Clock Source Select Switch to external clock at start-up only.
  • Page 86 External Clock Selection: External clock operation is possible for the interface configurations SSC only, SSC & PWM, and SSC& SPC. To switch the TLE5012B to external clock, the following procedure is used: • Trigger a chip reset by writing a “1” to the AS_RST bit (address 01 [0]) via SSC interface •...
  • Page 87 TLE5012B SSC Registers Field Bits Type Description FUSE_REL Fuse Reload Triggers reload of default values from laser fuses into configuration registers. normal operation reload of registers with fuse values immediately. Reloaded fuse values are used with the start of the next filter cycle.
  • Page 88 TLE5012B SSC Registers Interface Mode2 Register MOD_2 Offset Reset Value Interface Mode2 Register derivate-specific ANG_RANGE ANG_RANGE ANG_DIR PREDICT AUTOCAL Field Bits Type Description ANG_RANGE 14:4 Angle Range Changes the representation of the angle output (AVAL and ASPD register) by multiplying the output with a factor ANG_RANGE/128.
  • Page 89 TLE5012B SSC Registers Field Bits Type Description PREDICT Prediction Prediction of angle value based on current angle speed (see data sheet). Note: In case of changing a PREDICT, AUTOCAL should be deactivated as explained under Note on Page prediction disabled...
  • Page 90 TLE5012B SSC Registers Interface Mode3 Register MOD_3 Offset Reset Value Interface Mode3 Register device-specific ANG_BASE ANG_BASE SPIKEF SSC_OD PAD_DRV Field Bits Type Description ANG_BASE 15:4 Angle Base Sets the 0° angle position (12 bit value). Angle base is factory-calibrated to make the 0° direction parallel to the edge of the chip.
  • Page 91 TLE5012B SSC Registers Offset X Register OFFX Offset Reset Value Offset X device-specific X_OFFSET X_OFFSET Field Bits Type Description X_OFFSET 15:4 Offset Correction of X-value in digits 12-bit signed integer value of raw X-signal offset correction at 25°C. Reset: device-specific...
  • Page 92 TLE5012B SSC Registers Synchronicity Register SYNCH Offset Reset Value Synchronicity device-specific SYNCH SYNCH Field Bits Type Description SYNCH 15:4 Amplitude Synchronicity 12-bit signed integer value of amplitude synchronicity correction (raw X amplitude divided by raw Y amplitude). For synchronicity correction, the offset compensated Y value is multiplied by SYNCH.
  • Page 93 TLE5012B SSC Registers IFAB Register (multi-purpose) IFAB Offset Reset Value IFAB Register device-specific ORTHO ORTHO FIR_UDR IFAB_OD IFAB_HYST Field Bits Type Description ORTHO 15:4 Orthogonality Correction of X and Y Components 12-bit signed integer value of orthogonality correction. GMR element orthogonality correction.
  • Page 94 TLE5012B SSC Registers Field Bits Type Description IFAB_HYST (multi-purpose) HSM and IIF Mode: Hysteresis Switching hysteresis on direction change for HSM and IIF interface. 0° 0.175° 0.35° 0.70° SPC Mode: Unit Time 3.0 µs 2.5 µs 2.0 µs 1.5 µs...
  • Page 95 TLE5012B SSC Registers Field Bits Type Description HSM_PLP (multi-purpose) Hall Switch Mode: Pole-Pair Configuration 0000 1 pole pairs 0001 2 pole pairs 0010 3 pole pairs 1101 14 pole pairs 1110 15 pole pairs 1111 16 pole pairs Pulse-Width-Modulation Mode: Error Indication...
  • Page 96: Figure 6-12 Timing Of Angle Calculation In Spc. Trigger Nibble Low Time Corresponds To Slave Number

    TLE5012B SSC Registers Field Bits Type Description IF_MD Interface Mode on IFA,IFB,IFC Any derivate can be configurated to operate in any of the four following protocols on the IFA, IFB and IFC outputs. Reconfiguration is required at every start-up, else the default protocol of the derivate will be used.
  • Page 97 CRC has to be changed accordingly. Reset: device-specific Offset temperature compensation The TLE5012B compensates the temperature dependence of the X- and Y-offsets during run-time by using an integrated temperature measurement (see register TEMPER on Page 84) and applying factory-calibrated temperature coefficients for the offsets.
  • Page 98 TLE5012B SSC Registers X-raw Value Register ADC_X Offset Reset Value X-raw value 0000 ADC_X Field Bits Type Description ADC_X 15:0 ADC value of X-GMR 16-bit signed integer raw X value. Read-out of this register will update ADC_Y Reset: 0 Y-raw Value Register...
  • Page 99 TLE5012B SSC Registers D_MAG Register D_MAG Offset Reset Value D_MAG Register 0000 15 15 12 12 11 11 10 10 Field Bits Type Description Angle Vector Magnitude Unsigned Angle Vector Magnitude after X, Y error compensation (due to temperature). This field allows additional safety checks.
  • Page 100 TLE5012B SSC Registers T_RAW Register T_RAW Offset Reset Value T_RAW Register 0000 15 15 12 12 11 11 10 10 T_RAW T_TGL T_RAW Field Bits Type Description T_TGL Temperature Sensor Raw-Value Toggle Toggles after every new temperature value (T_RAW). Reset: 0...
  • Page 101 TLE5012B SSC Registers Increment Counter Register IIF_CNT Offset Reset Value IIF Counter value 0000 IIF_CNT Field Bits Type Description IIF_CNT 13:0 Counter value of increments Internal 14-bit counter for the incremental interface, which counts from 0 to 16383 during one full turn.
  • Page 102: Pre-Configured Derivates

    SSC interface. IIF-type: E1000 The TLE5012B E1000 is preconfigured for Incremental Interface and fast angle update rate (42.7 μs). It is most suitable for BLDC motor commutation. •...
  • Page 103: Pwm-Type: E5020

    IFA/IFB/IFC pins set to weak driver, DATA pin set to medium driver, fast edge. • Voltage spike filter on input pads enabled. SPC-type: E9000 The TLE5012B E9000 is preconfigured for Short-PWM-Code interface. It is most suitable for steering angle and actuator position sensing. SPC unit time is 3 μs. •...
  • Page 104: Fuse Values

    ANG_RANGE AUTOCAL PAD_DRV ANG_DIR PREDICT SPIKEF SSC_OD TLE5012B E1000 (IIF) 0 0 0 1 0 0 0 0 0 0 0 TLE5012B E3005 (HSM) 0 0 0 1 0 0 0 0 0 0 0 TLE5012B E5000 (PWM) 0 0 0 1 0 0 0 0 0 0 0...
  • Page 105 . i n f i n e o n . c o m Published by Infineon Technologies AG...

Table of Contents