Hardware Documentation Data Sheet ® HAL 856 Programmable Linear Hall-Effect Sensor with Arbitrary Output Characteristic (2-Wire) Edition March 23, 2010 DSH000142_002EN HAL856 DATA SHEET Copyright, Warranty, and Limitation of Liability The information and data contained in this document are believed to be accurate and reliable. The software and proprietary information contained therein may be protected by copyright, patent, trademark and/or other intellectual property rights of Micronas. All rights not expressly granted remain reserved by Micronas. Micronas assumes no liability for errors and gives no warranty representation or guarantee regarding the suitability of its products for any particular purpose due to these specifications. By this publication, Micronas does not assume responsibility for patent infringements or other rights of third parties which may result from its use. Commercial conditions, product availability and delivery are exclusively subject to the respective order confirmation. Micronas Trademarks – HAL Micronas Patents Sensor programming with VDD-Modulation protected by Micronas Patent No. EP 0 953 848. Choppered Offset Compensation protected by Micronas patents no. US5260614, US5406202, EP0525235, and EP0548391. Third-Party Trademarks All other brand and product names or company names may be trademarks of their respective companies. Any information and data which may be provided in the document can and do vary in different applications, and actual performance may vary over time. All operating parameters must be validated for each customer application by customers’ technical experts. Any new issue of this document invalidates previous issues. Micronas reserves the right to review this document and to make changes to the document’s content at any time without obligation to notify any person or entity of such revision or changes. For further advice please contact us directly. Do not use our products in life-supporting systems, aviation and aerospace applications! Unless explicitly agreed to otherwise in writing between the parties, Micronas’ products are not designed, intended or authorized for use as components in systems intended for surgical implants into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the product could create a situation where personal injury or death could occur. No part of this publication may be reproduced, photocopied, stored on a retrieval system or transmitted without the express written consent of Micronas. 2 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Contents Page Section Title 5 5 5 6 6 6 6 6 1. 1.1. 1.2. 1.3. 1.4. 1.5. 1.6. 1.7. Introduction Major Applications Features Marking Code Operating Junction Temperature Range (TJ) Hall Sensor Package Codes Solderability and Welding Pin Connections and Short Descriptions 7 7 9 13 13 15 2. 2.1. 2.2. 2.3. 2.3.1. 2.3.2. Functional Description General Function Digital Signal Processing and EEPROM Calibration Procedure General Procedure Example: Calibration of an Angle Sensor 17 17 21 21 21 22 22 22 24 26 27 28 28 3. 3.1. 3.2. 3.3. 3.4. 3.4.1. 3.5. 3.5.1. 3.6. 3.6.1. 3.7. 3.8. 3.9. Specifications Outline Dimensions Dimensions of Sensitive Area Position of Sensitive Areas Absolute Maximum Ratings Storage and Shelf Life Recommended Operating Conditions Power Diagram Characteristics Specification of Biphase-M Output Magnetic Characteristics Diagnosis Functions Typical Characteristics 29 29 29 30 31 32 32 32 33 34 34 4. 4.1. 4.2. 4.3. 4.4. 4.5. 4.6. 4.6.1. 4.6.2. 4.6.3. 4.6.4. Application Notes Measurement of a PWM Output Signal Measurement of a Biphase-M Output Signal Temperature Compensation Ambient Temperature EMC and ESD Start-Up Behavior First Operation (Power-Up) Operation after Reset in Biphase-M Mode with Provide Part Number Option Enabled Power-Down Operation Power Drop Operation Micronas March 23, 2010; DSH000142_002EN 3 HAL856 DATA SHEET Contents, continued Page Section Title 35 35 35 38 39 39 41 5. 5.1. 5.2. 5.3. 5.4. 5.5. 5.6. Programming of the Sensor Definition of Programming Telegram Definition of the Telegram Telegram Codes Number Formats Register Information Programming Information 42 6. Data Sheet History 4 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Programmable Linear Hall-Effect Sensor with Arbitrary Output Characteristic (2-Wire) peratures from −40 °C up to 150 °C. The HAL856 is available in the very small leaded packages TO92UT-1 and TO92UT-2. Release Note: Revision bars indicate significant changes to the previous edition. 1.1. Major Applications 1. Introduction The HAL856 is a member of the Micronas family of programmable linear Hall sensors. The HAL856 offers an arbitrary output characteristic and a 2-wire output interface. Due to the sensor’s versatile programming characteristics, the HAL856 is the optimal system solution for applications such as: – contactless potentiometers, – rotary position measurement (e.g., pedal sensor), – fluid level measurement, The HAL856 is an universal magnetic field sensor based on the Hall effect. The IC is designed and produced in sub-micron CMOS technology and can be used for angle or distance measurements if combined with a rotating or moving magnet. The major characteristics like magnetic field range, output characteristic, output format, sensitivity, shift (offset), PWM period, low and high output current, and the temperature coefficients are programmable in a non-volatile memory. The output characteristic can be set with 32 setpoints. The HAL856 features a temperature-compensated Hall plate with choppered offset compensation, an A/D-converter, digital signal processing, an EEPROM memory with redundancy and lock function for the calibration data, a serial interface for programming the EEPROM, and protection devices at all pins. The internal digital signal processing is of great benefit because analog offsets, temperature shifts, and mechanical stress do not degrade the sensor accuracy. The HAL856 is programmable by means of modulating the supply voltage. No additional programming pin is needed. The easy programmability allows a 2-point calibration by adjusting the output signal directly to the input signal (like mechanical angle, distance, or current). Individual adjustment of each sensor during the customer’s manufacturing process is possible. With this calibration procedure, the tolerances of the sensor, the magnet, and the mechanical positioning can be compensated in the final assembly. This offers a lowcost alternative for all applications that presently need mechanical adjustment or laser trimming for calibrating the system. In addition, the temperature compensation of the Hall IC can be fitted to all common magnetic materials, by programming first and second order temperature coefficients of the Hall sensor sensitivity. This enables operation over the full temperature range with high accuracy. The calculation of the individual sensor characteristics and the programming of the EEPROM memory can easily be done with a PC and the application kit from Micronas. The sensors are designed for automotive or industrial applications. They operate with ambient tem- – linear position detection, and – magnetic field detection. 1.2. Features – high-precision linear Hall effect sensors with different output formats – various programmable magnetic characteristics with non-volatile memory – programmable output characteristic (32 setpoints with 9-bit resolution) – programmable output formats (PWM or serial Biphase-M) – programmable PWM period – programmable output current source (low and high current) – digital signal processing – temperature characteristics programmable for matching all common magnetic materials – programming by modulation of the supply voltage – lock function and built-in redundancy for EEPROM memory – operates from –40 °C up to 150 °C ambient temperature – operates from 4.5 V up to 18 V supply voltage – operates with static magnetic fields and dynamic magnetic fields up to 2 kHz – choppered offset compensation – overvoltage protection on all pins – reverse-voltage protection on VDD pin – magnetic characteristics extremely robust against mechanical stress – short-circuit-protected output – EMC-optimized design – programmable slew rate for optimized EMI behavior – single-wire interface possible Micronas March 23, 2010; DSH000142_002EN 5 HAL856 DATA SHEET 1.3. Marking Code 1.6. Solderability and Welding The HAL856 has a marking on the package surface (branded side). This marking includes the name of the sensor and the temperature range. Soldering Type HAL856 During soldering reflow processing and manual reworking, a component body temperature of 260°C should not be exceeded. Temperature Range A K Welding 856A 856K Device terminals should be compatible with laser and resistance welding. Please note that the success of the welding process is subject to different welding parameters which will vary according to the welding technique used. A very close control of the welding parameters is absolutely necessary in order to reach satisfying results. Micronas, therefore, does not give any implied or express warranty as to the ability to weld the component. 1.4. Operating Junction Temperature Range (TJ) The Hall sensors from Micronas are specified to the chip temperature (junction temperature TJ). A: TJ = −40 °C to +170 °C K: TJ = −40 °C to +140 °C The relationship between ambient temperature (TA) and junction temperature is explained in Section 4.4. on page 31. 1.5. Hall Sensor Package Codes HALXXXPA-T Temperature Range: A and K Package: UT for TO92UT-1/-2 Type: 856 1.7. Pin Connections and Short Descriptions Pin No. Pin Name Type Short Description 1 VDD IN/ OUT Supply Voltage and Programming Pin 2 GND 3 DATA Ground OUT Protocol Out Example: HAL856UT-K → Type: 856 → Package: TO92UT → Temperature Range: TJ = −40°C to +140°C Hall sensors are available in a wide variety of packaging versions and quantities. For more detailed information, please refer to the brochure: “Micronas Hall Sensors: Ordering Codes, Packaging, Handling”. Note: Pin 3 is only active before locking of the sensor. It can be used for the communication with the sensor before the EEPROM is locked. HAL856 1 VDD 3 DATA 2 GND Fig. 1–1: Pin configuration Note: The third sensor pin should be floating or connected to the GND line after locking the sensor. 6 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 2. Functional Description sumption. There is no transmission of the PWM signal during the communication. 2.1. General Function When no command is detected or processed and the supply voltage is within the recommended operating range the PWM or Biphase-M output is enabled. The HAL856 is a monolithic integrated circuit which provides an output signal proportional to the magnetic flux through the Hall plate. Internal temperature compensation circuitry and the choppered offset compensation enables operation over the full temperature range with minimal changes in accuracy and high offset stability. The circuitry also rejects offset shifts due to mechanical stress from the package. The non-volatile memory consists of redundant EEPROM cells. In addition, the sensor IC is equipped with devices for overvoltage and reversevoltage protection at all pins. The external magnetic field component perpendicular to the branded side of the package generates a Hall voltage. The Hall IC is sensitive to magnetic north and south polarity. This voltage is converted to a digital value, processed in the Digital Signal Processing Unit (DSP) according to the settings of the EEPROM registers, converted to the different digital output formats (PWM and Biphase-M serial protocol) and provided by an output current source. The function and the parameters for the DSP are explained in Section 2.2. on page 9. HAL 856 8 7 IDD (A) VDD (V) The setting of the LOCK register disables the programming of the EEPROM memory for all time. This register cannot be reset. 6 5 As long as the LOCK register is not set, the output characteristic can be adjusted by programming the EEPROM registers. The IC is addressed by modulating the supply voltage (see Fig. 2–1). After detecting a command, the sensor reads or writes the memory and answers with a digital modulation of the current con- VDD DATA GND Fig. 2–1: Programming with VDD modulation VDD Bandgap Reference and Protection Devices Temperature Dependent Bias Oscillator Switched Hall Plate A/D Converter Digital Signal Processing Supply Level Detection Lock Control Current Output DATA EEPROM Memory GND Fig. 2–2: HAL856 block diagram Micronas March 23, 2010; DSH000142_002EN 7 HAL856 DATA SHEET Digital Output Register 14 bit Digital Signal Processing A/D Converter Digital Filter TC TCSQ 6 bit 5 bit Adder Mode Register Range Filter 3 bit 3 bit Multiplier Find Interval Adder Interpolate between Limits Get Limits Output Conditioning Offset Slope Shift Setpoints Lock Micronas Customer Correction 14 bit 10 bit 32 x 9 bit 1 bit Register Settings EEPROM Memory Lock Control Fig. 2–3: Details of EEPROM and digital signal processing 8 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 2.2. Digital Signal Processing and EEPROM The DSP is the major part of this sensor and performs the signal conditioning. The parameters for the DSP are stored in the EEPROM registers. The details are shown in Fig. 2–3 on page 8. Terminology: SLOPE: name of the register or register value Slope: name of the parameter The EEPROM registers consist of three groups: Group 1 contains the registers for the adaption of the sensor to the magnetic system: MODE for selecting the magnetic field range and filter frequency, TC and TCSQ for the temperature characteristics of the magnetic sensitivity. operating range of the A/D converter is from −30 mT... +30 mT up to −150 mT... +150 mT. During further processing, the digital signal is calculated based on the values of slope, shift, and the defined output characteristic. The result is converted to the different digital output formats (PWM and Biphase-M) and transmitted by a current source output. The DIGITAL OUTPUT value at any given magnetic field depends on the settings of the magnetic field range, the low-pass filter, TC, TCSQ values and the programmed output characteristic. The DIGITAL OUTPUT range is min. 0 to max. 4095. Note: During application design, it should be taken into consideration that DIGITAL OUTPUT should not saturate in the operational range of the specific application. The parameters SLOPE and SHIFT are used for the individual calibration of the sensor in the magnetic cirucit. – The parameter Shift corresponds to the output signal at B = 0 mT. – The parameter Slope defines the magnetic sensitivity. % 100 HAL 856 90 Group 2 contains the registers for defining the output characteristics: OUTPUT FORMAT, OUTPUT PERIOD or OUTPUT BITTIME, SLEW RATE, OUTPUT CHARACTERISTIC, LOW CURRENT and HIGH CURRENT. The shape of the output signal is determined by the output characteristic, which, in turn, is defined by the 32 setpoints of the sensor. A value for each of the setpoints must be defined. The setpoints are distributed evenly along the magnetic field axis allowing linear interpolation between the 32 setpoints (see Fig. 2–4). PWM 80 70 60 50 40 30 Logarithmic Group 3 contains the PARTNUMBER, the Micronas registers, and LOCK for the locking of all registers. After locking, the PARTNUMBER register is only available in Biphase-M output mode. The Micronas registers are programmed and locked during production and are read-only for the customer. These registers are used for oscillator frequency trimming and several other special settings. 20 Linear Sine 10 0 0 4 Logarithmic 8 12 16 20 24 28 32 Setpoint Linear Fig. 2–4: Example for different Sine output characteristics An external magnetic field generates a Hall voltage on the Hall plate. The A/D-converter converts the amplified positive or negative Hall voltage (operates with magnetic north and south poles at the branded side of the package) to a digital value. The digital signal is filtered in the internal low-pass filter and manipulated according to the settings stored in the EEPROM. The digital value after signal processing is readable in the DIGITAL OUTPUT register. Depending on the programmable magnetic range of the Hall IC, the Micronas March 23, 2010; DSH000142_002EN 9 HAL856 DATA SHEET Mode Output Format The MODE register consists of four “sub”-registers defining the magnetic and output behavior of the sensor. The RANGE bits are the three lowest bits of the MODE register; they define the magnetic field range of the A/D converter. The next three bits (FILTER) define the −3 dB frequency of the digital low pass filter. The next sub-register is the FORMAT register, and it defines the different output formats as described below. This sub-register also consists of 3 bits. The last three MSBs define the OUTPUT PERIOD of the PWM signal. The HAL856 provides two different output formats: a PWM and Biphase-M output. PMW output is a pulse width modulated output. The signal is defined by the ratio of pulse width to pulse period. The Biphase-M output is a serial protocol. A logical “0” is coded as no output level change within the bit time. A logical “1” is coded as an output level change between 50% and 80% of the bit time. After each bit, an output level change occurs (see Section 3.6.1. on page 26). Range Table 2–3: OUTPUT FORMAT register definition Table 2–1: RANGE register definition Magnetic Field Range Bit Setting −30 mT...30 mT 0 −40 mT...40 mT 4 −60 mT...60 mT 5 −75 mT...75 mT 1 −80 mT...80 mT 6 −90 mT...90 mT 2 −100 mT...100 mT 7 −150 mT...150 mT 3 Output Format Bit Setting PWM 2 Biphase-M 41) Biphase-M (test) 52) 1) 2) In case of OUTPUT FORMAT = 4 the continuous Biphase-M output will be active after locking the device. In order to test the Biphase-M output with non-locked sensors OUTPUT FORMAT = 5 has to be used. writing OUTPUT FORMAT = 5 will activate the Biphase-M output for test purpose. The test can be deactivated by switching the device off. It is not possible to communicate with the sensor after activation of test mode. Filter Table 2–2: FILTER register definition −3 dB Frequency Bit Setting 80 Hz 0 160 Hz 1 500 Hz 2 1 kHz 3 2 kHz 4 10 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Output Period TC and TCSQ The OUTPUT PERIOD register defines the PWM period of the output signal. The temperature dependence of the magnetic sensitivity can be adapted to different magnetic materials in order to compensate for the change of the magnetic strength with temperature. The adaption is done by programming the TC (Linear Temperature Coefficient) and the TCSQ registers (Quadratic Temperature Coefficient). Thereby, the slope and the curvature of the temperature dependence of the magnetic sensitivity can be matched to the magnet and the sensor assembly. As a result, the output signal characteristic can be fixed over the full temperature range. The sensor can compensate for linear temperature coefficients ranging from about −2100 ppm/K up to 600 ppm/K and quadratic coefficients from about −5 ppm/K2 to 5 ppm/K2. Please refer to Section 4.3. on page 30 for the recommended settings for different linear temperature coefficients. Table 2–4: OUTPUT PERIOD register definition PWM Output Period Bit Setting 128 ms; 12-bit resolution 0 64 ms; 12-bit resolution 1 32 ms; 12-bit resolution 2 16 ms; 12-bit resolution 3 8 ms; 12-bit resolution 4 4 ms; 11-bit resolution 5 2 ms; 10-bit resolution 6 Slope 1 ms; 9-bit resolution 7 The SLOPE register contains the parameter for the multiplier in the DSP. The Slope is programmable between −4 and 4. The register can be changed in steps of 0.00049. Slope = 1 corresponds to an increase of the output signal by 100% if the digital value at the A/D-converter output increases by 2048. Output Bittime The OUTPUT BITTIME register defines the bit time of the Biphase-M output signal. OUTPUT BITTIME is “sub”-register of the SPECIAL CUSTOMER register. For all calculations, the digital value after the digital signal processing is used. This digital information is readable from the DIGITAL OUTPUT register. Table 2–5: OUTPUT BITTIME register definition Shift Biphase-M Output Bit Time Bit Setting 40 μs 0 84 µs 1 168 µs 2 320 µs 3 700 µs 11 1.6 ms 4 Part Number 3.2 ms 5 6.4 ms 7 In case of Biphase-M output, a part number can be defined. This part number will be sent during power-on of the sensor if the PARTNUMBER ENABLE bit is set. Afterwards, the sensor will send the digital value corresponding to the applied magnetic field. Note: Setting the Biphase-M bit time to 40 μs simultaneously switches the programming telegram to the same bit time. Hence after writing the OUTPUT BITTIME register the timing of the programming device has to be set accordingly. Micronas The SHIFT register contains the parameter for the adder in the DSP. Shift is the output signal without external magnetic field (B = 0 mT) and programmable from −100% up to 100%. For calibration in the system environment, a 2-point adjustment procedure is recommended. The suitable Slope and Shift values for each sensor can be calculated individually by this procedure. – The PARTNUMBER ENABLE bit is part of the SPECIAL CUSTOMER register. – The OUTPUT PERIOD register defines the time interval for which the part number is sent. March 23, 2010; DSH000142_002EN 11 HAL856 DATA SHEET Output Characteristic Slew Rate The OUTPUT CHARACTERISTIC register defines the shape of the sensor output signal. It consists of 32 setpoints. Each setpoint can be set to values between 0 and 511 LSB. The output characteristic has to be monotonic increasing (Setpoint0 ≤ Setpoint1 ≤ SetpointN). The SLEW RATE register is a “sub”-register of the CURRENTSOURCE register. The output signal fall and rise time of the HAL856 depends on the SLEW RATE register setting and the external load circuit. LOCKR Table 2–7: SLEW RATE register definition Typ. Values (Sensor Only) By setting this 1-bit register, all registers will be locked, and the sensor will no longer respond to any supply voltage modulation. This bit is active after the first power-off and power-on sequence after setting the LOCK bit. Warning: This register cannot be reset! Bit Setting Rise time [µs/mA] Fall time [µs/mA] 0.05 0.1 0 0.3 0.6 1 0.5 1.1 2 0.8 1.6 3 Digital Output This 12-bit register delivers the actual digital value of the applied magnetic field after the signal processing. This register can only be read out, and it is the basis for the calibration procedure of the sensor in the system environment. Note: The slew rate can be programmed to optimize the EMI behavior of the application. The differential current change has a Gaussian shape for low emission. Please contact Micronas Application Support in case further slew rates are required. Offset Correction The OFFSET CORRECTION register allows to adjust the digital offset of the built-in A/D-converter. The digital offset can be programmed to −3/4, −1/2, −1/4, 0, +1/4, +1/2, +3/4 of full-scale. Table 2–6: OFFSET CORRECTION register definition Offset Correction Bit Setting −3/4 28 −1/2 29 −1/4 30 0 0 1/4 17 1/2 18 3/4 19 Fig. 2–5: Typical IDD vs. slew rate for setting “slowest slew rate” Note: Using the Offset Correction will change the Micronas trimming of the LSB adjusted offset. 12 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Current Source 2.3. Calibration Procedure The CURRENTSOURCE register contains three “sub”registers: The 3 LSB contain the HIGH CURRENT setting, the next 4 bits the LOW CURRENT setting of the 2-wire output. The two MSB are used for the SLEW RATE register. 2.3.1. General Procedure There are 12 combinations of high and low current levels. Table 2–8: HIGH/LOW CURRENT register definition Typ. Supply Current HIGH CURRENT LOW CURRENT IDD,Low IDD,High Unit 6 13.5 mA 5 12 6 14 mA 4 12 6 14.5 mA 3 12 6 15 mA 2 12 6 15.5 mA 1 12 6 16 mA 0 12 7 13.5 mA 5 4 7 14 mA 4 4 7 14.5 mA 3 4 7 15 mA 2 4 7 15.5 mA 1 4 7 16 mA 0 4 For calibration in the system environment, the application kit from Micronas is recommended. It contains the hardware for the generation of the serial telegram for programming (Programmer Board Version 5.1) and the corresponding software (PC856) for the input of the register values. For the individual calibration of each sensor in the customer application, a two-point adjustment is recommended (see Fig. 2–6 on page 15 for an example). The calibration shall be done as follows: Step 1: Input of the registers which need not be adjusted individually The magnetic circuit, the magnetic material with its temperature characteristics, the filter frequency, the part number and the output format are given for this application. Therefore, the values of the following registers should be identical for all sensors of the customer application. – FILTER (according to the maximum signal frequency) – RANGE (according to the maximum magnetic field at the sensor position) – TC and TCSQ (depends on the material of the magnet and the other temperature dependencies of the application) – OUTPUT FORMAT (according to the application requirements) – OUTPUT PERIOD (according to the application requirements) – PARTNUMBER (in case Biphase-M output format is used) – LOW CURRENT – HIGH CURRENT – OFFSET CORRECTION – SLEW RATE Write the appropriate settings into the HAL856 registers. Micronas March 23, 2010; DSH000142_002EN 13 HAL856 DATA SHEET Step 2: Initialize DSP Step 4: Calculation of Shift and Slope As the DIGITAL OUTPUT register value depends on the settings of SLOPE, SHIFT and the OUTPUT CHARACTERISTIC, these registers have to be initialized with defined values, first: Set the system to calibration point 1 and read the register DIGITAL OUTPUT. The result is the value DOUT1. – ShiftINITIAL = 50% Now, set the system to calibration point 2, read the register DIGITAL OUTPUT, and get the value DOUT2. – OUTPUT CHARACTERISTIC = ’Linear Standard’ (Setpoint 0 = 0, Setpoint 1 = 16, Setpoint 2 = 32, ..., Setpoint 31 = 496). With these values, the settings for Sensitivity and Shift are calculated as: – SlopeINITIAL depends on the setting of the digital low-pass filter (see Table 2–9). ( DOUT2 NOM – DOUT1 NOM ) Slope = Slope INITIAL × --------------------------------------------------------------------------( DOUT2 – DOUT1 ) Table 2–9: Initial slope values −3 dB Frequency SlopeINITIAL 80 0.2578 160 0.2578 500 0.1938 1000 0.1938 2000 0.3398 100% ( DOUT2 – 2048 ) × Slope Shift = -------------- × ⎛ DOUT2 NOM – ----------------------------------------------------------------⎞ ⎠ 4096 ⎝ Slope INITIAL Write the calculated values for Slope, Shift, and the desired output characteristic into the EEPROM. The sensor is now calibrated for the customer application. As long as the LOCK bit is not set, the calibration procedure can be applied repeatedly. Step 3: Define Calibration Points For highest accuracy of the sensor, calibration points near the minimum and maximum input signal are recommended. Define nominal values DOUT1NOM and DOUT2NOM of the DIGITAL OUTPUT register at the calibration points 1 and 2, respectively. Note: Micronas software PC856 uses default settings DOUT1NOM = 0 and DOUT2NOM = 3968. The output is clamped to Setpoint 0 and Setpoint 31. In the case of “Linear Standard’”, Setpoint 0 corresponds to DIGITAL OUTPUT = 0, while Setpoint 31 corresponds to DIGITAL OUTPUT = 3968. 14 Note: For a recalibration, the calibration procedure has to be started at the beginning (step 1). A new initialization is necessary, as the initial values for SlopeINITIAL, ShiftINITIAL and output characteristic are overwritten in step 4. Step 5: Locking the Sensor The last step is activating the LOCK function with the “LOCK” command. Please note that the LOCK function becomes effective after power-down and power-up of the Hall IC. The sensor is now locked and does not respond to any programming or reading commands. Warning: This register cannot be reset! March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 2.3.2. Example: Calibration of an Angle Sensor The following description explains the calibration procedure using an angle sensor with a HAL856 as an example. The required output characteristic is shown in Fig. 2–6. – the angle range is from −25° to 25° – temperature coefficient of the magnet: −500 ppm/K Step 1: Input of the registers which need not be adjusted individually The register values for the following registers are given for all applications: – FILTER Select the filter frequency: 500 Hz – RANGE Select the magnetic field range: 40 mT – TC For this magnetic material: 6 % 100 HAL 856 Second Calibration Point Output 90 Duty Cycle 80 – TCSQ For this magnetic material: 14 – OUTPUT FORMAT Select the output format: PWM – OUTPUT PERIOD Select the output format: 8 ms 70 – PARTNUMBER For this example: 1 60 – LOW CURRENT For this example: 6 mA 50 – HIGH CURRENT For this example: 14 mA 40 30 – OFFSET CORRECTION For this example: none Linear 20 Sine First Calibration Point – SLEW RATE For this example: 0 (fastest) 10 -30 -20 -10 0 10 20 30 ° Angle Enter these values in the software, and use the “write and store” command for permanently writing the values in the registers. Linear Fig. 2–6: 0 for output characteristics Sine Example Step 2: Initialize DSP – SHIFT Select Shift: 50% – SLOPE Select Slope: 0.1938 (see Table 2–9 on page 14) – OUTPUT CHARACTERISTIC Select output characteristic: ’Linear Standard’ Step 3: Define Calibration Points The Micronas software PC856 uses default settings DOUT1NOM = 0 and DOUT2NOM = 3968. DOUT1NOM corresponds to the angle position −25°, DOUT2NOM to +25°. Micronas March 23, 2010; DSH000142_002EN 15 HAL856 DATA SHEET Step 4: Calculation of Shift and Slope Software Calibration: There are two ways to calculate the values for Shift and Slope. Use the menu CALIBRATE from the PC software and enter the values for the registers which are not adjusted individually. Set the system to calibration point 1 (angle 1 = 25°), hit the button “Digital Output1”, set the system to calibration point 2 (angle 2 = −25°), hit the button “Digital Output2”, and hit the button “Calculate”. The software will then calculate the appropriate Shift and Slope. Manual Calculation: 1. Set the system to calibration point 1 (angle 1 = 25°) 2. read the register DIGITAL OUTPUT. For our example, the result is DIGITAL OUTPUT = DOUT1 = 3291. 3. Set the system to calibration point 2 (angle 2 = −25°) 4. read the register DIGITAL OUTPUT again. For our example, the result is DIGITAL OUTPUT = DOUT2 = 985. This calculation has to be done individually for each sensor. Now, select an output characteristic from the selection box “Output Characteristics” and then press the button “write and store” for programming the sensor. Step 5: Locking the Sensor With these measurements and the pre-programming of the sensor, the values for Slope and Shift are calculated as: 3968 Slope = ------------------------------- × 0,1938 = – 0.3335 ( 985 – 3291 ) The last step is activating the LOCK function with the “LOCK” command. Please note that the LOCK function becomes effective after power-down and power-up of the Hall IC. The sensor is now locked and does not respond to any programming or reading commands. Warning: This register cannot be reset! 100% ( 985 – 2048 ) × ( – 0.3335 ) Shift = -------------- × ⎛ 3968 – --------------------------------------------------------------⎞ = 52,22% ⎠ 4096 ⎝ 0,1938 Write the calculated values for Slope and Shift and a linear output characteristic ranging from 10% to 90% output duty cycle into the EEPROM memory. 16 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 3. Specifications 3.1. Outline Dimensions Fig. 3–1: TO92UT-2: Plastic Transistor Standard UT package, 3 leads, not spread Weight approximately 0.12 g Micronas March 23, 2010; DSH000142_002EN 17 HAL856 DATA SHEET Fig. 3–2: TO92UT-1: Plastic Transistor Standard UT package, 3 leads, spread Weight approximately 0.12 g 18 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Fig. 3–3: TO92UT-2: Dimensions ammopack inline, not spread Micronas March 23, 2010; DSH000142_002EN 19 HAL856 DATA SHEET Fig. 3–4: TO92UT-1: Dimensions ammopack inline, spread 20 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 3.2. Dimensions of Sensitive Area 0.25 mm x 0.25 mm 3.3. Position of Sensitive Areas TO92UT-1/-2 y 1.5 mm nominal A4 0.3 mm nominal Bd 0.3 mm H1 min. 22.0 mm, max. 24.1 mm 3.4. Absolute Maximum Ratings Stresses beyond those listed in the “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only. Functional operation of the device at these conditions is not implied. Exposure to absolute maximum rating conditions for extended periods will affect device reliability. This device contains circuitry to protect the inputs and outputs against damage due to high static voltages or electric fields; however, it is advised that normal precautions be taken to avoid application of any voltage higher than absolute maximum-rated voltages to this high-impedance circuit. All voltages listed are referenced to ground (GND). Symbol Parameter Pin No. Min. Max. Unit VDD Supply Voltage 1 −14.51) 18 V −IDD Reverse Supply Current 1 − 502) mA IZ Current through Protection Device 1 −502) 502) mA DATA Communication Pin4) 3 − − V TJ Junction Temperature Range −40 −40 150 1703) °C NPROG Number of Programming Cycles − 100 1) 2) 3) 4) t < 1 min. as long as TJmax is not exceeded t < 1000h Must be connected to GND or remain floating at the latest after locking of the sensor. Micronas March 23, 2010; DSH000142_002EN 21 HAL856 DATA SHEET 3.4.1. Storage and Shelf Life The permissible storage time (shelf life) of the sensors is unlimited, provided the sensors are stored at a maximum of 30 °C and a maximum of 85% relative humidity. At these conditions, no Dry Pack is required. Solderability is guaranteed for one year from the date code on the package. 3.5. Recommended Operating Conditions Functional operation of the device beyond those indicated in the “Recommended Operating Conditions/Characteristics” is not implied and may result in unpredictable behavior of the device and may reduce reliability and lifetime. All voltages listed are referenced to ground (GND). Symbol Parameter Pin No. Min. Typ. Max. Unit VDD Supply Voltage 1 4.5 5 5.5 V VDD Battery Supply Voltage 1 8 12 18 V 6 12 18 Remarks TJ >125°C, RP + RSENSE = 150 Ω TJ <125°C, RP + RSENSE = 150 Ω VDDrt Slowest rise time of VDD to reach VDD,min at the sensor for correct power-up 1 − − − − 10 1 ms ms CP Protection Capacitance 1,2 4.7 4.7 1000 nF TJ < 125°C TJ >125°C 3.5.1. Power Diagram Due to the current source interface and the sensor’s power dissipation, it is not possible to use all current level and supply voltage combinations over the full temperature range. Fig. 3–5 to Fig. 3–7 describe the possible ambient temperature, supply voltage, and current level combinations for different thermal resistance values. To enable usage of the sensor at high ambient temperatures, it is necessary to have a very good thermal coupling of the sensors and the module. It is also necessary to select low values for the high current level. Fig. 3–5: Power chart for Rth = 200 k/W (TJmax = 170 °C) 22 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Fig. 3–6: Power chart for Rthjc = 61 k/W (TJmax = 170 °C) Fig. 3–7: Power chart for Rthjc = 61 k/W (TJmax = 150 °C) Micronas March 23, 2010; DSH000142_002EN 23 HAL856 DATA SHEET 3.6. Characteristics at TJ = −40 °C to +170 °C, VDD = 4.5 V to 14 V, after programming and locking of the device, at Recommended Operation Conditions if not otherwise specified in the column “Conditions”. Typical Characteristics for TJ = 25 °C and VDD = 5 V. For all other temperature ranges this table is also valid, but only in the junction temperature range defined by the temperature range (Example: For K-Type this table is limited to TJ = −40 °C to +140 °C). All voltages listed are referenced to ground (GND). Symbol Parameter Pin No. IDD,Low Low Level Sink Current1) 1 IDD,High High Level Sink Current 1) Min. Typ. Max. Unit Conditions programmable parameter 4.5 6 8 mA LOW CURRENT = 12 5.5 7 9 mA LOW CURRENT = 4 1 programmable parameter 10.5 13.5 15.0 mA HIGH CURRENT = 5 11.0 14.0 15.5 mA HIGH CURRENT = 4 11.5 14.5 16.0 mA HIGH CURRENT = 3 12.0 15.0 16.5 mA HIGH CURRENT = 2 12.5 15.5 17.0 mA HIGH CURRENT = 1 13.0 16.0 17.5 mA HIGH CURRENT = 0 Overvoltage Protection at Supply 1 − 22 − V Resolution 2,3 − − 12 bit 2) INL Integral Non-Linearity over Temperature Range 2,3 −0.5 0 0.5 % 3) fPWM PWM Output Frequency over Temperature Range 3 840 1000 1080 Hz PWM period: 1 ms; 9 bit res. 420 500 540 Hz PWM period: 2 ms; 10 bit res. 210 250 270 Hz PWM period: 4 ms; 11 bit res. 105 125 135 Hz PWM period: 8 ms; 12 bit res. 52 62.5 68 Hz PWM period: 16 ms; 12 bit res. 26 31 34 Hz PWM period: 32 ms; 12 bit res. 13 15 17 Hz PWM period: 64 ms; 12 bit res. 6.5 7.5 8.5 Hz PWM period: 128 ms;12 bit res. 0.03 0.04 0.05 ms Biphase-M bit time: 40 μs 2 3.2 4 ms Biphase-M bit time: 3.2 ms VDDZ Biphase-M Output Bittime over Temperature Range 3 tp1 Biphase-M Output Timing for Logical 1 3 50 65 80 % fADC Internal ADC Frequency over Temperature Range − 110 128 150 kHz tp0 1) Typical values describe the mean value 2) if the Hall IC is programmed suitably 3) VDD = 4.5 V to 14 V of current consumption over temperature (see Fig. 3–8) if more than 50% of the selected magnetic field range are used and the Hall IC is programmed 24 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Symbol Parameter Pin No. Min. Typ. Max. Unit Conditions tr(O) Response Time of Internal Signal1) 3 − − 5 4 2 1 10 8 4 2 ms ms ms ms 3 dB filter frequency = 80 Hz 3 dB filter frequency = 160 Hz 3 dB filter frequency = 500 Hz 3 dB filter frequency = 2 kHz − 0.1 0.5 ms − 6 5 3 2 11 9 5 3 ms ms ms ms 50 75 µs td(O) Delay Time of Internal Signal tPOD Power-Up Time (time to reach stabilized internal signal)1) − 3 − − 3 dB filter frequency = 80 Hz 3 dB filter frequency = 160 Hz 3 dB filter frequency = 500 Hz 3 dB filter frequency = 2 kHz tLVD Power-Down Time (time until output is off) VLVD Power-Down Voltage 1 − 3.5 − V VPOD Power-On Reset Voltage 1 − 3.6 − V BW Small Signal Bandwidth (−3 dB) 3 − 2 − kHz BAC < 10 mT; 3 dB Filter frequency = 2 kHz TO92UT Packages Thermal Resistance Rthja Junction to Air − − − 235 K/W Measured with a 1s0p board Rthjc Junction to Case − − − 61 K/W Measured with a 1s0p board Rthjs Junction to Solder Point − − − 128 K/W Measured with a 1s1p board 1) The output signal is updated at the begin of each PWM period or Biphase-M period. The update time depends on the output format settings. " & %" & $! !"#! !"#!& Fig. 3–8: Current consumption over temperature for VDD = 5 V, LOW CURRENT = 4 and HIGH CURRENT = 4 Micronas March 23, 2010; DSH000142_002EN 25 HAL856 DATA SHEET 3.6.1. Specification of Biphase-M Output Definition of Biphase-M Pulses In case of output format Biphase-M, a continuous data stream is provided. It consists of: A logical “0” is coded as no output level change within the bit time. A logical “1” is coded as an output level change between 50% and 80% of the bit time. After each bit, an output level change occurs. – 1 SYNC bit defining the bit time tp0, – 14 data bits (DAT) – 1 parity bit (DP) Data Bits (DAT) – a gap (signal quiescent) of 8 x tp0 The 12 MSB of the 14 data bits (DAT) contain the digital output reading. The complete signal period is T = 24 x tp0. The signal quiescent level and the polarity of the SYNC bit is shown in Fig. 3–9. Type SYNC Bit Polarity HAL856 positive Data Parity Bit (DP) This parity bit is “1” if the number of zeros within the 14 data bits is even. The parity bit is “0” if the number of zeros is odd. Note: If the part number output is activated, the part number will be transmitted 2 times after power-up (see Fig. 4–5 on page 33). The first Biphase-M protocol, respectively, the first PWM period after power-up, is not valid. HAL856: IDD SYNC BIT DAT DP 8 x tp0 Fig. 3–9: Output format Biphase-M: continuous data stream 26 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 3.7. Magnetic Characteristics at TJ = −40 °C to +170 °C, VDD = 4.5 V to 14 V, after programming and locking of the device, at Recommended Operation Conditions if not otherwise specified in the column “Conditions”. Typical Characteristics for TJ = 25 °C and VDD = 5 V. For all other temperature ranges this table is also valid, but only in the junction temperature range defined by the temperature range (Example: For K-Type this table is limited to TJ = −40 °C to +140 °C). Symbol Parameter Pin No. Min. Typ. Max. Unit Conditions BOffset Magnetic Offset 3 −1 0 1 mT B = 0 mT, TJ = 25 °C ΔBOffset/ΔT Magnetic Offset Change due to TJ −15 0 15 μT/K B = 0 mT Δα Error of Linear Temperature Coefficient of Magnetic Sensitivity −400 0 400 ppm/K TC and TCSQ suitable for the application NLSB(T) Integral Non-Linearity of Temperature Dependence of Sensitivity − − 1 2 − − % % α < 2000 ppm/K α >= 2000 ppm/K Magnetic Hysteresis −20 BHysteresis TC and TCSQ suitable for the application Definition of Sensitivity Errors over Temperature A ideal Hall-effect device would not be affected by temperature. Its temperature compensation would allow to compensate for a linear temperature coefficient αIDEAL of a permanent magnet. S IDEAL = 1 + α IDEAL × ( T – T 0 ) The temperature dependence of the sensitivity of a real sensor is not ideally linear. Its linear temperature coefficient α is determined by a linear least square fit. 0 20 μT Micronas specifies temperature: Range = 30 mT, Filter = 500 Hz two sensitivity errors over 1. the error of the linear temperature coefficient α: Δα = α – α IDEAL 2. the maximum residual error over temperature resulting from the least square fit, i.e., the integral non-linearity of the temperature dependence of sensitivity: NL SB ( T ) = max T res ( T ) S B = S 0 × ( 1 + α × ( T – T 0 ) + res ( T ) ) S0 and α are the fit parameters, res(T) the residual error. Micronas March 23, 2010; DSH000142_002EN 27 HAL856 DATA SHEET 3.8. Diagnosis Functions The HAL856 features various diagnosis functions, such as undervoltage detection and open-circuit detection. A description of the sensor’s behavior is shown in the table below (Typical Characteristics for TJ = 25 °C). Parameter Min. Typ. Max. Unit Output Behavior Undervoltage Detection Level VDD, UV 3.0 3.5 4.0 V No PWM output signal Open VDD Line − − − − No PWM output signal Open GND Line − − − − No PWM output signal Note: The undervoltage detection is activated only after locking the sensor! 3.9. Typical Characteristics Fig. 3–10: Typical current consumption versus supply voltage 28 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 4. Application Notes 4.1. Measurement of a PWM Output Signal Micronas recommends the following application circuits for HAL856. In case that the PWM output mode is activated, the magnetic field information is coded in the duty cycle of the PWM signal. The duty cycle is defined as the ratio between the high time “s” and the period “d” of the PWM signal (see Fig. 4–3). It is recommended to connect a ceramic 4.7 nF capacitor between ground and the supply voltage. Furthermore it is recommended to place a 30 Ω resistor in the supply voltage line. System side Note: The PWM signal is updated with the falling edge. Hence, for signal evaluation, the triggerlevel must be the falling edge of the PWM signal. Sensor side Vbattery = 8 V...18 V RP = 30 Ω VDD 1 Out 2 CP = 4.7 nF GND d 3 Rsense = 120 Ω IDD,low Fig. 4–1: Application circuit HAL856 To use the HAL856 over the full temperature and supply voltage range and with all available high current levels, Micronas recommends using a current mirror or special interface devices. Fig. 4–2 shows an example using a current mirror. V 1 DD HAL856 R time Fig. 4–3: Definition of PWM signal 4.2. Measurement of a Biphase-M Output Signal With each interrupt a timer shall be read out. The first two edges (SYNC bit) define the bit time tp0. Comparing subsequent timer readouts with tp0 successively decodes the Biphase-M pattern. VRef 2 Update In order to read the Biphase-M signal Micronas suggests to use a port interrupt which is configured to generate interrupts with both the falling and rising edge of the incoming signal. 3 4.7 nF s IDD,high R µC T1 T2 Fig. 4–2: Application circuit with current mirror A special interface device could be, for example, the MAXIM MAX9921 (Dual, 2-Wire Hall-Effect Sensor Interface with Diagnostics) chip. With these interface ICs, together with HAL856, a single-wire interface is possible. Note: The third sensor pin should be floating or connected to the GND line. Micronas March 23, 2010; DSH000142_002EN 29 HAL856 DATA SHEET 4.3. Temperature Compensation Table 4–1: Temperature compensation, continued The relationship between the temperature coefficient of the magnet and the corresponding TC and TCSQ codes for linear compensation is given in the following table. In addition to the linear change of the magnetic field with temperature, the curvature can be adjusted as well. For this purpose, other TC and TCSQ combinations are required which are not shown in the table. Micronas also offers a software named TC-Calc to optimize the TC and TCSQ values for each individual application based on customer measurement results. Please contact Micronas for more detailed information. Table 4–1: Temperature compensation Typ. Temperature Coefficient of Magnet (ppm/K) 30 TC TCSQ Typ. Temperature Coefficient of Magnet (ppm/K) TC TCSQ −100 7 3 −180 6 3 −200 5 3 −230 4 3 −260 3 3 −280 2 4 −360 1 4 −390 0 4 −410 −31 4 600 31 0 −490 −30 5 570 30 0 −510 −29 5 540 29 0 −540 −28 5 520 28 0 −610 −27 6 490 27 0 −640 −26 6 470 26 0 −670 −25 6 440 25 0 −740 −24 7 420 24 0 −780 −23 7 360 23 1 −840 −22 8 330 22 1 −880 −21 8 300 21 1 −950 −20 9 280 20 1 −980 −19 9 260 19 1 −1010 −18 9 240 18 1 −1080 −17 10 200 17 1 −1150 −16 11 180 16 1 −1180 −15 11 150 15 1 −1270 −14 12 130 14 1 −1290 −13 12 60 13 2 −1360 −12 13 40 12 2 −1430 −11 14 10 11 2 −1460 −10 14 −20 10 2 −1540 −9 15 −50 9 2 −1600 −8 16 −70 8 2 −1670 −7 17 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET Table 4–1: Temperature compensation, continued Typ. Temperature Coefficient of Magnet (ppm/K) TC TCSQ −1740 −6 18 −1810 −5 19 −1880 −4 20 −1950 −3 21 −2020 −2 22 −2100 −1 23 4.4. Ambient Temperature Due to the internal power dissipation, the temperature on the silicon chip (junction temperature TJ) is higher than the temperature outside the package (ambient temperature TA). T J = T A + ΔT At static conditions and continuous operation, the following equation applies: ΔT = IDD,mean × VDD × R thjx For typical values, use the typical parameters. For worst case calculation, use the max. parameters for IDD,mean and Rth, and the max. value for VDD from the application. Example with typical given values: IDD,mean = 0.011 A (IDD,high = 15 mA, IDD,low = 7 mA, duty-cycle = 50%) VDD = 10 V Rthjc = 61 K/W Tjmax = 170 ΔT is calculated as follows: K ΔT = 0,011A × 10V × 61 ----- = 6,71 W The maximum ambient temperature TAmax can be calculated as: T Amax = T Jmax – ΔT Micronas March 23, 2010; DSH000142_002EN 31 HAL856 DATA SHEET 4.5. EMC and ESD For applications with disturbances by capacitive or inductive coupling on the supply line or radiated disturbances, the application circuits shown in Fig. 4–1 on page 29 are recommended. Applications with this arrangement should pass the EMC tests according to the product standards ISO 7637 part 1 to part 3. Please contact Micronas for the detailed investigation reports with the EMC and ESD results. 4.6. Start-Up Behavior 4.6.1. First Operation (Power-Up) VDD First PWM/BiPhase-M signal starts 5V 3V VDD,UVmin. time tPOD IOUT (2-wire mode) BiPhase-M format PWM format Output undefined Output undefined The first period contains no valid data No valid signal Valid signal Fig. 4–4: Power-up diagram Note: The first PWM-period, respectively the first Biphase-M protocol, is not valid. 32 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 4.6.2. Operation after Reset in Biphase-M Mode with Provide Part Number Option Enabled VDD First signal starts 5V OUTPUT time tPOD Part number max. 100 ms No valid signal DATA Valid signal Fig. 4–5: Biphase-M after reset Note: The part number is transmitted twice. The transmission time depends on the chosen bit time, but is a maximum 100 ms. Micronas March 23, 2010; DSH000142_002EN 33 HAL856 DATA SHEET 4.6.3. Power-Down Operation VDD Last PWM/BiPhase-M signal ends 5V VDD,UV time tLVD IOUT (2-wire mode) BiPhase-M format Output undefined Output undefined PWM format Valid signal No valid signal Fig. 4–6: Power-down operation 4.6.4. Power Drop Operation VDD New PWM/BiPhase-M signal starts VDD PWM/BiPhase-M signal stops 5V 5V Power-on reset Low voltage on tLVD tPOD IOUT (2-wire mode) BiPhase-M format time The first period contains no valid data Output undefined Output undefined PWM format Valid signal No valid signal The first period contains no valid data Valid signal Fig. 4–7: Power-drop operation 34 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 5. Programming of the Sensor 5.1. Definition of Programming Telegram The sensor is addressed by modulating a serial telegram on the supply voltage. The sensor answers with a serial telegram on the output pin. The bits in the serial telegram have a different bit time for the VDD-line and the sensors answer. The bit time for the VDD-line is defined through the length of the Sync Bit at the beginning of each telegram. The bit time for the sensors answer is defined through the Acknowledge Bit. A logical “0” is coded as no output level change within the bit time. A logical “1” is coded as an output level change between 50% and 80% of the bit time. After each bit, an output level change occurs. 5.2. Definition of the Telegram Each telegram starts with the Sync Bit (logical 0), 3 bits for the Command (COM), the Command Parity Bit (CP), 4 bits for the Address (ADR), and the Address Parity Bit (AP). There are 4 kinds of telegrams: – Write a register (see Fig. 5–2 on page 36) After the AP Bit, follow 14 Data Bits (DAT) and the Data Parity Bit (DP). If the telegram is valid and the command has been processed, the sensor answers with an Acknowledge Bit (logical 0) on the output. mand have to be sent to the sensor. After the recognition of the erase and program commands, the HAL856 answers with an acknowledge pulse on its output signal. After the acknowledge pulse, a pulse on the VDD-line is created to start the charging of the EEPROM cells. Then, the supply voltage is kept constant during the charging time. To stop the charging, a further command is sent to the HAL856. This stopping command can be a further programming command or a read command (see Fig. 5–4 on page 37). – Lock a sensor To lock the EEPROM registers, the lock bit has to be programmed. Write the lock bit into the lock register. If the telegram is valid and the command has been processed, the sensor answers with an Acknowledge Bit (logical 0) on the output. In order to store the lock bit permanently, an erase and program command have to be sent to the sensor. The same procedure as mentioned above (Programming the EEPROM cells Fig. 5–4 on page 37) is used. The EEPROM registers are locked after a power on reset. Note: It is mandatory to lock the sensor before performing any kind of reliability tests or after the last programming of the sensor. The HAL856 has its full performance only after setting the LOCK bit. tr tf high-level Note: The sensor can only be programmed with programmer board version 5.1. If you have an older version, please contact Micronas or your supplier. tp0 logical 0 tp0 or low-level tp1 high-level – Read a register (see Fig. 5–3 on page 36) After evaluating this command, the sensor answers with the Acknowledge Bit, 14 Data Bits, and the Data Parity Bit on the output. logical 1 – Programming the EEPROM cells In order to permanently store the written data into the EEPROM cells, an erase and program com- Fig. 5–1: Definition of logical 0 and 1 bit Micronas low-level March 23, 2010; DSH000142_002EN tp0 tp0 or tp1 35 HAL856 DATA SHEET Table 5–1: Telegram parameters (All voltages are referenced to GND.) Symbol Parameter Pin No. Min. Typ. Max. Unit Conditions VDDL Supply Voltage for Low Level during Programming 1 5 5.5 6 V VDDH Supply Voltage for High Level during Programming 1 6.8 8.0 8.5 V tr Rise Time 1 − − 0.05 ms tf Fall Time 1 − − 0.05 ms tp0 Bit Time on VDD 1 1.7 1.75 1.8 ms tp0 is defined through the Sync Bit tpOUT Bit Time on Output Pin 3 2 3 4 ms tpOUT is defined through the Acknowledge Bit tp1 Voltage Change for Logical 1 1, 3 50 65 80 % % of tp0 or tpOUT tPROG Programming Time for EEPROM 1 95 100 105 ms VDD,PROG Supply Voltage during Programming 1 4.9 5 5.1 V trp Rise Time of Charging Pulse 1 0.2 0.5 1 ms tfp Fall Time of Charging Pulse 1 0 − 1 ms tw Delay Time of Charging Pulse after Acknowledge 1 0.5 0.7 1 ms WRITE Sync COM CP ADR AP DAT DP VDD IDD Fig. 5–2: Telegram for coding a Write command READ Sync COM CP ADR AP VDD Acknowledge DAT DP IDD Fig. 5–3: Telegram for coding a Read command 36 March 23, 2010; DSH000142_002EN Micronas Sync PROM ERASE COM1 CP1 ADR1 AP1 Sync COM2 CP2 DATA SHEET Micronas STORE SEQUENCE READ ADR2 AP2 Sync COM3 CP3 ADR3 AP3 VDD Acknowledge Acknowledge DAT DP IDD A Start the Charge Pump Detail A Stop the Charge Pump VDD IDD 2 x Delay Time Programming Time = 100 ms March 23, 2010; DSH000142_002EN Fig. 5–4: Telegram for programming the EEPROM HAL856 37 HAL856 DATA SHEET 5.3. Telegram Codes Data Bits (DAT) Sync Bit The 14 Data Bits contain the register information. Each telegram starts with the Sync Bit. This logical “0” pulse defines the exact timing for tp0. The registers use different number formats for the Data Bits. These formats are explained in Section 5.4. on page 39 Command Bits (COM) In the Write command, the last bits are valid. If, for example, the TC register (7 bits) is written, only the last 7 bits are valid. The Command code contains 3 bits and is a binary number. Table 5–2 shows the available commands and the corresponding codes for the HAL856. In the Read command, the first bits are valid. If, for example, the TC register (7 bits) is read, only the first 6 bits are valid. Command Parity Bit (CP) This parity bit is “1” if the number of zeros within the 3 Command Bits is odd. The parity bit is “0”, if the number of zeros is even. Data Parity Bit (DP) This parity bit is “1” if the number of zeros within the binary number is even. The parity bit is “0” if the number of zeros is odd. Address Bits (ADR) The Address code contains 4 bits and is a binary number. (see Table 5–3 on page 40) shows the available addresses for the HAL856 registers. Acknowledge After each telegram, the output answers with the Acknowledge signal. This logical “0” pulse defines the exact timing for tpOUT. Address Parity Bit (AP) This parity bit is “1” if the number of zeros within the 4 Address bits is odd. The parity bit is “0” if the number of zeroes is even. Table 5–2: Available commands Command Code Explanation READ 0 read a Setup EEPROM register (like TC, TCSQ, magnetic range, etc.) READL 6 read a Characteristics EEPROM register (setpoints 0 to 15) READH 7 read a Characteristics EEPROM register (setpoints 16 to 31) WRITE 3 write a Setup EEPROM register (like TC, TCSQ, Magnetic range, etc.) WRITEL 1 write a Characteristics EEPROM register (setpoints 0 to 15) WRITEH 2 write a Characteristics EEPROM register (setpoints 16 to 31) PROM 4 program all non-volatile registers ERASE 5 erase all non-volatile registers Please note: The LOCK bit is set by using the WRITE command followed by a PROM. 38 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 5.4. Number Formats SHIFT Binary number: – The register range is from −1024 up to 1023. – The register value is calculated by: The most significant bit is given as first, the least significant bit as last digit. Shift SHIFT = × 1024 100% Example: 101001 represents 41 decimal. SLOPE Signed binary number: The first digit represents the sign of the following binary number (1 for negative, 0 for positive sign). Example: – The register range is from −8192 up to 8191. – The register value is calculated by: 0101001 represents +41 decimal 1101001 represents −41 decimal TC and TCSQ Two’s-complementary number: – The TC register range is from −31 up to 31. The first digit of positive numbers is “0”, the rest of the number is a binary number. Negative numbers start with “1”. In order to calculate the absolute value of the number, calculate the complement of the remaining digits and add “1”. – The TCSQ register range is from 0 up to 31. Example: Note: The word length TC register is 7 bit. The 6 LSBs represent a signed binary number. The MSB has to be ignored. 0101001 represents +41 decimal 1010111 represents −41 decimal MODE – The register range is from 0 up to 16383 and contains the settings for PERIOD, FORMAT, FILTER, and RANGE: 5.5. Register Information CURRENTSOURCE – The register range is from 0 to 1023 and contains the settings for LOW CURRENT, HIGH CURRENT, and SLEW RATE: CURRENTSOURCE = SLEW RATE × 128 + LOW CURRENT × 8 + HIGH CURR ENT Please refer to the data sheet for the available PERIOD, FORMAT, FILTER, and RANGE values. DIGITAL-READOUT PARTNUMBER – The register range is from 0 up to 2047. – This register is read only. – The register range is from 0 up to 4095. OFFSET CORRECTION – The register range is from 0 to 31 – The MSB is set to activate the offset correction. Micronas March 23, 2010; DSH000142_002EN 39 HAL856 DATA SHEET SPECIAL CUSTOMER DEACTIVATE – The register range is from 0 to 63 and contains the settings for OUTPUT BITTIME and PARTNUMBER ENABLE: SPECIAL CUSTOMER = PARTNUMBER ENABLE × 16 + OUTPUT BITTIME This register can only be written. – The register has to be written with 2063 decimal (80F hexadecimal) for the deactivation. – The sensor can be reset with an Activate pulse on the output pin or by switching off and on the supply voltage. Note: When output format PWM is used the default values for the PARTNUMBER ENABLE bit must not be modified: HAL856: PARTNUMBER ENABLE = 0 Table 5–3: Available register addresses for HAL856 Register Code Data Bits Format Customer Remark Currentsource 1 10 binary read/write/program Used to define output slew rate and output current levels (IDD_HIGH and IDD_LOW) Partnumber 2 11 binary read/write/program Only with Biphase-M mode Shift 3 11 two’s compl. read/write/program Slope 4 14 signed binary read/write/program Mode 5 14 binary read/write/program Range, filter, and output format settings Lock 6 1 binary write/program Lock bit Digital Readout 7 12 binary read Digital value after signal processing Offset Correction 8 5 two’s compl. (4 LSBs) read/write/program Compensation of system offsets Specialcust. 9 6 binary read/write/program Special customer register To define Biphase-M bittime and Partnumber Enable TC 11 6 signed binary (6 LSBs) read/write/program Linear temperature coefficient TCSQ 12 5 binary read/write/program Quadratic temperature coefficient Curve Low 0 ... 15 9 binary write/read/program Setpoints 0 to 15 Curve High 0 ... 15 9 binary write/read/program Setpoints 16 to 31 40 March 23, 2010; DSH000142_002EN Micronas HAL856 DATA SHEET 5.6. Programming Information If the content of any register is to be changed, the desired value must first be written into the corresponding RAM register. Before reading out the RAM register again, the register value must be permanently stored in the EEPROM. Permanently storing a value in the EEPROM is done by first sending an ERASE command followed by sending a PROM command and a read command. The address within the ERASE and PROM commands is not important. ERASE and PROM act on all registers in parallel. If all HAL856 registers are to be changed, all writing commands can be sent one after the other, followed by sending one ERASE and PROM command at the end. During all communication sequences, the customer has to check if the communication with the sensor was successful. This means that the acknowledge and the parity bits sent by the sensor have to be checked by the customer. If the Micronas programmer board is used, the customer has to check the error flags sent from the programmer board. It is recommended to use the programmer board version 5.1. Further information for the programming of the sensor can be found in the application note for the programmer board. Note: For production and qualification tests, it is mandatory to set the LOCK bit after final adjustment and programming of HAL856. The LOCK function is active after the next power-up of the sensor. The success of the LOCK process should be checked by reading at least one sensor register after locking and/or by an analog check of the sensors output signal. Electrostatic Discharges (ESD) may disturb the programming pulses. Please take precautions against ESD. Micronas March 23, 2010; DSH000142_002EN 41 HAL856 DATA SHEET 6. Data Sheet History 1. Data Sheet: “HAL85x Programmable Linear HallEffect Sensor”, Dec. 5, 2005, 6251-604-1DS. First release of the data sheet. Major changes: – Section 3.6. Characteristics changed – Section 2. Functional Description: new features added – Section 2.3. Calibration Procedure: completely updated 2. Data Sheet: “HAL856 Programmable Linear HallEffect Sensor with Arbitrary Output Characteristic (2-Wire)”, Jan. 27, 2009, DSH000142_001EN. First release of the HAL856 data sheet. Originally created for HW version HACD-4-4. Major changes: – The previous data sheet for HAL85x has been separated into two individual data sheets, one each for HAL855 and for HAL856. This document describes HAL856 only. – Section 1.6. Solderability and Welding updated – Section 2.1. General Function updated – Section 2.2. Digital Signal Processing and EEPROM updated – Section 3.1. Outline Dimensions updated – Section 3.5.1. Power Diagram added – Section 3.6. Characteristics updated – Section 3.9. Typical Characteristics added – Section 4. Application Notes: updated – Section 4.6. Start-Up Behavior added 3. Data Sheet: “HAL856 Programmable Linear HallEffect Sensor with Arbitrary Output Characteristic (2-Wire)”, March 23, 2010, DSH000142_002EN. Second release of the HAL856 data sheet. Major changes: VDD rise time added Micronas GmbH Hans-Bunte-Strasse 19 ⋅ D-79108 Freiburg ⋅ P.O. Box 840 ⋅ D-79008 Freiburg, Germany Tel. +49-761-517-0 ⋅ Fax +49-761-517-2174 ⋅ E-mail: [email protected] ⋅ Internet: www.micronas.com 42 March 23, 2010; DSH000142_002EN Micronas