A1330 Programmable Angle Sensor IC with Analog and PWM Output FEATURES AND BENEFITS * Contactless 0 to 360 angle sensor IC, for angular position, rotational speed, and direction measurement * Single and dual die options available in same package * Non-volatile memory (EEPROM) for use in application trimming/calibration * Circular Vertical Hall (CVH) technology provides a single-channel sensor system with air gap independence * Angle Refresh Rate (output rate) configurable between 25 and 3200 s through EEPROM programming * Customer-programmable output clamp levels provide short-circuit diagnostic capabilities * Open-circuit detection on ground pin (broken wire) * Undervoltage lockout for VCC below specification * Fine angle scaling for short-stroke applications * Missing Magnet Error flag for notifying controller of low magnetic field level * EEPROM programmable angle reference (0) position and rotation direction (CW or CCW) * AEC-Q100 automotive qualified PACKAGE: 8-pin TSSOP (LE package) Regulator Multisegment CVH Element The A1330 is a 360 angle sensor IC that provides contactless high-resolution angular position information based on magnetic Circular Vertical Hall (CVH) technology. It has a system-onchip (SoC) architecture that includes: a CVH front end, digital signal processing, and an analog output driver. It also includes on-chip EEPROM technology, capable of supporting up to 100 read/write cycles, for flexible end-of-line programming of calibration parameters. Broken ground wire detection and user-selectable output voltage clamps make the A1330 ideal for high-reliability applications requiring high-speed 0 to 360 angle measurements. The A1330 provides adjustable internal averaging, allowing response time to be traded for resolution. This is ideal for applications operating at low rotational velocities requiring high precision. For higher RPM applications, the A1330 provides industry-leading analog response time when no averaging is enabled. With programmable angle scaling, the A1330 supports applications requiring short angular displacements, while maintaining full dynamic range on the output. Programmable minimum and maximum angle thresholds allow diagnosis of mechanical failures. The A1330 is available as either a single or dual die option, in an 8-pin TSSOP. The package is lead (Pb) free with 100% matte-tin leadframe plating. Not to scale VCC DESCRIPTION SoC die 1 To all internal circuits DIGITAL CONTROLLER Temperature Compensation Internal Calibration ANALOG FRONTEND ADC Interpolator ANALOG BACKEND Output Buffer EEPROM Short Stroke Bandpass Filter VOUT Zero Angle Diagnostics DIGITAL BACKEND LPF SD Mod PWM MOD GND Output Controller SoC die 2 (optional) Functional Block Diagram A1330-DS, Rev. 2 MCO-0000317 August 3, 2018 Programmable Angle Sensor IC with Analog and PWM Output A1330 SELECTION GUIDE Part Number A1330LLETR-T A1330LLETR-P-T A1330LLETR-DD-T A1330LLETR-P-DD-T A1330LLETR-T-C02 Application Number of Die Analog Output Single Die PWM Output Single Die Analog Output Dual Die PWM Output Dual Die Analog Output [2] Single Die Package Packing [1] 8-pin TSSOP 4000 pieces per 13-inch reel Contact AllegroTM for additional packing options. [2] Increased Angle averaging and Analog hysteresis settings for reduced angle noise. [1] ABSOLUTE MAXIMUM RATINGS Characteristic Symbol Notes Rating Unit Forward Supply Voltage VCC Not sampling angles 26.5 V Reverse Supply Voltage VRCC Not sampling angles -18 V Forward Output Voltage VOUT VOUT < VCC + 2V Reverse Output Voltage VROUT 16 V 0.5 V Operating Ambient Temperature TA -40 to 150 C Maximum Junction Temperature TJ(max) 165 C Tstg -65 to 170 C Storage Temperature L range THERMAL CHARACTERISTICS: May require derating at maximum conditions; see application information Characteristic Package Thermal Resistance Symbol RJA Value Unit LE-8 single die package Test Conditions* 145 C/W LE-8 dual die package 277 C/W *Additional thermal information available on the Allegro website. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 2 Programmable Angle Sensor IC with Analog and PWM Output A1330 Table of Contents Features and Benefits............................................................ 1 Description........................................................................... 1 Packages............................................................................. 1 Functional Block Diagram...................................................... 1 Selection Guide.................................................................... 2 Absolute Maximum Ratings.................................................... 2 Thermal Characteristics......................................................... 2 Pinout Diagrams and Terminal Lists......................................... 4 Operating Characteristics....................................................... 5 Typical Performance Characteristics........................................ 7 Functional Description........................................................... 8 Operational Modes............................................................. 8 Angle Measurement........................................................... 8 Short Stroke...................................................................... 8 Output Types..................................................................... 8 Undervoltage and Overvoltage Lockout.............................. 10 Hysteresis....................................................................... 10 Programming Serial Interface................................................11 Transaction Types.............................................................11 Writing the Access Code....................................................11 Writing to Non-Volatile Memory...........................................11 Writing to Volatile Registers............................................... 12 Reading from EEPROM.................................................... 12 Error Checking................................................................ 12 Serial Interface Reference.................................................... 13 Serial Interface Message Structure.................................... 14 Special Access Code Commands...................................... 15 EEPROM Locking............................................................ 16 Safety Features............................................................... 16 Internal Detection Circuitry................................................ 16 Detecting Broken Ground Wire.......................................... 16 Angle Compensation........................................................ 18 Angle Averaging.............................................................. 18 Pre-Gain Offset................................................................ 19 Polarity Adjust................................................................. 19 Short Stroke.................................................................... 19 Clamp and Roll-Over Logic............................................... 21 Additional Short Stroke Examples...................................... 22 Application Information........................................................ 24 Magnetic Target Requirements.......................................... 24 Field Strength.................................................................. 24 Setting the Zero-Degree Position....................................... 25 Magnetic Misalignment..................................................... 25 Application Circuit Description........................................... 26 ESD Performance............................................................ 26 EEPROM Memory Map....................................................... 27 Package Outline Drawings................................................... 35 APPENDIX A: Angle Error and Drift Definition........................A-1 APPENDIX B: CRC Documentation......................................B-1 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 3 Programmable Angle Sensor IC with Analog and PWM Output A1330 PINOUT DIAGRAMS AND TERMINAL LIST TABLES VCC 1 8 NC VOUT 2 7 NC NC 3 6 NC GND 4 5 NC LE-8 Package Pinout (single die) Terminal List Table (Single Die) Pin Name Pin Number Function VCC 1 Device power supply. Serves as Manchester communication input pin. VOUT 2 Angle output (analog or PWM). Manchester output during serial communication. Input for EEPROM programming pulses. NC* 3,5,6,7,8 Not connected; connect to ground for optimal ESD performance GND 4 Ground * NC pins must be tied to GND for optimum ESD performance. Terminal List Table (Dual Die) VCC_1 1 VOUT_1 2 NC 3 GND_1 4 8 NC 7 GND_2 6 VOUT_2 Pin Name Pin Number VCC_1 1 VOUT_1 2 Angle output (analog or PWM). Manchester output during serial communication. Input for EEPROM programming pulses. (die 1) NC* 3, 8 Not connected; connect to ground for optimal ESD performance GND_1 4 Ground (die 1) VCC_2 5 Device power supply. Serves as Manchester communication input pin. (die 2) VOUT_2 6 Angle output (analog or PWM). Manchester output during serial communication. Input for EEPROM programming pulses. (die 2) GND_2 7 Ground (die 2) 5 VCC_2 LE-8 Package Pinout (dual die) Function Device power supply. Serves as Manchester communication input pin. (die 1) * NC pins must be tied to GND for optimum ESD performance. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 4 Programmable Angle Sensor IC with Analog and PWM Output A1330 OPERATING CHARACTERISTICS: Valid over the full operating voltage and ambient temperature ranges, unless otherwise noted Characteristics Symbol Test Conditions Min. Typ. Max. Unit[1] 4.5 - 5.5 V TA 25C - 12 15 mA TA < 25C - 12.6 16 mA One die, PWM output, unloaded output - 8.5 10 mA VUVLO(H) Maximum VCC, dV/dt = 1V/ms, TA = 25C, A1330 sampling enabled, rising VCC - - 4.65 V VUVLO(L) Maximum VCC, dV/dt = 1V/ms, TA = 25C, A1330 sampling disabled, falling VCC 3.9 - 4.5 V dV/dt = 1V/ms, TA = 25C - 180 - mV VOVLO(H) Maximum VCC, dV/dt = -1V/ms, TA = 25C, A1330 sampling disabled - 6.3 - V VOVLO(L) Maximum VCC, dV/dt = 1V/ms, TA = 25C, A1330 sampling enabled 5.5 5.9 - V mV ELECTRICAL CHARACTERISTICS Supply Voltage [2] VCC Supply Current ICC Undervoltage Lockout Threshold Voltage[3] Undervoltage Lockout Threshold Hysteresis VUVLO(HYS) Overvoltage Lockout Threshold Voltage Overvoltage Lockout Threshold Hysteresis One die, analog output, unloaded output VOVLO(HYS) dV/dt = -1V/ms, TA = 25C - 450 - VZSUP ICC = ICC + 3mA, TA = 25C 26.5 - - V - - 5 mA - 300 - s Supply Zener Clamp Voltage Reverse-Battery Current IRCC Power-On Time[4] tPO VRCC = 18 V, TA = 25C ANALOG OUTPUT CHARACTERISTIC DC Output Resistance[4] Output Load Resistance[4] Output Current Limit Output Load Capacitance[4] Broken Wire Voltage Output Slew Rate DAC Output Noise[4] ROUT - 1 - VOUT to VCC 4.7 - - k VOUT to GND 4.7 - - k Minimum output, shorted to 5 V 24 29 34 mA Maximum output, shorted to GND - 3 - mA - - 10 nF VBRK(H) TA = 25C, RL(PU) = 10 k to VCC - VCC - V VBRK(L) TA = 25C, RL(PD) = 10 k to GND - 130 - mV 10k pull-up - 100 - V/ms DAC output, excluding angle measurement noise, 30kHz BW setting - - 15 mVp-p DAC output, excluding angle measurement noise, 15kHz BW setting - - 10 mVp-p Across entire code range, theoretical noisefree input, 30kHz BW - 12 - bits - <1 - % Absolute change in analog output from 25C to 150C - 10 30 mV Absolute change in analog output from 25C to -40C - 10 - mV RL ILIMIT COUT SR ANOISE Average DAC Resolution[4] Res(avg) Output Ratiometry Error [4] RatERROR Analog Drift |VDRIFT| Continued on the next page... Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 5 Programmable Angle Sensor IC with Analog and PWM Output A1330 OPERATING CHARACTERISTICS (continued): Valid over the full operating voltage and ambient temperature ranges, unless otherwise noted Characteristics Symbol Test Conditions Min. Typ. Max. Unit[1] 4.65 4.75 - V ANALOG OUTPUT CHARACTERISTIC (continued) VOUT(MAX) Max input angle position; VCC = 5V, HIGH_CLAMP = 0 VOUT(MIN) 0 input angle position; VCC = 5V, HIGH_CLAMP = 0 - 0.25 0.35 V Clamp High[4] VCLAMP(H) Valid for Analog or PWM output, EEPROM programmable 32 - 95 % VCC or DC Clamp Low[4] VCLAMP(L) Valid for Analog or PWM output, EEPROM programmable 5 - 68 % VCC or DC 156.25 1250 20,000 Hz 24 29 34 mA Output Saturation Voltage OUTPUT CLAMP PROGRAMMING PWM INTERFACE SPECIFICATIONS PWM Carrier Frequency[4] fPWM Programmable, 3 bit field Output Current Limit ILIMIT Minimum output, shorted to 5 V Pull-up Load [5] 4.7 - - k PWM Duty Cycle Minimum [4] DPWM(MIN) LOW_CLAMP = 0 - 5 - % Maximum [4] DPWM(MAX) HIGH_CLAMP = 0 - 95 - % B Range of input field - - 1200 G PWM Duty Cycle RL MAGNETIC CHARACTERISTICS Magnetic Field ANGLE CHARACTERISTICS Output[5] Angle Refresh Rate[6] Response Time[4] Temperature Drift Angle Error Angle Noise Angle Drift Over Lifetime [7] [1] 1 RESANGLE tANG tRESPONSE ANGLEDRIFT ERRANG NANG ANGLEDRIFT_LIFE - 12 - bit ANG_AVE = 0 - 25 - s ANG_AVE = 0 - 120 - s - 200 - s -1.8 0.5 1.8 degrees ANG_AVE = 3 Angle change from 25C; TA = 150C, B = 300 G Angle change from 25C; TA = -40C, B = 300 G - 0.8 - degrees TA = 25C, ideal magnet alignment, B = 300G -1.1 0.4 1.1 degrees TA = 150C, ideal magnet alignment, B = 300G -1.5 0.5 1.5 degrees TA = 25C, B = 300G, no internal filtering, target rpm = 0, 3 sigma, PWM output - 0.6 - degrees TA = 150C, B = 300G, no internal filtering, target rpm = 0, 3 sigma, PWM output - 0.75 - degrees B = 300 G, typical angle drift observed following AEC-Q100 qualification testing - 0.5 - degrees G (gauss) = 0.1 mT (millitesla). Operation guaranteed down to 4.5 V, once VCC has risen above 4.65 V. [3] At power-on, the sensor IC will not respond to commands until V CC rises above VUVLO(H). After that, the sensor IC will perform and respond normally until VCC drops below VUVLO(L). [4] Parameter is not guaranteed at final test. Values for this characteristic are determined by design. [5] RES ANGLE represents the number of bits of internal angle information available. [6] The rate at which a new angle reading will be ready. [7] Maximum of 1.0 degree increase in angle error observed following AEC-Q100 stress. [2] (%) Angular Position Transducer Output 50 0 Response Time, tRESPONSE t Definition of Response Time Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 6 Programmable Angle Sensor IC with Analog and PWM Output A1330 TYPICAL PERFORMANCE CHARACTERISTICS 2 Mean +/- 3 Sigma 1.5 Angle Drift in Degrees Angle Error in Degrees 2 1 0.5 0 0 50 100 Ambient Temperature in Degrees C 1.5 1 0.5 0 150 Figure 1: Peak Angle Error over Temperature (300 G) Mean +/- 3 Sigma 0 50 100 Ambient Temperature in Degrees C Figure 2: Maximum Absolute Drift from 25C Reading (300 G) 15 2 Analog Output PWM Output +/-3 Sigma Mean +/- 3 Sigma 1.8 150 14 1.6 13 12 1.2 ICC in mA Noise in degrees 1.4 1 11 0.8 10 0.6 9 0.4 0.2 0 -40 8 -20 0 20 40 60 80 100 Ambient Temperature in Degrees C 120 140 Figure 3: Noise Performance over Temperature (3 Sigma, 300G, no internal filtering, Analog Output, 1nF output capacitance) 7 -40 -20 0 20 40 60 80 100 Ambient Temperature in Degrees C 120 140 Figure 4: ICC over Temperature (VCC = 5.0 V) Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 7 Programmable Angle Sensor IC with Analog and PWM Output A1330 FUNCTIONAL DESCRIPTION Operational Modes Short Stroke The A1330 is a rotary position Hall-effect-based sensor IC. The sensor IC measures the direction of the magnetic field vector through 360 in the x-y plane (parallel to the branded face of the device) and computes an angle measurement based on the actual physical reading, as well as any internal parameters that have been set by the user. Short stroke (or fine angle scaling) allows for magnetic angle rotations smaller than 360 degrees to be represented by full-scale deflection. This feature is enabled in "Short Stroke" mode. In this mode, the raw angle reading is scaled via a programmable GAIN setting. Minimum and maximum angle thresholds may be programmed to detect hardware malfunctions. When a raw angle greater than the maximum angle threshold is detected, the sensor output will tri-state, alerting the host microprocessor of an unexpected condition. Programmable Clamp_High and Clamp_ Low settings allow the maximum or minimum output level to be customizable. Internal averaging may be enabled to improve signal resolution. Advanced offset and gain adjustment options are available in the A1330. These options can be configured in the onboard EEPROM, providing a wide range of sensing solutions in the same device. Device performance can be optimized by enabling individual functions or disabling them in EEPROM to minimize latency. Angle Measurement The A1330 can monitor the angular position of a rotating magnet at speeds ranging from 0 to more than 7,000rpm. The raw angle data is received in a periodic stream, and several samples may be accumulated and averaged, based on a userselected EEPROM field. This feature increases the effective resolution of the system. The amount of averaging is determined by the user-programmable ANG_AVE field. The user can configure the quantity of averaged samples by powers of two to determine the refresh rate, the rate at which successive averaged angle values are fed into the post-processing stages. The available rates are set as follows: Output Types The A1330 is set at Allegro factory for either analog or PWM output. ANALOG OUTPUT The A1330LLETR-T and A1330LLETR-D-T feature an analog output, proportional to a 12-bit digital angle value. Angles 0.0 through 359.9 degrees are mapped to voltages between the default VCLAMPL and default VCLAMPH. The output voltage will increase linearly, between the clamp settings when a linearly increasing magnetic angle is detected. Voltage values beyond the upper or lower clamps represent diagnostic regions. Output voltages within these two regions will only occur if the device detects an abnormal operating condition or internal error. 5 Upper Diagnostic Region Clamp High 4.5 4 3.5 3 VOUT The device is a programmable system-on-chip (SoC). The integrated circuit includes a Circular Vertical Hall (CVH) analog front end, a high-speed sampling A-to-D converter, digital filtering, digital signal processing, and a high-speed Digital-to-Analog converter. Quantity of Samples Averaged Refresh Rate (s) 000 1 25 001 2 50 010 4 100 011 8 200 1 100 16 400 0.5 101 32 800 0 110 64 1600 111 128 3200 Linear Range ANG_AVE [2:0] 2.5 2 1.5 Clamp Low Lower Diagnostic Region 0 72 144 216 288 360 432 504 576 648 720 Angles (degrees) Figure 5: Output Value for a 0-720 Magnetic Input Signal Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 8 Programmable Angle Sensor IC with Analog and PWM Output A1330 BACKEND DAC BW The default setting of 30 kHz is recommended for most applications, providing a good balance between low noise and fast response time. For applications especially sensitive to noise, it is recommend to choose the 15 kHz option and use the internal digital averaging to further reduce front end noise. PWM OUTPUT The A1330LLETR-P-T and A1330LLETR-P-DD-T provide a pulse-width-modulated open-drain output, with the duty cycle (D) proportional to measured angle. The PWM duty cycle is clamped at 5% and 95% by default and may be adjusted further for diagnostic purposes. D = 5% 360 D = 50% D = 95% HIGH_CLAMP LOW_CLAMP 0 PWM Waveform (V) Magnetic Field Angle () A 5% D corresponds to 0; a 95% D corresponds to 360. D0T D1T D2T D3T D4T D5T D6T D7T D8T D9T D10T D(x) = tpulse(x) / Tperiod tpulse(5) Tperiod 0T 1T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T (0 Degrees) 120 Degrees PWM Period 360 Degrees 5 % LOW 5 % HIGH 15 kHz 5 % LOW 5 % HIGH 1 PWM Period PWM Period 5 % LOW 5 % HIGH 30 kHz 5 % LOW 5 % HIGH DAC Bandwidth 0 5 % LOW 5 % HIGH ABW PWM Period 5 % LOW 5 % HIGH The bandwidth of the backend analog filter is adjustable in EEPROM between two settings. 240 Degrees Figure 7: Pulse-Width Modulation (PWM) Examples PWM CARRIER FREQUENCY The PWM carrier frequency is controlled via a 3-bit EEPROM field. PWM_FREQ PWM Frequency 000 20 kHz 001 10 kHz 010 5 kHz 011 2.5 kHz 100 1.25 kHz 101 625 Hz 110 312.5 Hz 111 156.25 Hz Time Figure 6: PWM Mode Outputs a Duty Cycle Proportional to Sensed Angle Angle is represented in 12-bit resolution and can never reach a full 360 (0 and 360 are the same physical position). The maximum duty cycle high period with default clamp values is: DutyCycleMax (%) = (4095 / 4096) x 90 + 5. The derived angle (in degrees) from a given PWM duty cycle is: Angle = (D - 5) / 90 x 360. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 9 Programmable Angle Sensor IC with Analog and PWM Output A1330 Undervoltage and Overvoltage Lockout The Output pin state changes according to the VCC level. This is shown in Figure 8, with typical threshold values highlighted. By using a pull-up/pull-down resistor, one is able to know the sensor is in high-impedance, as the output will be beyond the clamp values. Hysteresis The periodic behavior intrinsic to angle sensing results in output voltage swings from minimum to maximum deflection during 0/360 degree crossings. For some applications, this may be problematic, especially if a high-noise environment results in values close to 0 degrees intermittently appearing as 359.9 degrees. As an alternate approach, the HYST_0/360 bit may be set in EEPROM, to enable hysteresis only around the 0/360 degree crossing. Note: Unlike the typical description of `Hysteresis", the implementation used in the A1330 is "two-sided", meaning the hysteresis gap is independent of rotation direction. This effectively increases the output step size and as a result may not be desired. To apply this filtering method to only angle ranges of importance (in which a 0/360 crossover could occur), the HYST_0/360 bit can be set. Table 1: HYST Settings in EEPROM To prevent oscillations between mininimum or maximum output, the A1330 features programmable hysteresis, specified by the 2-bit HYST EEPROM field. When hysteresis is enabled, the output will not change for angle variations smaller than the hysteresis setting. Code Hysteresis (in LSB) Angle Equivalent 00 0 0 01 4 0.352 10 8 0.703 11 16 1.406 VCC (V) Overvoltage Lockout Threshold Voltage (High), VOVLO(H) 7.0 Overvoltage Lockout Threshold Voltage (Low), VOVLO(L) 6.0 5.5 4.65 4.5 Undervoltage Lockout Threshold Voltage (Low), VUVLO(L) Undervoltage Lockout Threshold Voltage (High), VUVLO(H) 4.0 3.8 1.5 DIGON t Valid Output Tri-State Accuracy Reduced Accuracy Reduced Tri-State Valid Output Accuracy Reduced Tri-State Output Pin State Accuracy Reduced Figure 8: Relationship of VCC and Output Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 10 Programmable Angle Sensor IC with Analog and PWM Output A1330 PROGRAMMING SERIAL INTERFACE The A1330 incorporates a serial interface that allows an external controller to read and write registers in the A1330 EEPROM and volatile memory. The A1330 uses a point-to-point communication protocol, based on Manchester encoding (a rising edge indicates a 0 and a falling edge indicates a 1), with address and data transmitted MSB first. Transaction Types Each transaction is initiated by a command from the controller; the A1330 does not initiate any transactions. Two commands are recognized by the A1330: Write and Read. There also are three special function Write commands: Write Access Code, Manchester Enable, and Manchester Disable. One response frame type is generated by the A1330, Read Acknowledge. If the command is a read, the A1330 responds by transmitting the requested data in a Read Acknowledge frame. If the command is a write, the A1330 does not acknowledge. As shown in Figure 9, The A1330 receives all commands via the VCC pin. It responds to Read commands via the VOUT pin. This implementation of Manchester encoding requires the communication pulses be within a high (VMAN(H)) and low (VMAN(L)) range of voltages for the VCC line and the VOUT line. The Write command pulses to EEPROM are supported by two high-voltage pulses on the VOUT line. Write/Read Command Manchester Code to logic high supply VCC Writing the Access Code If the external controller will write to or read from the A1330 memory during the current session, it must establish serial communication with the A1330 by sending a Write Access Command within 70ms after powering up the A1330. If this deadline is missed, all write and read access is disabled until the next power-up. Writing to EEPROM When writing to non-volatile EEPROM, following the write command, the controller must also send two Programming pulses. These pulses are well-separated, long, high-voltage strobes transmitted on the VOUT pin. These strobes are detected internally, allowing the A1330 to boost the voltage on the EEPROM gates. The digital logic will automatically detect an impending EEPROM write and tri-state the output pin. The required sequence is shown in Figure 12. The voltage pulse profile necessary for EEPROM programming is shown in Figure 10. Minimum and maximum times are described in Table 2. >300 s >60 s 10 ms 2 s >300 s >60 s 10 ms 18 V ERASE PROGRAM 6V Figure 10: Top-Level Programming Interface Controller A1330 VOUT High Voltage pulses to activate EEPROM cells GND Read Acknowledge Manchester Code Figure 9: Top-Level Programming Interface Table 2: EEPROM Pulse Parameter Comments Min. Typ. Max. Unit Pulse High Time Time above minimum pulse voltage 8 10 11 ms Rise Time 10% to 90% of minimum pulse level 300 - - s Fall Time 10% to 90% of minimum pulse level 60 - - s 18 19 19.5 V 2s - 50ms s/ms Pulse Voltage Separation time Time between first pulse dropping below 6V and 2nd pulse rising above 6V Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 11 Programmable Angle Sensor IC with Analog and PWM Output A1330 Writing to Volatile Registers Error Checking The three main volatile write commands (Write Access, Manchester Enable and Manchester Disable) are all accomplished by writing to register 0x1F. The serial interface uses a cyclic redundancy check (CRC) for data-bit error checking (synchronization bits are ignored during the check). In addition to these three commands, the PWM output version requires a PWM Disable command be written prior to performing a Manchester read and a PWM Enable command prior to going back to Normal Mode. These two commands are written to register 0x22. The CRC algorithm is based on the polynomial Reading from EEPROM To read from EEPROM, the Manchester mode must be entered. This is accomplished by sending the Manchester Enable code on VCC. For PWM parts, an additional PWM Disable command must also be sent. g(x) = x3 + x + 1 and the calculation is represented graphically in Figure 11. The trailing 3 bits of a message frame comprise the CRC token. The CRC is initialized at 111. C0 C1 1x 0 Write Access Command EEPROM Write Write To EEPROM 0x 2 1x 3 = x3 + x + 1 Figure 11: CRC Calculation EEPROM Programming Pulses Normal Operation Normal Operation VOUT Input Data C2 1x 1 After the Read Acknowledge frame has been received from the A1330, the controller must send a Manchester Disable command to restore VOUT to normal operation. The required sequence is shown in Figure 12. VCC , GND t <70 ms from power-on ts(PULSE,E) VCC Read From EEPROM Write Access Command Manchester Enable Command td(WRITE,E) EEPROM Read Manchester Disable <70 ms from power-on VOUT High Impedance Normal Operation Read Acknowledge High Impedance Normal Operation GND t td(DIS_OUT) td(START_READ) td(START_READ) td(ENB_OUT) Figure 12: Programming Read and Write Timing Diagrams Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 12 Programmable Angle Sensor IC with Analog and PWM Output A1330 SERIAL INTERFACE REFERENCE Table 3: Serial Interface Protocol Characteristics[1] Characteristics Symbol Note Min. Typ. Max. Unit INPUT/OUTPUT SIGNAL TIMING Access Code Timeout Baud Rate Bit Time Error Customer Access Code should be fully entered in less than tACC, measured from when VCC crosses VCC(UVH) - - 70 ms fs Defined by the input message bit rate sent from the external controller 5 - 40 kbps errTBIT Deviation in tBIT during one command frame -15 - +15 % td(READ) Required delay from the trailing edge of a Read Acknowledge frame to the leading edge of a following command frame 2 x tBIT - - s td(START_READ) Delay from the trailing edge of a Read command frame to the leading edge of the Read Acknowledge frame - 2 x tBIT - s Read Acknowledge Delay Read Delay[2] tACC td(DIS_OUT) Delay from the trailing edge of a Manchester Enable command frame to the device output going from normal operation to the highimpedance state 1- 1/4 x tBIT 5- 1/4 x tBIT 15 - 1/4 x tBIT s td(ENB_OUT) Delay from the trailing edge of a Manchester Disable command frame to the device output going from the high-impedance state to normal operation 1- 1/4 x tBIT 5- 1/4 x tBIT 15 - 1/4 x tBIT s EEPROM Programming Pulse Setup Time ts(PULSE,E) Delay from last bit cell of write command to start of EEPROM programming pulse 2 x tBIT - - s EEPROM Memory Write Delay td(WRITE,E) Required delay from the trailing edge of the second EEPROM Programming pulse to the leading edge of a following command frame 40 - - s Enable Manchester Delay[2] Disable Manchester Delay[2] EEPROM PROGRAMMING PULSE INPUT SIGNAL VOLTAGE Manchester Code High Voltage VMAN(H) Applied to VCC line 7.3 - - V Manchester Code Low Voltage VMAN(L) Applied to VCC line - - 6.3 V Minimum Rpullup = 5 k 0.9 x VS - - V Maximum Rpullup = 50 k 0.7 x VS - - V - - 0.35 V OUTPUT SIGNAL VOLTAGE (APPLIED ON PWM LINE) Manchester Code High Voltage VMAN(H) Manchester Code Low Voltage VMAN(L) 5 k Rpullup 50 k [1] Determined [2] by design. In the case where a slower baud rate is used, the output responds before the transfer of the last bit in the command message is completed. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 13 Programmable Angle Sensor IC with Analog and PWM Output A1330 Serial Interface Message Structure Read / Write The general format of a command message frame is shown in Figure 13. Note that, in the Manchester coding used, a bit value of 1 is indicated by a falling edge within the bit boundary, and a bit value of zero is indicated by a rising edge within the bit boundary. Synchronize 0 Memory Address Data 0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 MSB Each command is composed of two zero synchonization bits ("00") followed by a Read/Write bit, 6 bit address, 32 data bits (only for write commands) and 3 bits of CRC. All field are interpreted MSB first. ... CRC 0/1 0/1 C2 C1 C0 MSB Manchester Code per G. E. Thomas 0 0 1 1 0 Bit boundaries The read acknowledged frame is composed of two zero synchronization bits, 32 bits of data, and a 3 bit CRC. Figure 13: General Format for Serial Interface Commands The bits are described in Table 4. tBIT Write Command A5 A4 A0 D31 D30 D0 C2 C1 C0 t 0 0 0 Address Data CRC (Write) tBIT Read Command A5 A4 A0 C2 C1 C0 t 0 0 1 Address CRC (Read) tBIT Read Acknowledge D31 D30 D0 C2 C1 C0 t 0 0 Data CRC Figure 14: Manchester Format Example Table 4: Serial Interface Command General Format Quantity of Bits Name Values Description 2 Synchronization 00 Used to identify the beginning of a serial interface command and communication bit time 0 [As required] Write operation 1 [As required] Read operation 1 Read/Write 6 Address 0/1 [Read/Write] Register address (volatile memory or EEPROM) variable Data 0/1 [As required] 32 bits of data 3 CRC 0/1 Incorrect value indicates errors Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 14 A1330 Programmable Angle Sensor IC with Analog and PWM Output Special Access Code Commands There are two Manchester code commands: a write access code, which initiates serial communication and must be sent within tACC of power up; and a Disable Output Command, which toggles between mission mode (normal sensor behavior) and Manchester mode, allowing the part to respond to read requests. Both commands are written to volatile register 0x1F. 1. Write Access Code: Unlocks the customer address space. 2. Manchester Enable Command: Disables sensor output, allowing sensor to respond with a read acknowledge frame. 3. Manchester Disable Command: Exits Manchester mode and returns the sensor normal output mode. Write Access Code String ASCII Code (hex) "1330" 31 33 33 30 Manchester Enable Code String ASCII Code (hex) "READ" 52 45 41 44 Manchester Disable Code String ASCII Code (hex) "EXIT" 45 58 49 54 The PWM varient requires two additional commands. 1. PWM Disable Code: Disables the PWM modulator, allowing Manchester logic to control the open drain output. Must be sent after the Manchester Enable pulse, and prior to a read request. 2. PWM Enable Code: Moves control of the output driver back to the PWM logic. Must be sent prior to Manchester Disable command. PWM Disable Code Address Hex Code 0x22 0x01E6C0D PWM Enable Code Address Hex Code 0x22 0x21E6C0D Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 15 Programmable Angle Sensor IC with Analog and PWM Output A1330 EEPROM Locking Detecting Broken Ground Wire The EEPROM contains an EELOCK bit. When set high, this bit prevents the writing of all EEPROM locations. This is a safety feature guaranteeing EEPROM content integrity during operation in the field. If the GND pin is disconnected, node A becoming broken (Figure 15), the VOUT pin will go to a high-impedance state. Output voltage will go to VBRK(H) if a load resistor RL(PU) is connected to VCC or to VBRK(L) if a load resistor RL(PD) is connected to GND. The device will not respond to a magnetic field. Safety Features Lockout and clamping features protect the A1330 internal circuitry and prevent spurious outputs when the supply voltage is out of specification. Open ground circuit detection is also provided. If the ground wire is reconnected, the A1330 will resume normal operation. VCC Internal Detection Circuitry VCC VCC RL(PU) VCC Internal diagnostic circuitry monitors EEPROM ECC to ensure valid system configurations. Magnetic field amplitude is compared against a low field threshold to identify possible hardware malfunctions. During short stroke mode, minimum and maximum angle values may be specified to identify unexpected behavior and place the output in a safe state. These diagnostic modes may be disabled with an EEPROM mask bit. VOUT VOUT VCC A1330 A1330 GND GND A A RL(PD) Connecting VOUT to RL(PU) Connecting VOUT to RL(PD) Figure 15: Connection for Detecting Broken Ground Wire Table 5: Safety Features Diagnostic/Protection Description Output State Reverse VCC Current limiting (VCCx pin) - Output to VCC Current limiting (VOUT pin) - Output to Ground Current limiting (VOUT pin) - UVLO VCC below expected range Tri-state OVLO VCC above expected range Tri-state Uncorrectable EEPROM bit fault. Proper device configuration cannot be guaranteed Tri-state EEPROM dual bit fault Missing Magnet Monitors magnet field level in case of mechanical failure (default of 100 G) Tri-state Angle Out of Range During short-stroke operation, measured raw angle exceeds maximum specified angular displacement Tri-state Broken Ground Wire Broken ground connection Tri-state: output goes to VBRK(H) or VBRK(L) Internal monitor of the DAC interpolation block detects unexpected internal register changes and resets the interpolator Tri-state Digital Interpolation Error Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 16 Programmable Angle Sensor IC with Analog and PWM Output A1330 CVH Analog Front End Analog Conditioning ADC Angle Compensation Factory Configured Digital Angle Averaging Pre-Gain Offset Programmable Digital Adjustment Polarity Adjust Short Stroke Mapper Back End DAC PWM Out Figure 16: Digital Signal Path Description Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 17 Programmable Angle Sensor IC with Analog and PWM Output A1330 Angle Compensation Table 6: Refresh Rate based on Averaged Samples The A1330 is capable of compensating for alterations in angle readings that result from changes in the device temperature or applied field strength. The device comes from the factory preprogrammed with coefficient settings to allow compensation of linear shifts of angle with temperature and applied field. Angle Averaging The raw angle data is received in a periodic stream, and multiple samples may be accumulated and averaged, based on the userprogrammable ANG_AVE EEPROM field. This feature increases the effective resolution of the system. The user can configure the quantity of averaged samples by powers of two to determine the refresh rate, the rate at which successive averaged angle values are fed into the post-processing stages. The available rates are set as follows: ANG_AVE [2:0] Quantity of Samples Averaged 000 1 25 001 2 50 010 4 100 011 8 200 100 16 400 101 32 800 110 64 1600 111 128 3200 1 300 G 600 G 900 G 0.9 0.8 Noise in Degrees Refresh Rate (s) 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 1 2 3 4 Averaging Setting 5 6 7 Figure 17: 3 Sigma Angle Noise Over Averaging Settings. PWM Output, 25C, Multiple Field Levels. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 18 Programmable Angle Sensor IC with Analog and PWM Output A1330 Pre-Gain Offset Short Stroke Allows zeroing of the angle prior to applying gain. Set via the PREGAIN_OFFSET field in EEPROM. The A1330 features "short stroke" logic allowing a limited input signal to be gained up and use the full output range of the sensor. The short stroke logic consists of multiple steps. A high level block diagram is shown in Figure 18. Short stroke applies to both the PWM and analog output variants. Angle = Angle - PREGAIN_OFFSET Polarity Adjust Sets the polarity of the final angle output. When set to "1", the angle is complemented. Angle = 360 - Angle Angle In Pre-Gain Offset Polarity Adjust Yes Short Stroke Enabled? No Min/Max Input Comparison Gain Post Gain Offset Clamp and RollOver Logic Figure 18: High Level Short Stroke Block Diagram Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 19 Programmable Angle Sensor IC with Analog and PWM Output A1330 MIN/MAX INPUT ANGLE COMPARISON to use the Angle Averaging feature to minimize the impact of noise. The IC compares the pre-gained angle value to the boundaries set via the MIN_INPUT and MAX_INPUT EEPROM fields. If the angle is outside of the established boundaries the output will tristate to indicate an unexpected angle location. This feature is useful for applications where clamping is enabled and will otherwise mask excessive angular travel. When applying a non-integer gain, an asymetric transfer function will result, causing the output to jump to the minimum allowed output value before reaching the maximum allowed output value. As an example, if a gain of 4x is applied, with Clamp Enable (CE) and Roll-Over Enable (ROE) set to 0, the output angle will slew from 0-360 four times for a single 0-360 target rotation (this is shown in Figure 19 for 2 rotations of the target). However, if a gain of 4.5x is applied, the output will slew from 0-360 four and a half times. This results in a jump from 180 output to 0 output, at the 360 input position (shown in Figure 20). GAIN Adjusts the output dynamic range of the device. Gain is applied digitally and capable of expanding an 11.25 input angle to a full scale output deflection. It should be noted that with application of high gain, the front end noise will also be amplified. In such cases it is highly recommend POST-GAIN OFFSET Provides a final, post-gain angle adjustment. Sensor Output (degrees) 0/360 Roll-over 350 Sensor Output (degrees) 300 250 200 150 100 50 0 0 100 200 300 400 500 600 700 Target Rotation Figure 19: A1330 Output (in degrees) with 4.0x Gain Sensor Output (degrees) 0/360 Roll-over 350 Sensor Output (degrees) 300 250 200 150 100 50 0 0 100 200 300 400 Target Rotation 500 600 700 Figure 20: A1330 Output (in degrees) with 4.5x Gain Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 20 Programmable Angle Sensor IC with Analog and PWM Output A1330 Clamp and Roll-Over Logic Output behavior following gain and offset application is defined by the Clamp Enable (CE) and Roll-Over Enable (ROE) EEPROM bits. Together these two field select between four different output behavior types. Below are figures depicting the output behavior with different clamp and roll-over settings. CE ROE Description 0 0 Normal behavior. Roll-over at standard module 360. 0 1 Output rolls-over at the High and Low Clamp values. 1 0 Output clamps at the first encountered High/ Low Clamp value. 1 1 Roll-over occurs at standard module 360. Output is clamped to High/Low Clamps value. Clamping Only No Clamping or Rollover 360 360 Output Angle (degrees) Output Angle (degrees) High_Clamp 320 40 Low_Clamp 0 0 0 Input Angle (degrees) 0 360 Figure 21: CE = 0, ROE = 0. Applied gain = 4x. Input Angle (degrees) 360 Figure 23: CE = 0, ROE = 1. Applied gain = 4x. LOW_CLAMP = 10 (40), HIGH_CLAMP = 10 (320) Clamping + Rollover Rollover Only 360 High_Clamp 320 High_Clamp 320 Output Angle (degrees) Output Angle (degrees) 360 40 Low_Clamp 40 Low_Clamp 0 0 0 Input Angle (degrees) 360 Figure 22: CE = 1, ROE = 0. Applied gain = 4x. LOW_CLAMP = 10 (40), HIGH_CLAMP = 10 (320) 0 Input Angle (degrees) 360 Figure 24: CE = 1, ROE = 1. Applied gain = 4x. LOW_CLAMP = 10 (40), HIGH_CLAMP = 10 (320) Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 21 Programmable Angle Sensor IC with Analog and PWM Output A1330 Additional Short Stroke Examples To demonstrate short stroke, several possible scenarios are shown in the following figures. Range = 0 to 360 Gain = 1.00, Min Angle = 0, MAX_INPUT = 360 5 High Clamp = 4.75 4.5 4 4 3.5 3.5 3 3 High Clamp = 4.75 4.5 VOUT VOUT 5 Range = 0 to 360 Gain = 1.00, MIN_INPUT = 0, MAX_INPUT = 300 2.5 2 2.5 2 1.5 1.5 Clamps Output 1 Clamps Output 1 0.5 0.5 0 Low Clamp = 0.25 0 50 100 150 200 250 300 Low Clamp = 0.25 0 350 0 50 100 Magnetic Angle 250 300 350 Figure 26: Scenario B. Regular output for a 0-360 degree input angle. Gain = 1. Clamps set to 95% and 5%. Regular 0-360 degree input value. Gain = 1. MAX_INPUT = 300. Clamps set to 95% and 5%. Output goes into diagnostic region (in this case VCC) when input angle exceeds the MAX_INPUT set point. Range = 0 to 60 Gain = 1.00, MIN_INPUT = 0, MAX_INPUT = 360 Range = 0 to 60 Gain = 3.00, MIN_INPUT = 0, MAX_INPUT = 360 5 High Clamp = 4.75 4.5 4 4 3.5 3.5 3 3 High Clamp = 4.75 4.5 VOUT VOUT 200 Magnetic Angle Figure 25: Scenario A. 5 150 2.5 2 2.5 2 1.5 1.5 Clamps Output 1 Clamps Output 1 0.5 0.5 0 Low Clamp = 0.25 0 50 100 150 200 250 300 Magnetic Angle Figure 27: Scenario C. 0-60 degree input. Gain = 1. With no gain, a 60-degree input angle results in an output signal 1/6th of VCC. 350 Low Clamp = 0.25 0 0 50 100 150 200 250 300 350 Magnetic Angle Figure 28: Scenario D. 0-60 degree input. Gain = 3. With an increased Gain value of 3x, the same 60-degree input signal now results in 50% of VCC. The output signal is still free to swing from 5% to 95% of VCC. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 22 Programmable Angle Sensor IC with Analog and PWM Output A1330 Range = 0 to 80 Gain = 3.00, MIN_INPUT = 0, MAX_INPUT = 360 Range = 0 to 100 Gain = 3.00, MIN_INPUT = 0, MAX_INPUT = 90 5 5 4.5 4.5 4 4 3.5 3.5 3 High Clamp = 2.50 2.5 VOUT VOUT 3 2 High Clamp = 2.50 2.5 2 1.5 1.5 Clamps Output 1 Clamps Output 1 0.5 0.5 Low Clamp = 0.25 0 0 50 100 150 200 250 300 350 Low Clamp = 0.25 0 0 50 100 Magnetic Angle Figure 29: Scenario E. 0-80 degree input. Gain = 3. High Clamp reduduced to 50% of VCC. 60-degree input results in 50% output signal. With the reduced upper clamp value, maximum VOUT is 50% of VCC. Angle measurements greater than 60 degrees will be clamped to this 50% value. 150 200 250 300 350 Magnetic Angle Figure 30: Scenario F. 0-100 degree input. Gain = 3. Clamp_High reduced to 50% VCC. MAX_INPUT = 90. Similar to the above scenario, output voltage is clamped at 50% of VCC for any input angle greater than 60 degrees. However, when the input angle exceeds the MAX_INPUT threshold, output voltage goes to diagnostic state (VCC). In this example, if the expected input range is 60 degrees, a mechanical failure resulting in 100 degrees of rotation will be detected. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 23 Programmable Angle Sensor IC with Analog and PWM Output A1330 APPLICATION INFORMATION Magnetic Target Requirements Field Strength The A1330 is designed to operate with magnets constructed with a variety of magnetic materials, cylindrical geometries, and field strengths, as shown in Table 7. Contact Allegro for more detailed information on magnet selection and theoretical error. The A1330 actively measures and adapts to its magnetic environment. This allows operation throughout a large range of field strengths (recommended range is 300 to 1000 G, operation beyond this range is allowed with no long-term impact). Due to the greater signal-to-noise ratio provided at higher field strengths, performance inherently increases with increasing field strength. Typical angle performance over applied field strength and temperature are shown in Figure 32 and Figure 33. Table 7: Target Magnet Parameters Diameter (mm) Thickness (mm) Neodymium (bonded) 15 4 Neodymium (sintered)* 10 2.5 Neodymium (sintered) 8 3 Neodymium / SmCo 6 2.5 S N Thickness 2 Diameter -40C -10C 25C 85C 125C 150C 1.8 1.6 Angle Noise in Degrees Magnetic Material 1.4 1.2 Recommended Operating Range (300 G and above) 1 0.8 0.6 0.4 0.2 0 100 *A sintered Neodymium magnet with 10 mm (or greater) diameter and 2.5mm thickness is the recommended magnet for redundant applications. 200 300 400 500 600 Field Strength in Gauss 700 800 900 Figure 32: Typical Three Sigma Angle Noise Over Field Strength 1600 2.5 -40C -10C 25C 85C 125C 150C 1200 1000 800 NdFe30 600 SmCo24 400 200 0 Angle Error in Degrees Magnetic Field (G) 1400 Ceramic (Ferrite) 0.5 2.5 4.5 6.5 8.5 Figure 31: Magnetic Field versus Air Gap for a magnet 6mm in diameter and 2.5mm thick. Allegro can provide similar curves for customer application magnets upon request. Allegro recommends larger magnets for applications that require optimized accuracy performance. 2 1.5 Recommended Operating Range (300 G and above) 1 0.5 0 100 200 300 400 500 600 Field Strength in Gauss 700 800 900 Figure 33: Typical Angle Error Over Field Strength Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 24 Programmable Angle Sensor IC with Analog and PWM Output A1330 Setting the Zero-Degree Position Target poles aligned with A1330 elements When shipped from the factory, the default angle value when oriented as shown in Figure 34 is 162 for die 1 and 342 for die 2. In some cases, the end user may want to program and angle offset to compensate for variations in magnetic assemblies, or for applications where absolute system level readings are required. The A1330 features two different offset adjust field in EEPROM, which may be used to change the location of the 0/360discontinuity point. Depending on application either the PREGAIN_ OFFSET, the POSTGAIN_OFFSET or both may be used to such ends. Magnet Misalignment Magnetic misalignment with the A1330 package impacts the linearity of the observed magnetic signal and consequently the resulting accuracy. The influence of mechanical misalignment may be minimized by reducing the overall airgap and by choos- S E1 Pin 1 N E2 Figure 34: Orientation of Magnet Relative to Primary and Secondary Die ing a larger magnet diameter. Figure 35 shows the influence of magnet diameter of eccentricity error. The dual die variant of the A1330 uses a stacked die approach, resulting in a common eccentricity value for both die. This eliminates the "native misalignment" present in "side-by-side" packaging options. 2 6.00 mm Diameter 8.00 mm Diameter 10.00 mm Diameter 1.8 1.6 Angle Error 1.4 1.2 1 0.8 0.6 0.4 0.2 0 0 0.5 Misalignment (mm) 1 1.5 Figure 35: Simulated Error versus Eccentricity for different size magnet diameters, at 2.0 mm air gap Typical Systemic Error versus magnet to sensor eccentricity (daxial), Note: "Systemic Error" refers to application errors in alignment and system timing. It does not refer to sensor IC device errors. The data in this graph is simulated with ideal magnetization. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 25 Programmable Angle Sensor IC with Analog and PWM Output A1330 Application Circuit Description ESD Performance The analog output version of the A1330 may be operated with either a pull-up or pull-down resistor. Use of a load resistor is recommended, as this allows the output to float to a known "diagnostic" state in the event of a sensor diagnostic. Under certain conditions, the ESD rating of the dual die IC may be less than 2kV if ground pins are not tied to a common node. Contact Allegro for questions regarding ESD optimization. The PWM version, with its open-drain architecture, requires the output be connected to a voltage source, through a load resistor. Figure 36 shows a typical A1330 application circuit, for either analog or PWM outputs. For EMC sensitive environments, an output load capacitor of 2nF is recommended Table 8: HBM ESD Rating (per AEC-Q100 002) Package ESD Rating TSSOP-08 (single die) 6 kV TSSOP-08 (dual die) 6 kV [1] [1] All GND pins shorted together. Regulated 5 V VS VCC 0.1 F A1330 VOUT 10 k To ADC Optional 2 nF Capacitor for EMC GND Figure 36: Typical A1330 application circuit Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 26 Programmable Angle Sensor IC with Analog and PWM Output A1330 EEPROM MEMORY MAP The EEPROM memory map is shown below. All EEPROM may be read once the IC is in "Manchester Output Mode". Writing requires the EEPROM lock bit to be clear, and application of high voltage pulses on the output pin. See discussion on EEPROM programming for information on how to write EEPROM. Table 9: EEPROM Memory Map Address Bits 31:26 25 24 0x3A ECC R R 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 PREGAIN_OFFSET 0x3B ECC SS 0x3C ECC CE ROE MAX_INPUT 0x3D ECC ABW PO POSTGAIN_OFFSET 0x3E ECC EELO HYS_0 0x3F ECC 8 7 PWM_FREQ 5 4 3 2 1 0 Reserved Reserved HYS 6 Reserved GAIN MIN_INPUT HIGH_CLAMP ANG_AVE LOW_CLAMP MISS_MAG_THRSH INTER TOR 6 5 OVLO EED MAXA MINA MMF Customer Word Address 0x3A Bit 25 24 Name R R Default 0 0 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 PREGAIN_OFFSET 0 0 0 0 0 0 0 4 3 2 1 0 0 0 0 0 0 Reserved 0 0 0 0 0 0 0 0 0 0 0 0 PREGAIN_OFFSET [23:12]: Reserved [11:0]: Pregain offset (zero adjust), at 12-bit resolution. This value is subtracted from the measured angle value, independent of short stroke. Reserved EEPROM registers. Should be set to 0's. Value Description 0x0 to 0xFFF 0 to 359.91 subtracted from pre gain angle value. Address 0x3B Bit 25 Name SS Default 0 24 23 22 21 20 19 0 0 0 0 0 0 18 17 16 15 14 13 12 11 10 9 8 7 0 0 0 0 0 0 0 0 0 0 0 Reserved 0 6 5 4 3 2 1 0 0 0 0 0 0 0 GAIN 0 SS[25]: Reserved[24:13]: Enables "short stroke" mode. Gain and Min/Max Input angle checking are enabled. Reserved EEPROM registers. Should be set to 0's. Value Description 0 Short stroke not enabled 1 Short stroke enabled GAIN[12:0]: Sets gain to apply full dynamic range of the output for a limited input range. Only applied if SS is set to `1'. Applied gain is 1 plus the total value set in the Gain EEPROM field. GAIN specified in 5.8, unsigned form. Example: GAIN field = 0x055A equates to 5 + (90 / 256) = 5.3515625 Applied gain = 1 + GAIN = 6.3515625 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 27 Programmable Angle Sensor IC with Analog and PWM Output A1330 Address 0x3C Bit 25 24 Name CE ROE Default 0 0 23 22 21 20 19 18 17 16 15 14 13 12 11 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ROE[24]: Clamp enable. Roll-over enable. Value 1 8 7 6 5 4 3 2 1 0 0 0 0 0 0 MIN_INPUT CE[25]: 0 9 MAX_INPUT 0 0 Value Description 0 0 0 Description Disabled clamps 0 Disables roll-over Enables clamps 1 Enables roll-over Both CE and ROE interact to create four distinct operating modes. See table below. CE ROE Description 0 0 Normal behavior. Roll-over at standard module 360. 0 1 Output rolls-over at the High and Low Clamp values. 1 0 Output clamps at the first encountered High/Low Clamp value. 1 1 Roll-over occurs at standard module 360. Output is clamped to High/Low Clamps value. MAX_INPUT[23:12]: MIN_INPUT[11:0]: Sets the maximum input angle, after PREGAIN_OFFSET but before scaling by GAIN. Used for short-stroke limit test, in 12-bit resolution units. Setting this field to 0xFFF will effectively disable this feature. This allows debugging and diagnostics of a possible broken sensor assembly. Used as a diagnostic point if the angle exceeds the targeted dynamic range. SS must be set to `1' to enable this function. Sets the minimum input angle (after PREGAIN_OFFSET), but before scaling by GAIN. Used for short-stroke limit test, in 12-bit resolution units. Setting this field to 0 will effectively disable this feature. This allows debugging and diagnostics of a possible broken sensor assembly. Used as a diagnostic point if the angle decreases below the targeted dynamic range. SS must be set to `1' to enable this function. Value 0x0 to 0xFFF Description Sets maximum input angle to 0 to 359.91 Value 0x0 to 0xFFF Description Sets minimum input angle to 0 to 359.91 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 28 Programmable Angle Sensor IC with Analog and PWM Output A1330 Address 0x3D Bit 25 24 Name ABW PO Default 0 0 23 22 21 20 19 18 17 16 15 14 13 12 11 10 POSTGAIN_OFFSET 0 0 0 0 0 0 0 9 8 7 6 5 4 HIGH_CLAMP 0 0 0 0 0 0 0 0 0 3 2 1 0 0 0 LOW_CLAMP 0 0 0 0 0 0 ABW[25]: POSTGAIN_OFFSET[23:12]: Analog back end BW. Sets the BW of the analog filter. Sets the output angular offset to relocate the 0 reference point for the output angle. Applied after GAIN and Min/Max Input angle comparison. Represented in signed 2's complement. Value Description 0 30 kHz BW 1 15 kHz BW Value 0x0 to 0x7FF PO[24]: Polarity bit. Sets which magnetic rotation direction results in an increasing output value. If set to `0', increasing angle is in the clockwise direction, when looking down on the top of the die, from the magnets perspective. This occurs prior to the PREGAIN_OFFSET. Value 0x800 to 0xFFF Description 0 to 179.91 -180 to -0.088 Description 0 Output angle increases with a clockwise rotation (when viewed from above the magnet and device) 1 Output angle increases with a counter-clockwise rotation (when viewed from above the magnet and device) Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 29 Programmable Angle Sensor IC with Analog and PWM Output A1330 HIGH_CLAMP[11:6]: Sets an output high angle clamp. Applied after GAIN and POSTGAIN_OFFSET. Decrements by 1% of VCC. Code Voltage Approximate Angle Nominal Voltage Code Voltage Approximate Angle Nominal Voltage 0 VOUT(MAX) 359.9 4.75 32 VOUT(MAX) -32% VCC 232.0 3.15 1 VOUT(MAX) - 1% VCC 356.0 4.70 33 VOUT(MAX) - 33% VCC 228.0 3.10 2 VOUT(MAX) - 2% VCC 351.9 4.65 34 VOUT(MAX) - 34% VCC 224.0 3.05 3 VOUT(MAX) - 3% VCC 348.0 4.60 35 VOUT(MAX) - 35% VCC 220.0 3.00 4 VOUT(MAX) - 4% VCC 343.9 4.55 36 VOUT(MAX) - 36% VCC 216.0 2.95 5 VOUT(MAX) - 5% VCC 340.0 4.50 37 VOUT(MAX) - 37% VCC 212.0 2.90 6 VOUT(MAX) - 6% VCC 335.9 4.45 38 VOUT(MAX) - 38% VCC 208.0 2.85 7 VOUT(MAX) - 7% VCC 332.0 4.40 39 VOUT(MAX) - 39% VCC 204.0 2.80 8 VOUT(MAX) - 8% VCC 327.9 4.35 40 VOUT(MAX) - 40% VCC 200.0 2.75 9 VOUT(MAX) - 9% VCC 324.0 4.30 41 VOUT(MAX) - 41% VCC 196.0 2.70 10 VOUT(MAX) - 10% VCC 319.9 4.25 42 VOUT(MAX) - 42% VCC 192.0 2.65 11 VOUT(MAX) - 11% VCC 316.0 4.20 43 VOUT(MAX) - 43% VCC 188.0 2.60 12 VOUT(MAX) - 12% VCC 311.9 4.15 44 VOUT(MAX) - 44% VCC 184.0 2.55 13 VOUT(MAX) - 13% VCC 308.0 4.10 45 VOUT(MAX) - 45% VCC 180.0 2.50 14 VOUT(MAX) - 14% VCC 303.9 4.05 46 VOUT(MAX) - 46% VCC 176.0 2.45 15 VOUT(MAX) - 15% VCC 300.0 4.00 47 VOUT(MAX) - 47% VCC 172.0 2.40 16 VOUT(MAX) - 16% VCC 295.9 3.95 48 VOUT(MAX) - 48% VCC 168.0 2.35 17 VOUT(MAX) - 17% VCC 292.0 3.90 49 VOUT(MAX) - 49% VCC 164.0 2.30 18 VOUT(MAX) - 18% VCC 287.9 3.85 50 VOUT(MAX) - 50% VCC 160.0 2.25 19 VOUT(MAX) - 19% VCC 284.0 3.80 51 VOUT(MAX) - 51% VCC 156.0 2.20 20 VOUT(MAX) - 20% VCC 279.9 3.75 52 VOUT(MAX) - 52% VCC 152.1 2.15 21 VOUT(MAX) - 21% VCC 276.0 3.70 53 VOUT(MAX) - 53% VCC 148.0 2.10 22 VOUT(MAX) - 22% VCC 271.9 3.65 54 VOUT(MAX) - 54% VCC 144.1 2.05 23 VOUT(MAX) - 23% VCC 268.0 3.60 55 VOUT(MAX) - 55% VCC 140.0 2.00 24 VOUT(MAX) - 24% VCC 263.9 3.55 56 VOUT(MAX) - 56% VCC 136.1 1.95 25 VOUT(MAX) - 25% VCC 260.0 3.50 57 VOUT(MAX) - 57% VCC 132.0 1.90 26 VOUT(MAX) - 26% VCC 255.9 3.45 58 VOUT(MAX) - 58% VCC 128.1 1.85 27 VOUT(MAX) - 27% VCC 252.0 3.40 59 VOUT(MAX) - 59% VCC 124.0 1.80 28 VOUT(MAX) - 28% VCC 247.9 3.35 60 VOUT(MAX) - 60% VCC 120.1 1.75 29 VOUT(MAX) - 29% VCC 244.0 3.30 61 VOUT(MAX) - 61% VCC 116.0 1.70 30 VOUT(MAX) - 30% VCC 240.0 3.25 62 VOUT(MAX) - 62% VCC 112.1 1.65 31 VOUT(MAX) - 31% VCC 236.0 3.20 63 VOUT(MAX) - 63% VCC 108.0 1.60 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 30 Programmable Angle Sensor IC with Analog and PWM Output A1330 LOW_CLAMP [5:0]: Sets an output low clamp level. Applied after GAIN and POSTGAIN_OFFSET. Increments by 1% of VCC. Code Voltage Approximate Angle Nominal Voltage Code Voltage Approximate Angle Nominal Voltage 0 VOUT(MIN) 0.0 0.25 32 VOUT(MIN) + 32% VCC 128.0 1.850 1 VOUT(MIN) + 1% VCC 4.0 0.30 33 VOUT(MIN) + 33% VCC 131.9 1.900 2 VOUT(MIN) + 2% VCC 8.0 0.35 34 VOUT(MIN) + 34% VCC 136.0 1.950 3 VOUT(MIN) + 3% VCC 12.0 0.40 35 VOUT(MIN) + 35% VCC 139.9 2.000 4 VOUT(MIN) + 4% VCC 16.0 0.45 36 VOUT(MIN) + 36% VCC 144.0 2.050 5 VOUT(MIN) + 5% VCC 20.0 0.50 37 VOUT(MIN) + 37% VCC 147.9 2.100 6 VOUT(MIN) + 6% VCC 24.0 0.55 38 VOUT(MIN) + 38% VCC 152.0 2.150 7 VOUT(MIN) + 7% VCC 27.9 0.60 39 VOUT(MIN) + 39% VCC 155.9 2.200 8 VOUT(MIN) + 8% VCC 32.0 0.65 40 VOUT(MIN) + 40% VCC 160.0 2.250 9 VOUT(MIN) + 9% VCC 35.9 0.70 41 VOUT(MIN) + 41% VCC 163.9 2.300 10 VOUT(MIN) + 10% VCC 40.0 0.75 42 VOUT(MIN) + 42% VCC 168.0 2.350 11 VOUT(MIN) + 11% VCC 43.9 0.80 43 VOUT(MIN) + 43% VCC 171.9 2.400 12 VOUT(MIN) + 12% VCC 48.0 0.85 44 VOUT(MIN) + 44% VCC 176.0 2.450 13 VOUT(MIN) + 13% VCC 51.9 0.90 45 VOUT(MIN) + 45% VCC 179.9 2.500 14 VOUT(MIN) + 14% VCC 56.0 0.95 46 VOUT(MIN) + 46% VCC 184.0 2.550 15 VOUT(MIN) + 15% VCC 59.9 1.00 47 VOUT(MIN) + 47% VCC 187.9 2.600 16 VOUT(MIN) + 16% VCC 64.0 1.05 48 VOUT(MIN) + 48% VCC 192.0 2.650 17 VOUT(MIN) + 17% VCC 67.9 1.10 49 VOUT(MIN) + 49% VCC 195.9 2.700 18 VOUT(MIN) + 18% VCC 72.0 1.15 50 VOUT(MIN) + 50% VCC 200.0 2.750 19 VOUT(MIN) + 19% VCC 75.9 1.20 51 VOUT(MIN) + 51% VCC 203.9 2.800 20 VOUT(MIN) + 20% VCC 80.0 1.25 52 VOUT(MIN) + 52% VCC 207.9 2.850 21 VOUT(MIN) + 21% VCC 83.9 1.30 53 VOUT(MIN) + 53% VCC 211.9 2.900 22 VOUT(MIN) + 22% VCC 88.0 1.35 54 VOUT(MIN) + 54% VCC 215.9 2.950 23 VOUT(MIN) + 23% VCC 91.9 1.40 55 VOUT(MIN) + 55% VCC 219.9 3.000 24 VOUT(MIN) + 24% VCC 96.0 1.45 56 VOUT(MIN) + 56% VCC 223.9 3.050 25 VOUT(MIN) + 25% VCC 99.9 1.50 57 VOUT(MIN) + 57% VCC 227.9 3.100 26 VOUT(MIN) + 26% VCC 104.0 1.55 58 VOUT(MIN) + 58% VCC 231.9 3.150 27 VOUT(MIN) + 27% VCC 107.9 1.60 59 VOUT(MIN) + 59% VCC 235.9 3.200 28 VOUT(MIN) + 28% VCC 112.0 1.65 60 VOUT(MIN) + 60% VCC 239.9 3.250 29 VOUT(MIN) + 29% VCC 115.9 1.70 61 VOUT(MIN) + 61% VCC 243.9 3.300 30 VOUT(MIN) + 30% VCC 120.0 1.75 62 VOUT(MIN) + 62% VCC 247.9 3.350 31 VOUT(MIN) + 31% VCC 123.9 1.80 63 VOUT(MIN) + 63% VCC 251.9 3.400 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 31 Programmable Angle Sensor IC with Analog and PWM Output A1330 Address 0x3E Bit 25 Name 24 23 EELO HYS_0 0 Default 0* 22 21 HYS 0* 20 19 18 PWM_FREQ 0 1 0 17 16 15 14 13 ANG_AVE 0 0* 0* 12 11 10 9 8 7 MISS_MAG_THRSH 0* 0* 0* 0* 0* 0* 0* 1* 0* 1* EELO[25]: PWM_FREQ[21:19]: EEPROM Lock Bit. Once set, EEPROM cannot be written. Sets the PWM carrier frequency. Value Description 0 EEPROM writes allowed 1 EEPROM writing prevented 1 Hysteresis is only applied near the 0/360 crossover point HYS[23:22]: Hysteresis range selection. When applied the angle will not update unless a change larger than the hysteresis range is observed. Applied after PREGAIN_OFFSET. Prior to GAIN. * Default value of 0 for all catalog part numbers except A1330LLETR-T-C02. Value Description 3 2 1 0 EED MAXA MINA MMF 0 0 0 0 0 0 0 000 20 kHz 001 10 kHz 010 5 kHz Description Hysteresis is applied across the whole angle range 4 OVLO PWM Frequency Hysteresis is only applied within 11.16 of the 0/360 crossover point. 0 5 TOR PWM_FREQ HYS_0[24]: Value 6 INTER 011 2.5 kHz 100 1.25 kHz 101 625 Hz 110 312.5 Hz 111 156.25 Hz ANG_AVE[18:16]: Selects the number of internal angle samples to average. Reduces the update rate of the IC for improved angle resolution. * Default value of 0 for all catalog part numbers except A1330LLETR-T-C02, which is set to 0112. Value Quantity of Samples Averaged Approx. Refresh Rate (s) 000 1 25 2 50 00 0 001 01 0352 010 4 100 10 0.703 (Default value for A1330LLETR-T-C02) 011 8 200 1.406 100 16 400 101 32 800 110 64 1600 111 128 3200 11 Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 32 Programmable Angle Sensor IC with Analog and PWM Output A1330 MIS_MAG_THRSH[15:7]: Threshold below which the missing magnet flag will assert. At Allegro factory. *This is programmed for a default of 100G. The value of 01012 shown in the above table is typical; actual values may vary, depending on device behavior. If a setting other than 100 G is desired, simply scale the existing value by d_field / 100 where "d_field" is the desired trip point in gauss. EED[3]: Dual bit EEPROM error. Prevents a dual bit EEPROM error from tristating the output. Value Description 0 Dual bit EEPROM error will tri-state the output 1 Dual bit EEPROM error will not tri-state the output Example: If the desired trip point is 300G, and the default factory EEPROM value is 0x5, then the final value is 300 / 100 x 5 = 15 = 0xF. MAXA[2]: INTER[6]: Maximum Input Angle Mask. When set, the output will not tri-state when the input angle exceeds the MAX_INPUT value. Interpolator Error mask. Prevents an interpolator error from setting the output to tri-state. Value Description 0 Interpolator error will tri-state output 1 Interpolator error will not tri-state output TOR[5]: Temperature Out Of Range Mask. Prevents a temperature out of range error from tri-stating the output. Value Description 0 Temperature out of range error will tri-state output 1 Temperature out of rang error will not tri-state output Value Description 0 Output tri-states if input angle exceeds MAX_INPUT 1 Output doesn't tri-states if input angle exceeds MAX_INPUT MINA[1]: Minimum Input Angle Mask. When set, the output will not tri-state when the input angle is below the MIN_INPUT value. Value Description 0 Output tri-states if input angle is below MIN_INPUT 1 Output doesn't tri-states if input angle is below MIN_INPUT MMF[0]: OVLO[4]: Overvoltage Error Mask. Prevents an overvoltage error from tristating the output. Value Description 0 Overvoltage error will tri-state the output 1 Overvoltage error will not tri-state the output Missing Magnet Flag Mask. When set, output will not tri-state if the measured magnetic amplitude is below the MIS_MAG_THRSH. Value Description 0 Missing magnet error tri-states output 1 Missing magnet error does not tri-states output Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 33 Programmable Angle Sensor IC with Analog and PWM Output A1330 Address 0x3F Bit 25 24 23 22 21 20 19 18 17 16 15 14 Name Default 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 Customer Word 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Customer Word[25:0]: Customer EEPROM space. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 34 Programmable Angle Sensor IC with Analog and PWM Output A1330 PACKAGE OUTLINE DRAWINGS For Reference Only - Not for Tooling Use (Reference MO-153AA) Dimensions in millimeters - NOT TO SCALE Dimensions exclusive of mold flash, gate burrs, and dambar protrusions Exact case and lead configuration at supplier discretion within limits shown 3.00 0.10 8 0 D 1.50 E 8 0.02 0.09 2.20 D 6.40 BSC 4.40 0.10 A D 0.60 1 2 Branded Face 1.00 REF +0.15 -0.10 0.25 BSC SEATING PLANE 8X 1.10 MAX 0.10 C 0.30 0.19 0.15 0.05 GAUGE PLANE C SEATING PLANE 0.65 BSC NNN YYWW 8 1.70 1 C Standard Branding Reference View N = Last 3 digits of device part number = Supplier emblem Y = Last two digits of year of manufacture W = Week of manufacture 6.40 BSC 1 B 2 PCB Layout Reference View A Terminal #1 mark area B Reference land pattern layout (reference IPC7351 SOP65P640X110-8M); all pads minimum of 0.20 mm from all adjacent pads; adjust as necessary to meet application process requirements and PCB layout tolerances; when mounting on a multilayer PCB, thermal vias can improve thermal dissipation (reference EIA/JEDEC Standard JESD51-5) C Branding scale and appearance at supplier discretion D Hall element, not to scale E Active Area Depth = 0.36 mm REF Figure 37: Package LE, 8-Pin TSSOP (Single Die Version) Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 35 Programmable Angle Sensor IC with Analog and PWM Output A1330 For Reference Only - Not for Tooling Use (Reference MO-153AA) Dimensions in millimeters - NOT TO SCALE Dimensions exclusive of mold flash, gate burrs, and dambar protrusions Exact case and lead configuration at supplier discretion within limits shown 3.00 0.10 D1 D 1.60 D2 E D 1.40 8 6.40 BSC 8 0 0.02 0.09 D1 D2 2.18 D 2.27 D 4.40 0.10 A 0.60 1 2 Branded Face 1.00 REF +0.15 -0.10 0.25 BSC SEATING PLANE 8x 1.10 MAX 0.10 C 0.30 0.19 0.15 0.05 GAUGE PLANE C SEATING PLANE 0.65 BSC NNN YYWW 8 1.70 1 C Standard Branding Reference View A Terminal #1 mark area B Reference land pattern layout (reference IPC7351 SOP65P640X110-8M); all pads minimum of 0.20 mm from all adjacent pads; adjust as necessary to meet application process requirements and PCB layout tolerances; when mounting on a multilayer PCB, thermal vias can improve thermal dissipation (reference EIA/JEDEC Standard JESD51-5) C Branding scale and appearance at supplier discretion D Hall element (D1, D2), not to scale E Active Area Depth; 0.27 mm (die 1), 0.43 mm (die 2) N = Last 3 digits of device part number = Supplier emblem Y = Last two digits of year of manufacture W = Week of manufacture 6.40 BSC 1 B 2 PCB Layout Reference View Figure 38: Package LE, 8-Pin TSSOP (Dual Die Version) Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com 36 Programmable Angle Sensor IC with Analog and PWM Output A1330 APPENDIX A: ANGLE ERROR AND DRIFT DEFINITION Angle error is the difference between the actual position of the magnet and the position of the magnet as measured by the angle sensor IC (without noise). This measurement is done by reading the angle sensor IC output and comparing it with a high resolution encoder (refer to Figure 39). Angle Error E [] Angle Drift Angle drift is the change in the observed angular position over temperature, relative to 25C. During Allegro's factory trim, drift is measured at 150C. The value is calculated using the following formula: AngleDrift = Angle25C - Angle150C 0 Emax 36 E = Sensor - Real 0 Emax - Emin Reference Angle Real where each Angle value is an array corresponding to 16 angular positions around a circle. Angle Drift of 150C in Reference to 25C Error 25C Error 150C No Error Eminl Angle Error Definition Throughout this document, the term "angle error" is used extensively. Thus, it is necessary to introduce a single angle error definition for a full magnetic rotation. The term "angle error" is calculated according to the following formula: E max - E min 2 In other words, it is the amplitude of the deviation from a perfect straight line between 0 and 360 degrees. For the purposes of a generic definition, the offset of the IC angle profile is removed prior to the error calculation (this can be seen in Figure 39). The offset itself will depend on the starting IC angle position relative to the encoder 0 and thus can differ anywhere from 0-360. Angle Error (Deg) Figure 39: Angle Error Definition Drift of data point 1 Ideal Drift of data point 2 Angle Error = Reference Angle Figure 40: Angle Drift of 150C in Reference to 25C [1] Note that the data above is simply a representation of angle drift and not real data. [1] Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com A-1 Programmable Angle Sensor IC with Analog and PWM Output A1330 Ratiometry Error Definition The analog version of the A1330 provides a ratiometric output. This means that the Voltage Output, VOUT, and the angular sensitivity are proportional to the supply voltage, VCC. In other words, when the supply voltage increases or decreases by a certain percentage, each characteristic also increases or decreases by the same percentage. Error is the difference between the measured change in the supply voltage relative to 5.0 V, and the measured change in each characteristic. The ratiometric error for a given magnetic position (), RatVOUT(%), for a given supply voltage, VCC, is defined as: VOUT()(VCC) / VOUT()(5.0V) RatVOUT() = 1- VCC / 5.0 (V) x 100 (%) Output Voltage, VOUT (V) VSAT(High) VSAT(Low) counter-clockwise 180 clockwise Appied Magnetic Field Angle Figure 41: Effect of Saturation Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com A-2 Programmable Angle Sensor IC with Analog and PWM Output A1330 APPENDIX B: CRC DOCUMENATION Manchester CRC Implementation The 3-bit Manchester CRC can be calculated using the following C code: // command: the manchester command, right justified, does not include the space for the CRC // numberOfBits: number of bits in the command not including the 2 zero sync bits at the start of the command and the three CRC bits // Returns: The three bit CRC // This code can be tested at http://codepad.org/yqTKnfmD uint16_t ManchesterCRC(uint64_t data, uint16_t numberOfBits) { bool C0 = false; bool C1 = false; bool C2 = false; bool C0p = true; bool C1p = true; bool C2p = true; uint64_t bitMask = 1; bitMask <<= numberOfBits - 1; // Calculate the state machine for (; bitMask != 0; bitMask >>= 1) { C2 = C1p; C0 = C2p ^ ((data & bitMask) != 0); C1 = C0 ^ C0p; } 0U); } C0p = C0; C1p = C1; C2p = C2; return (C2 ? 4U : 0U) + (C1 ? 2U : 0U) + (C0 ? 1U : Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com B-1 Programmable Angle Sensor IC with Analog and PWM Output A1330 Revision History Revision Date - September 25, 2017 Description Initial release 1 June 29, 2018 Updated Features and Benefits (page 1), Thermal Characteristics (page 2), Supply Current (page 5), Figure 3 and 4 (page 7), Figures 14 through 17 (page 19 and 21), Gain section (page 20), Clamp and Roll-Over Logic figure captions (page 21), Figures 32 and 33 (page 24), Figure 34 (page 25), and Dual Die LE-8 Package Drawing active area depth dimensions (page 36); added figure to Angle Averaging section (page 18). 2 August 3, 2018 Updated Features and Benefits (page 1), Selection Guide (page 2), Response Time (page 6), Angle Noise (page 6), Figure 3 (page 7), Hysteresis (page 10), Address 0x3E (page 32-33). Copyright (c)2018, Allegro MicroSystems, LLC Allegro MicroSystems, LLC reserves the right to make, from time to time, such departures from the detail specifications as may be required to permit improvements in the performance, reliability, or manufacturability of its products. Before placing an order, the user is cautioned to verify that the information being relied upon is current. Allegro's products are not to be used in any devices or systems, including but not limited to life support devices or systems, in which a failure of Allegro's product can reasonably be expected to cause bodily harm. The information included herein is believed to be accurate and reliable. However, Allegro MicroSystems, LLC assumes no responsibility for its use; nor for any infringement of patents or other rights of third parties which may result from its use. Copies of this document are considered uncontrolled documents. For the latest version of this document, visit our website: www.allegromicro.com Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com B-2