Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
The A1338 is a 0° to 360° angle sensor IC that provides
contactless high-resolution angular position information based
on magnetic circular vertical Hall (CVH) technology. It has a
system-on-chip (SoC) architecture that includes: a CVH front
end, digital signal processing, digital SPI, and SENT or PWM
outputs. It also includes on-chip EEPROM technology, capable
of supporting up to 100 read/write cycles, for flexible end of
line programming of calibration and configuration parameters.
The A1338 is ideal for automotive applications requiring 0° to
360° angle measurements, such as electronic power steering
(EPS), seatbelt motor position systems, rotary PRNDLs, and
throttle systems.
The A1338 was designed with safety-critical application
requirements in mind. It includes user-controlled on-chip
logic built-in self-test (LBIST) and full signal path diagnostics
to enable customers to determine if the IC is operating in a
proper manner.
The A1338 supports a Low RPM mode for slower rate
applications and a High RPM mode for high-speed applications.
High RPM mode is for applications that require higher refresh
rates to minimize error due to latency. Low RPM mode is for
applications that require higher resolution operating at lower
angular velocities.
The A1338 is available in single-die 14-pin TSSOP and a
dual-die 24-pin TSSOP. Both packages are lead (Pb) free with
100% matte-tin leadframe plating.
• Contactless 0° to 360° angle sensor IC, for angular
position and rotation direction measurement
Circular Vertical Hall (CVH) technology provides
a single-channel sensor system, with air gap
independence
• 12-bit resolution possible in Low RPM mode, 10-bit
resolution in High RPM mode
• Angle Refresh Rate (output rate) configurable between
25and3200μsthroughEEPROMprogramming
Capable of sensing magnetic rotational speeds up to
7600 rpm, and up to 30,000 rpm with reduced accuracy
• SPI (mode 3), and SENT (Single Edge Nibble
Transmission) or PWM (Pulse-Width Modulation)*
A1338 Magnetic Circuit and IC Diagram
SoC die 1
A1338
Regulator To all internal circuits
VCC_1 (also
Programming)
GNDA_1
EEPROM
ECC Error Detection /
Correction
SCLK_1/ID1_1
MOSI_1
MISO_1
CS_1/ID0_1
Multi-Segment
Circular Vertical Hall
BYP2_1
BYP1_1
VCC_2
GNDA_2
SCLK_2/ID1_2
MOSI_2
MISO_2
CS_2/ID0_2
BYP2_2
BYP1_2 SoC die 2
PWM_1/SENT_1
PWM_2/SENT_2
CVH Self-Test
Control
Rotational
Direction
CW/CCW
Data
Registers
Temp
Sensor
Digital Processing
SPI
Interface
with
4-bit CRC
PWM or SENT
Interface
ADC
TC Segment
Processing
Bandpass
Filter Angle
Detect
ADC
CVH Self-Test
Amplifier
Adjustable
Discontinuity
Point
(0°Angle)
BIAS_1
BIAS_2
GNDD_1
GNDD_2
Continued on the next page…
A1338LLE-DS, Rev. 3
MCO-0000279
FEATURES AND BENEFITS DESCRIPTION
April 4, 2018
PACKAGES:
Dual Independent SoCs
Not to scale
Single SoC
24-pin TSSOP (Suffix LE)14-pin TSSOP (Suffix LE)
Allegro MicroSystems, LLC
Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
2
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
FEATURES AND BENEFITS (continued)
SPI interface provides a robust communication protocol for
fast angle readings*
SENT output supports four modes: SAEJ2716 (JAN2010)
and Allegro proprietary options of Triggered SENT
(TSENT), Sequential SENT (SSENT), and Addressable
SENT (ASENT)*
Programmable via Manchester Encoding on the VCC line,
reducing external wiring*
SPI and SENT interfaces allows use of multiple independent
sensors for applications requiring redundancy*
• Advanced diagnostics to support safety-critical applications,
including:
On-chip, user-controlled logic built-in self-test (LBIST) and
signal path diagnostics
4-bit CRC on SPI messages
User-Programmable Missing Magnet Error flag for
notifying controller of low magnetic field level
• Diagnostics are initiated over the SPI or SENT interface and
can directly test proper operation of the IC in safety-critical
applications
• EEPROM with Error Correction Control (ECC) configuration,
sensor calibration including end-of line adjustments like
programmable angle reference (0°) position and rotation
direction (CW or CCW)
• Available in both single-die and dual-die configurations
Dual-die devices contain two independent die housed within
a single package
• Absolute maximum VCC of 26.5 V for increased robustness
and direct connection to automotive vehicle battery
SELECTION GUIDE
Part Number System Die Output Protocols Package Packing [1]
A1338LLETR-DD-T Dual SPI and SENT 24-pin TSSOP 4000 pieces per 13-in. reel
A1338LLETR-P-DD-T Dual SPI and PWM 24-pin TSSOP 4000 pieces per 13-in. reel
A1338LLETR-T Single SPI and SENT 14-pin TSSOP 4000 pieces per 13-in. reel
A1338LLETR-P-T Single SPI and PWM 14-pin TSSOP 4000 pieces per 13-in. reel
[1] Contact Allegro for additional packing options.
* See Selection Guide for more details.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
3
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Table of Contents
Features and Benefits ........................................................... 1
Description .......................................................................... 1
Packages ............................................................................ 1
A1338 Magnetic Circuit and IC Diagram .................................. 1
Selection Guide ................................................................... 2
Specifications ...................................................................... 4
Absolute Maximum Ratings ................................................ 4
Thermal Characteristics ..................................................... 4
Typical Application Diagram ................................................... 4
Pinout Diagrams and Terminal List ......................................... 5
Functional Block Diagram ..................................................... 6
Operating Characteristics ...................................................... 7
Functional Description ........................................................ 10
Overview ....................................................................... 10
Angle Measurement ........................................................ 10
Impact of High Speed Sensing.......................................... 10
Angle Resolution and Representation .................................11
Programming Modes ....................................................... 12
SPI System-Level Timing ................................................. 12
Power-Up....................................................................... 12
PWM Output (“-P” option) ................................................ 12
Error Reporting in PWM ................................................... 12
Manchester Serial Interface ................................................. 13
Entering Manchester Communication Mode ....................... 13
Transaction Types ........................................................... 13
Writing to EEPROM......................................................... 13
Manchester Interface Reference ....................................... 14
SENT Output Mode ......................................................... 15
Diagnostics .................................................................... 18
Serial Interface Structure ..................................................... 19
Application Information ....................................................... 25
Serial Interface Description .............................................. 25
Calculating Target Zero-Degree Angle ............................... 25
Bypass Pins Usage ......................................................... 25
Changing Sampling Modes .............................................. 26
Magnetic Target Requirements ......................................... 26
Redundant Applications and Alignment Error ...................... 27
System Timing and Error.................................................. 27
Characteristic Performance Data.......................................... 28
EMC Reduction.................................................................. 30
Package Outline Drawings .................................................. 31
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
4
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
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
All Other Pins Forward Voltage VIN 5.5 V
All Other Pins Reverse Voltage VR0.5 V
Operating Ambient Temperature TAL range –40 to 150 °C
Maximum Junction Temperature TJ(max) 165 °C
Storage Temperature Tstg –65 to 170 °C
THERMAL CHARACTERISTICS: May require derating at maximum conditions; see application information
Characteristic Symbol Test Conditions [1] Value Unit
Package Thermal Resistance RθJA
LE-24 package 117 °C/W
LE-14 package 82 °C/W
[1] Additional thermal information available on the Allegro website.
SPECIFICATIONS
V
CC
A1338
VCC_1
SCLK_1
SCLK_2
MISO_1
MOSI_1
MOSI_2
MISO_2
BYP1_1 BYP2_1* VCC_2 BYP1_2 BYP2_2*
0.1 µF
0.1 µF 0.1 µF 0.1 µF 0.1 µF
Host
Microprocessor
CS_1
CS_2
PWM_1/SENT_1
PWM_2/SENT_2
BIAS_1
BIAS_2
GNDA_1 GNDD_1GNDA_2 GNDD_2
Typical Application Diagram (dual-die version)
Either or both internal SoCs can be operated simultaneously.
(See “EMC Reduction” Section for application circuits that require a higher level of EMC immunity.)
*Secondary bypass capacitors only required when using Elevated SPI Output Voltage. Contact Allegro for availability.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
5
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Pin
Name
Pin Number Function
LE-14 LE-24
BYP1_1 1 1 External Bypass Capacitor Terminal for Internal Regulator (die 1)
BYP2_1 9 19 External Bypass Capacitor Terminal for Internal Regulator (die 1)
BYP1_2 13 External Bypass Capacitor Terminal for Internal Regulator (die 2)
BYP2_2 7 External Bypass Capacitor Terminal for Internal Regulator (die 2)
CS_1 /ID0_1 13 23 Option 1: SPI Chip Select Terminal, Active Low Input(die 1)
Option 2: ID0 bit to indicate Slave Address for SSENT or ASENT communication modes only (die 1)
CS_2 /ID0_2 11
Option 1: SPI Chip Select Terminal, Active Low Input(die 2)
Option 2: ID0 bit to indicate Slave Address for SSENT or ASENT communication modes only (die 2)
GNDA_1 3 3 Device Analog Ground Terminal (die 1)
GNDA_2 15 Device Analog Ground Terminal (die 2)
GNDD_1 2, 14 2, 24 Device Digital Ground Terminal (die 1)
GNDD_2 12, 14 Device Digital Ground Terminal (die 2)
MISO_1 10 20 SPI Master Input/Slave Output (die 1)
MISO_2 8 SPI Master Input/Slave Output (die 2)
MOSI_1 12 22 SPI Master Output Slave Input (die 1)
MOSI_2 10 SPI Master Output Slave Input (die 2)
SLCK_1/ID1_1 11 21 Option 1: SPI Clock Terminal (die 1)
Option 2: ID1 bit to indicate Slave Address for SSENT or ASENT communication modes only (die 1)
SCLK_2/ID1_2 9 Option 1: SPI Clock Terminal (die 2)
Option 2: ID1 bit to indicate Slave Address for SSENT or ASENT communication modes only (die 2)
SENT_1/PWM_1 4 4 SENT Output (Die1); PWM Output (Die1); SENT for A1338LLETR-DD-T, A1338LLETR-T;
PWM for A1338LLETR-P-DD-T, A1338LLETR-P-T
SENT_2/PWM_2 16 SENT Output (Die2); PWM Output (Die2); SENT for A1338LLETR-DD-T, A1338LLETR-T;
PWM for A1338LLETR-P-DD-T, A1338LLETR-P-T
BIAS_1 8 18 Bias Connection; connect to ground or pull up to 3.3 V (die 1)
VCC_1 5 5 Power Supply (die 1); also used for EEPROM Programming
VCC_2 17 Power Supply (die 2); also used for EEPROM Programming
BIAS_2 6 Bias Connection; connect to ground or pull up to 3.3 V (die 2)
NC 6, 7 Not internally connected; tie to GNDD
PINOUT DIAGRAMS AND TERMINAL LIST
BYP1_1
GNDD_1
SENT_1/PWM_
1
GNDA_2
VCC_1
BIAS_2
BYP2_2
MISO_2
SCLK_2/ID1_2
MOSI_2
CS_2/ID0_2
GNDD_2
1
2
3
4
5
6
7
8
9
10
11
12 13
14
15
16
17
18
19
20
21
22
23
24 GNDD_1
CS_1/ID0_1
MOSI_1
SCLK_1/ID1_1
MISO_1
BYP2_1
BIAS_1
VCC_2
GNDA_1
SENT_2/PWM_
2
GNDD_2
BYP1_2
1
2
3
4
5
6
78
9
10
11
12
13
14
NC BYP2_1
SENT_1/PWM_1 SCLK_1/ID1_1
GNDD_1 CS_1/ID0_1
NC BIAS_1
VCC_1 MISO_1
GNDA_1 MOSI_1
BYP1_1 GNDD_1
14-Pin TSSOP LE Package Pinouts 24-Pin TSSOP LE Package Pinouts
Terminal List Table
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
6
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
SoC die 1
A1338
Regulator To all internal circuits
VCC_1 (also
Programming)
GNDA_1
EEPROM
ECC Error Detection /
Correction
Adjustable
Discontinuity
Point
(0°Angle)
SPI
Interface
with
4-bit CRC
SCLK_1/ID1_
1
MOSI_1
MISO_1
CS_1/ID0_1
Multi-Segment
CircularVertical Hall
Temperature
PWM or SENT
Interface
Sensor
ADC
TC Segment
Processing
BYP2_1
BYP1_1
VCC_2
GNDA_2
SCLK_2/ID1_
2
MOSI_2
MISO_2
CS_2/ID0_2
BYP2_2
BYP1_2 SoC die 2
Bandpass
Filter Angle
Detect
ADCAmplifier
Rotational
Direction
CW/CCW
Data
Registers
Digital Processing
CVH Self-Test
Control
PWM_1/SENT_
1
PWM_2/SENT_
2
CVH Self-Test
BIAS_2
BIAS_1
GNDD_1
GNDD_2
Functional Block Diagram
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
7
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Characteristics Symbol Test Conditions Min. Typ. [1] Max. Unit
[2]
ELECTRICAL CHARACTERISTICS
Supply Voltage VCC 3.7 16 V
Supply Current ICC Each die, TA = 150°C 8.25 10 mA
Undervoltage Lockout Threshold
Voltage
[3]
VUVLOHI Maximum VCC , dV/dt = 1V/ms, TA = 25°C 3.6 V
VUVLOLOW Maximum VCC , dV/dt = 1V/ms, TA = 25°C 2.9 V
VCC Low Flag Threshold
[4] VUVLOTH 3.5 3.9 V
Supply Zener Clamp Voltage VZSUP ICC = ICC(AWAKE) + 3 mA, TA = 25°C 26.5 40 V
Reverse-Battery Current IRCC VRCC = –18 V, TA = 25°C –5 0 mA
Power-On Time
[5] tPO 300 µs
Bypass1 Pin Output Voltage
[6] VBYP1 TA = 25°C, CBYP = 0.1 µF 2.5 2.7 2.9 V
Bypass2 Pin Output Voltage
[6]
(Elevated SPI Output Mode) VBYP2
TA = 25°C, CBYP2 = 0.1 µF;
Contact Allegro for availability 2.9 3.1 3.3 V
SPI INTERFACE SPECIFICATIONS
Digital Input High Voltage
[7] VIH MOSIx, SCLKx,
¯
C
¯
¯
S
¯
x pins 2.4 5.5 V
Digital Input Low Voltage
[7] VIL MOSIx, SCLKx,
¯
C
¯
¯
S
¯
x pins 0.5 V
CSx Pin Input Bias Current IBIAS VCSx = 3.3 V 15 µA
SPI Output High Level VOH1
MISOx pins, CL = 20 pF, CBYP1 = 0.1 µF,
CBYP2 grounded 2.5 2.7 2.9 V
SPI Output High Level
(Elevated SPI Output Mode) VOH2
MISOx pins, CL = 20 pF, CBYP1 = 0.1 µF,
CBYP2 = 0.1 µF. Contact Allegro for availability. 2.9 3.1 3.3 V
SPI Output Low Voltage VOL MISOx pins, CL = 20 pF 0.3 V
SPI Clock Frequency
[7] fSCLK MISOx pins, CL = 20 pF 0.1 10 MHz
SPI Clock Duty Cycle
[7] DfSCLK SPICLKDC, 5 V compliant 40 60 %
SPI Frame Rate
[7] tSPI 5 V compliant 5.8 588 kHz
Chip-Select to First SCLK Edge
[7] tCS Time from
¯
C
¯
¯
S
¯
x going low to SCLKx falling edge 50 ns
Data Output Valid Time
[7] tDAV Data output valid after SCLKx falling edge 40 ns
MOSI Setup Time
[7] tSU Input setup time before SCLKx rising edge 25 ns
MOSI Hold Time
[7] tHD Input hold time after SCLKx rising edge 50 ns
SCLK to CS Hold Time
[7] tCHD Hold SCLKx high time before
¯
C
¯
¯
S
¯
x rising edge 5 ns
Capacitive Load
[7] CL
Loading on digital output (MISOx) pin
with SPI Clock Frequency = 10 MHz 20 pF
Continued on the next page…
OPERATING CHARACTERISTICS: Valid over the full operating voltage and ambient temperature ranges, unless otherwise noted
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
8
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Characteristics Symbol Test Conditions Min. Typ. [1] Max. Unit
[2]
PWM INTERFACE SPECIFICATIONS (A1338LLETR-P-DD-T and A1338LLETR-P-T variants only)
PWM Carrier Frequency fPWM
PWM Frequency Code = 00 122 Hz
PWM Frequency Code = 01 1.024 kHz
PWM Frequency Code = 10 2.048 kHz
PWM Duty Cycle Minimum DPWM(min) 5 %
PWM Duty Cycle Maximum DPWM(max) 95 %
PWM Output Signal
[8]
VPWM(L)
5 kΩ ≤ Rpullup ≤ 50 kΩ 0.2 V
2 kΩ ≤ Rpullup < 5 kΩ 0.4 V
VPWM(H)
Minimum Rpullup = 2 kΩ 0.9 × VS V
Maximum Rpullup = 50 kΩ 0.7 × VS V
Maximum Sink Current ILIMIT Output FET on, TA = 25°C 30 mA
PWM Carrier Frequency Tolerance [7] Deviation from expected fPWM –10 10 %
PWM Resolution 12-bit angle value 0.022 %DC/LSB
PWM Frequency Jitter fPWM(JITTER)
1σ, TA = 25°C, fPWM = 2 kHz 0.18 Hz
1σ, TA = 25°C, fPWM = 1 kHz 0.11 Hz
1σ, TA = 25°C, fPWM = 124 Hz 0.01 Hz
PWM Duty Cycle Jitter DPWM(JITTER)
3σ, 300 G, TA = 25°C, no AVG 0.095 %DC
3σ, 300 G, fPWM = 2 kHz, AVG = 0x4 or greater 0.095 %DC
3σ, 300 G, fPWM = 1 kHz, AVG = 0x5 or greater 0.03 %DC
3σ, 300 G, fPWM = 124 Hz, AVG = 0x7 0.027 %DC
PWM Thermal Duty Cycle Drift [7] DPWM(THDRIFT) Change in duty cycle from 25°C to 150°C; 300 G –0.35 0.35 %DC
SENT PROTOCOL SPECIFICATIONS (A1338LLETR-DD-T and A1338LLETR-T variants only)
SENT Message Duration tCVHST Tick time = 3 µs 1 ms
Minimum Programmable SENT
Message Duration tSENTMIN
Tick time = 0.5 µs, 3 data nibbles, SCN, and CRC,
nibble length = 27 ticks 96 µs
SENT Output Signal
[7]
VSENT(L)
5 kΩ ≤ Rpullup ≤ 50 kΩ 0.2 V
2 kΩ ≤ Rpullup < 5 kΩ 0.4 V
VSENT(H)
Minimum Rpullup = 2 kΩ 0.9 × VS V
Maximum Rpullup = 50 kΩ 0.7 × VS V
SENT Output Trigger Signal VSENTtrig(L) 1.4 V
VSENTtrig(H) 2.8 V
Minimum Time Frame for SENT
Trigger Signal tSENTMIN
Tick time = 0.5 µs, 3 data nibbles, SCN, and CRC,
nibble length = 27 ticks 2 µs
Triggered Delay Time tdSENT
From end of trigger pulse to beginning of SENT
message frame.
TSENT (SENT_MODE 3 and SENT_MODE 4)
7 tick
Maximum Sink Current ILIMIT Output FET on, TA = 25°C 30 mA
DIAGNOSTIC SPECIFICATIONS
CVH Self-Test Time tUI_DIAG 23 ms
Logic BIST Coverage vs. Time tLBISTXX 70% Coverage 10 ms
Continued on the next page…
OPERATING CHARACTERISTICS (continued): Valid over the full operating voltage and ambient temperature ranges,
unless otherwise noted
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
9
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Characteristics Symbol Test Conditions Min. Typ. [1] Max. Unit
[2]
EEPROM PROGRAMMING PULSES
Pulse High Time tPULSE(H) Time above minimum pulse voltage 8 10 11 ms
Rise Time tr10% to 90% of minimum pulse level 300 µs
Fall Time tf10% to 90% of minimum pulse level 60 µs
Pulse Voltage VPULSE Applied on VCC line 18 19 19.5 V
Separation Time tPULSE(f-r)
Timing between first pulse dropping below 6 V and
2nd pulse rising above 6 V 0.002 50 ms
MAGNETIC CHARACTERISTICS
Magnetic Field B Range of input field 1500 Gpp
ANGLE CHARACTERISTICS
Digital Output Word Length
[8] RESANGLE 12 bit
Effective Resolution [9] B = 300 G, TA = 25°C, ORATE = 0 11.59 bit
Angle Refresh Rate
[10] tANG
High RPM mode 25 µs
Low RPM mode, AVG = 011 (varies with AVG mode,
refer to the appendix Programming Reference) 200 µs
Response Time tRESPONSE Low RPM mode (see Figure 4) 60 µs
Angle Error ERRANG
TA = 25°C, ideal magnet alignment, B = 300 G,
target rpm = 0 0.5 degrees
TA = 150°C, ideal magnet alignment, B = 300 G,
target rpm = 0 –1.3 1.3 degrees
Angle Noise NANG
TA = 25°C, B = 300 G, 3 sigma noise,
no internal filtering 0.35 degrees
TA = 150°C, no internal filtering, B = 300 G,
3 sigma noise, target rpm = 0 0.55 degrees
Temperature Drift ANGLEDRIFT
TA = 150°C, B = 300 G –1.4 1.4 degrees
TA = –40°C, B = 300 G ±1 degrees
Angle Drift Over Lifetime ANGLEDRIFT-
LIFE
B = 300 G, typical maximum drift observed after
AEC-Q100 qualification testing ±0.5 degrees
[1] Typical data is at TA = 25°C and VCC = 5 V, and it is for design estimates only.
[2] 1 G (gauss) = 0.1 mT (millitesla).
[3] At power-on, a die will not respond to commands until VCC rises above VUVLOHI.
After that, the die will perform and respond normally until VCC drops below
VUVLOLOW
.
[4] VCC Low Threshold Flag will be sent via the SPI interface as part of the angle
measurement.
[5] During the power-on time period, the A1338 SPI transactions are not guaranteed.
[6] The output voltage and current specifications are to aid in PCB design. The pin
is not intended to drive any external circuitry. The specifications indicate the
peak capacitor charging and discharging currents to be expected during normal
operation.
[7] Parameter is not guaranteed at final test. Determined by design.
[8] RESANGLE represents the number of bits of data available for reading from the die
registers.
[9] Effective Resolution is calculated using the formula below:
log
22
(360) – log ( )
n
i
i =1
1
n
[10] The rate at which a new angle reading will be ready.
OPERATING CHARACTERISTICS (continued): Valid over the full operating voltage and ambient temperature ranges,
unless otherwise noted
Def inition of Response Time
Response Time
t
t
Position 1
Position 2
Output 1
Output 2
Magnet
Position
Sensor
Output
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
10
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
FUNCTIONAL DESCRIPTION
Overview
The A1338 is a rotary position Hall-sensor-based device. It
incorporates up to two electrically independent Hall-based sensor
dies in the same surface-mount package to provide solid-state
consistency and reliability, and to support a wide variety of
automotive applications. Each Hall-sensor-based die 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 configuration parameters that have been set by the
user. The output of each die is used by the host microcontroller to
provide a single channel of target data.
This device is an advanced, programmable system-on-chip (SoC).
Each integrated circuit includes a circular vertical Hall (CVH)
analog frontend, a high-speed sampling A-to-D converter, digital
filtering, digital signal processing, and an SPI, SENT, or PWM
output of the processed angle data.
Angle Measurement
The A1338 can monitor the angular position of a rotating mag-
net at speeds ranging from 0 to more than 7600 rpm. At lower
rotational speeds, the A1338 is able to measure angle data with
minimal angular latency between the actual magnet and sensor
output. As the rpm increases, the angular latency between the
magnet and sensor output also increases. Above 7600 rpm, the
A1338 continues to provide angle data; however, the accuracy is
proportionally reduced.
The A1338 can be configured to operate in two angular mea-
surement modes of operation: Low RPM mode, and High RPM
mode. Low RPM mode allows a programmable number of
internal angle samples to be accumulated and averaged, providing
greater resolution while reducing the update rate. This is suitable
forlowerrpmapplications(0to≈500rpm).Forhigh-speedappli-
cations, the averaging function may be bypassed by operating in
High RPM mode.
The actual update rate of Low RPM mode can be changed by
setting the AVERAGING bits in the EEPROM (see the appendix
Programming Reference for details). Table 1 describes the differ-
ent levels of averaging available in Low RPM mode. A setting of
0002 is equivalent to High RPM mode.
Table 1: Refresh Rate Based on Quantity of Samples Averaged
AVG
[2:0]
Quantity of Samples
Averaged
Refresh Rate
(µs)
000 1 25
001 2 50
010 4 100
011 8 200
100 16 400
101 32 800
110 64 1600
111 128 3200
The A1338 has a typical output bandwidth of 40 kHz (25 µs
refresh rate) in High RPM mode. In High RPM mode, a new angle
measurement is available at the internal angle output register to be
transmitted over the SPI/SENT or PWM output ports every 25 µs.
There is a latency of 60 µs from when there is a change in the
position of the target magnet field to when the new representative
angle is updated in the internal angle output register. This latency
effectively represents the age of the angle measurement.
Impact of High-Speed Sensing
Due to signal path latency, the angle information is delayed by
tRESPONSE. This delay equates to a greater angle value as the
rotational velocity increases (i.e. a magnet rotating at 20,000 rpm
traverses twice as much angular distance in a fixed time period
as a magnet rotating at 10,000 rpm), and is referred to as angular
lag.
The lag is directly proportional to rpm, and may be compensated
for externally, if the velocity is known.
Angular lag can be expressed using the following equation:
Angle_Lag = (rpm × 6) / (16 × tRESPONSE) (1)
where rpm represents the rotational velocity of the magnet,
Angle_lag is expressed in degrees, and tRESPONSE is in µs.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
11
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
0
0.5
1
1.5
2
2.5
3
3.5
4
0 2,000 4,000 6,000 8,000 10,000 12,000
Angle Lag (degrees)
RPM
Figure 1: Angle Lag versus RPM, 60 µs Response Time
Angle Resolution and Representation
In addition to using the internal averaging of the sensor, angle
resolution is also dependent on the intensity (B, in gauss) of
the applied magnetic field from the target. At lower intensities,
a reduced signal-to-noise ratio will cause one or two LSBs to
change state randomly due to noise. These factors work together,
so when High RPM mode is selected, the effective range of reso-
lution is 8 to 10 bits (from lower to higher field intensities), and
in Low RPM mode, the effective range is 11 to 12 bits, depending
on field strength and AVG selection.
Regardless of the field intensity and mode selection, the transmis-
sion protocol and number formatting remains the same. The MSB
is always transmitted first. The entire number should be read.
The Output Angle is always calculated at maximum resolution.
To be more explicit, when reading the digital angle value:
AngleOUT = 360 (°) × D[12:0] / (213) (2)
This formula is always true, regardless of the applied field inten-
sity. What changes with the field and speed setting is how “quiet”
the LSBs of the measurement data (D 12:x) will be.
It should be noted that the secondary die (E2) is rotated 180°
relative to the primary die (E1). This results in a difference in
measurement of approximately 180° between the two dies, given
perfect alignment of each die to the target magnet.
This phenomenon can be counteracted by subtracting the offset
using a microprocessor. Alternatively, the difference between the
two dies can be compensated for using the EEPROM for setting
the Reference Angle.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
12
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Programing Modes
The EEPROM can be programmed through the dedicated SPI
interface pins or via Manchester encoding on the VCC pin, allow-
ing process coefficients to be entered and options selected. (Note:
programming EEPROM also requires the VCC line to be pulsed,
which could adversely affect other devices if powered from the
same line). The EEPROM provides persistent storage at end of
line for final parameters.
SPI System-Level Timing
The A1338 outputs a new angle measurement every tANG µs. In
High RPM mode, the A1338 outputs a new angle measurement
every tANG µs, with an effective resolution of 10 bits. There
is, however, a latency of tLAT
, from when the rotating magnet
is sampled by the CVH to when the sampled data has been
completely transmitted over the SPI interface. Because an SPI
interface Read command is not synchronous with the CVH tim-
ing, but instead is polled by the external host microcontroller, the
latencycanvary.Forsingleback-to-backSPItransactions(first
transaction is sending the Read register 0x0 command, second is
retrieving the angle data) the following scenarios are possible:
• Worst case: 2 CVH cycle + 2 SPI cycles
• Best case: 1.5 SPI cycles; 2 µs, assuming a 10 MHz SPI clock
Power-Up
Upon applying power to the A1338, the device automatically runs
through an initialization routine. The purpose of this initializa-
tion is to ensure that the device comes up in the same predictable
operating condition every power cycle. This initialization routine
takes a finite amount of time to complete, which is referred to as
Power-On Time, tPO
.
The A1338 wakes up in a default state that sets all SPI registers
to their default value. It is important to note that, regardless of the
state of the device before a power cycle, the device will re-power
withdefaultvalues.Forexample,oneverypower-up,thedevice
will power up in the mode set in the EEPROM bit RPM. The
state of the EEPROM is unchanged.
PWM Output (“-P-” option)
The A1338LLETR-P-DD-T and A1338LLETR-P-T options pro-
vide a pulse-width-modulated output with duty cycle proportional
to the measured angle. The PWM duty cycle ranges between
5% (corresponding to 0° angle) and 95% (corresponding to 360°
angle). The 0% and 100% (Pulled Low and Pulled High) states
are reserved for error condition notifications.
Within each cycle, the output is high for the first 5% of the period. The
middle 90% of the period is a linear interpolation of the angle as samples
at the beginning of the PWM period.
The angle is represented in 12-bit resolution and can never reach exactly
360°. The maximum duty cycle high period is:
DutyCycleMax (%) = (4095 / 4096) × 90 + 5 .
Error Reporting in PWM
The PWM output will tristate when any unmasked error is pres-
ent (see ERR and ERR2 register descriptions). Error flags are
masked via bits within EEPROM 0x1E.
By default, the BATD error mask is set in EEPROM for all PWM
output ICs. This prevents the PWM output from tristating on
power-on.
0T
D = 5%
0
360
D = 50% D = 95%
Magnetic Field Angle (°)
PWM Waveform (V)
1T
D
1T
D
2T
D
4T
D
3T
D
0T
D
5T
t
pulse(5)
T
period
D
6T
D
7T
D
8T
D
(x)
= t
pulse(x)
/
T
period
D
9T
D
10T
CLAMP_HIGH
CLAMP_LOW
2T 3T 4T 5T 6T 7T 8T 9T 10T 11T Time
Figure 2: PWM mode outputs a duty-cycle-based waveform
that can be read by the external controller as a cumulatively
changing continuous voltage.
Figure 3: Pulse-Width Modulation (PWM) Examples
5 % LOW
5 % HIGH
5 % LOW
5 % HIGH
5 % LOW
5 % HIGH
5 % LOW
5 % HIGH
5 % LOW
5 % HIGH
5 % LOW
5 % HIGH
PWM Period
PWM Period
(0 Degrees)
120
Degrees
240 Degrees360 Degrees
PWM Period
PWM Period
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
13
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
MANCHESTER SERIAL INTERFACE
To facilitate addressable device programming when using the
unidirectional SENT output mode with no need for additional
wiring, the A1338 incorporates a serial interface on the VCC line.
(Note: The A1338 may be programmed via the SPI interface,
withadditionalwiringconnections.Fordetailedinformationon
part programming, refer to the A1338 programming manual).
This interface allows an external controller to read and write reg-
isters in the A1338 EEPROM and volatile memory. The device
uses a point-to-point communication protocol, based on Man-
chester encoding per G.E. Thomas (a rising edge indicates a 0
and a falling edge indicates a 1), with address and data transmit-
ted MSB first. The addressable Manchester code implementation
uses the logic states of the SA0 (SPI CS pin) / SA1 (SPI SCLK
pin) to set address values for each die. In this way, individual
communication with up to four A1338 dies is possible.
To prevent any undesired programming of the A1338, the serial
interface can be disabled by setting the Disable Manchester bit
(0x19 bit 18) to a 1. With this bit set, the A1338 will ignore any
Manchester input on VCC.
Entering Manchester Communication Mode
Provided the Disable Manchester bit is not set in EEPROM, the
A1338 continuously monitors the VCC line for valid Manchester
commands. The part takes no action until a valid Manchester
Access Code is received.
There are two special Manchester code commands used to
activate or deactivate the serial interface and specify the output
format used during Read operations:
1. Manchester Access Code: Enters Manchester Communica-
tion Mode; Manchester code output on the SENT pin.
2. Manchester Exit Code: Returns the SENT pin to normal
(angle data) output format.
Once the Manchester Communication Mode is entered, the SENT
output pin will cease providing angle data, interrupting any data
transmission in progress.
Transaction Types
As shown in Figure4, the A1338 receives all commands via the
VCC pin, and responds to Read commands via the SENT pin.
This implementation of Manchester encoding requires the com-
munication pulses be within a high (VMAN(H)) and low (VMAN(L))
range of voltages on the VCC line. Writing to EEPROM is sup-
ported by two high-voltage pulses on the VCC line.
Each transaction is initiated by a command from the controller;
the A1338 does not initiate any transactions. Two commands are
recognized by the A1338: Write and Read.
Writing to EEPROM
When a Write command requires writing to non-volatile
EEPROM, after the Write command, the controller must also
send two Programming pulses, high-voltage strobes via the VCC
pin. These strobes are detected internally, allowing the A1338 to
boost the voltage on the EEPROM gates. Refer to the program-
ming manual for specifics on sensor programming and protocol
details.
Figure 4: Top-Level Programming Interface
A1338
ECU
GND
Read Manchester Code
Write/Read Command -
Manchester Code
VCC
SENT
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
14
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Manchester Interface Reference
Table 2: Manchester Interface Protocol Characteristics [1]
Characteristics Symbol Note Min. Typ. Max. Unit
INPUT/OUTPUT SIGNAL TIMING
Bit Rate Defined by the input message bit rate sent from
the external controller 4 50 kbps
Bit Time tBIT
Data bit pulse width at 4 kbps 243 250 257 µs
Data bit pulse width at 100 kbps 9.5 10 10.5 µs
Bit Time Error errTBIT Deviation in tBIT during one command frame 11 +11 %
Write Delay tWRITE(E)
Required delay from the end of the second
EEPROM Program pulse to the leading edge of
a following command frame
VCC <
6.0 V
Read Delay tSTART
_
READ
Delay from the trailing edge of a Read
command frame to the leading edge of the Read
Acknowledge frame
¼ × tbit ¾ × tbit µs
EEPROM PROGRAMMING PULSE
EEPROM Programming Pulse
Setup Time tsPULSE(E)
Delay from last bit cell of write command to start
of EEPROM programming pulse 40 μs
Pulse High Time tPULSE(H) Time above minimum pulse voltage 8 10 11 ms
Rise Time tr10% to 90% of minimum pulse level 300 µs
Fall Time tf10% to 90% of minimum pulse level 60 µs
Pulse Voltage VPULSE Applied on VCC Line 18 19 19.5 V
Separation Time tPULSE(f-r)
Timing between first pulse dropping below 6 V
and 2nd pulse rising above 6 V 0.002 50 ms
INPUT SIGNAL VOLTAGE
Manchester Code High Voltage VMAN(H) Applied to VCC line 7.8 V
Manchester Code Low Voltage VMAN(L) Applied to VCC line 6.3 V
OUTPUT SIGNAL VOLTAGE (APPLIED ON SENT LINE)
Manchester Code High Voltage VMAN(H)
Minimum Rpullup = 5 kΩ 0.9 × VS V
Maximum Rpullup = 50 kΩ 0.7 × VS V
Manchester Code Low Voltage VMAN(L) 5 kΩ ≤ Rpullup ≤ 50 kΩ 0.2 V
[1] Determined by design.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
15
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
0000
4095
2048
SENT Data Value
(LSB)
(1111 1111 1111)
(0000 0000 0000)
(1000 0000 0000)
Angle (°)
Figure 5: Angle is represented as a 12-bit digital value.
The SENT output converts the measured magnetic field angle to
abinaryvaluemappedtotheFull-ScaleOutput(FSO)rangeof
0 to 4095, shown in Figure5. This data is inserted into a binary
pulse message, referred to as a frame, that conforms to the SENT
data transmission specification (SAEJ2716 JAN2010).
The SENT frame may be configured via EEPROM. The A1338
may operate in one of three broadly defined SENT modes (see
the A1337/8 Programming Manual for details on SENT modes
and settings).
• SAEJ2716SENT:Free-streamingSENTframeinaccordance
with industry specification.
• Triggered SENT (TSENT): User-defined sampling and
retrieval.
• Shared SENT: Allows multiple devices to share a common
SENT line. Devices may either be directly addressed
(Addressable SENT or ASENT) or sequentially polled
(Sequential SENT or SSENT).
SENT Output Mode
(A1338LLETR-DD-T, A1338LLETR-T options)
Sensor
ID = 0
Sensor
ID = 1
Sensor
ID = 2
Sensor
ID = 3
Host
(ECU)
R
C
Bus Capacitance
Figure 6: Allegro’s proprietary SENT protocol allows
multiple parts to share one common output bus.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
16
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
The duration of a nibble is denominated in ticks. The period of a
tick is set by the C_TICK_TIME parameter. The duration of the
nibble is the sum of the low-voltage interval plus the high-voltage
interval.
The parts of a SENT message are arranged in the following
required sequence (see Figure8):
1. Synchronization and Calibration:Flagsthestartofthe
SENT message.
2. Status and Communication Nibble: Provides A1338 status
and the optional serial data determined by the setting of the
SENT_SERIAL parameter.
3. Data: Angle information and optional data.
4. CRC: Error checking.
5. Pause Pulse (optional):FillpulsebetweenSENTmessage
frames.
SENT MESSAGE STRUCTURE
Data within a SENT message frame is represented as a series of
nibbles, with the following characteristics:
• Each nibble is an ordered pair of a low-voltage interval
followed by a high-voltage interval.
• The low-voltage interval acts as the delimiting state which acts
as a boundary between each nibble. The length of this low-
voltage interval is fixed at 5 ticks.
• The high-voltage interval performs the job of the information
state and is variable in duration in order to contain the data
payload of the nibble.
• The slew rate of the falling edge may be adjusted using the
C_SENT_DRIVE parameter.
Pause
Pulse
(optional)
CRC
tSENT
Data 6
Data 1
(MSB)
Status and
Commun-
ication
Synchronization
and Calibration
12 to 27
ticks
12 to 27
ticks
12 to 27
ticks
56 ticks
Nibble Name
SENT_FIXEDSENT_FIXED SENT_FIXEDSENT_FIXED SENT_FIXEDSENT_FIXED
12 to 27
ticks
Table 3: Nibble Composition and Value
Quantity of Ticks Binary
(4-bit)
Value
Decimal
Equivalent
Value
Low-
Voltage
Interval
High-
Voltage
Interval
Total
5 7 12 0000 0
5 8 13 0001 1
5 9 14 0002 2
5 21 26 1110 14
5 22 27 1111 15
Ticks
0512
Message
Signal
Voltage
Low
Interval
High
Interval
Nibble Data Value = 0000
Ticks
0527
Message
Signal
Voltage
Low
Interval
High
Interval
Nibble Data Value = 1111
Figure 7: General Value Formation for SENT
0000 (left), 1111 (right)
Figure 8: General Format for SENT Message Frame
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
17
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Table 4: EEPROM Registers Map Table with Defaults (Factory-Reserved Registers Not Shown) [1]
EADR State
Bits
23 22 21 20 19 18 17 16 15 14 13 12 11 109876543210
0x17 SENT_CFG ZS SS SM PO IS RES SCN_MODE DATA_MODE SENT_MODE TICK_TIME SENT_DRIVE
0x18 CUST_CFG1 CIS DA MAXID NS FA MISSING_MAG_THRESHOLD
0x19 CUST_CFG2 LOCK RES PWM_F RES MAND SCRC RPMD AVERAGE POL ANGLE_OFFSET
0x1E ERM RES MAN2 MAN UV LBST CVHST GOVF AH AL EU ES TR TRNO IE MAGM BATD
0x1F CUST2 CUST_EEP
[1] For more details, see Programming Manual.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
18
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
The A1338 was designed with ISO 26262:2011 requirements in
mind and supports a number of on-chip self diagnostics to enable
the host microcontroller to assess the operational status of each
die.Forexample,eachdiecanbeuser-configuredforlogicbuilt-
in self-test (LBIST) evaluation to ensure the digital circuits are
operational. Upon completion of an LBIST operation, the A1338
will set a pass/fail LBIST status flag in the device error (ERR)
register.
Each A1338 die also supports several diagnostic features and sta-
tus flags, accessible via a SPI read of the ERR register, to let the
user know if any issues are present with the A1338 or associated
magnetic system, as shown in Table 5.
In addition, each die on the A1338 supports an on-chip user-
initiated diagnostic (CVH Self-Test) mode that tests the entire
signal path, including the front end CVH sensing circuitry.
USER-INITIATED DIAGNOSTICS
Each die on the A1338 can independently be controlled by a
microcontroller to enter its CVH Self-Test mode via SPI or
SENT.
When a CVH Self-Test mode operation is requested by the
microcontroller, the respective die initiates a test mode sequence
whereby it sequentially applies an internal constant bias current
to every contact element in the CVH ring. As each element in
the CVH ring is sequentially biased, an angle measurement is
calculated.
The time to complete one revolution around the CVH ring and
calculate and store incremental angle measurements is tCVHST.
Table 5: Diagnostic Capabilities
Diagnostic/ Protection Description Output State
Loss of VCC Determine if battery power was lost. BATD Error flag is set; see ERR register table.
Reverse VCC Condition Current Limiting (VCCx pin). Output Below GND.
MISO/SENT/PWM Short to
VCC Current Limiting (MISOx pin). MISO/SENT/PWM Line: Pulled up to V-pullup.
Should not be tied to VCC if VCC > 5.5 V.
MISO/SENT/PWM Short to
Ground Current Limiting (MISOx pin). MISO/SENT/PWM Line: Pulled up to GND.
Logic Built-In Self-Test
(LBIST) 70% coverage for 10 ms BIST of all digital circuitry. Error Flags set in SPI message when errors are
detected; see ERR2 Register table.
Signal Path Diagnostics User controlled advanced CVH and full signal path diagnostics. Error Flags set in SPI message when errors are
detected; see ERR2 Register table.
Internal Error Monitors digital logic for proper function. IERR Error flag is set; see ERR Register table.
Missing Magnet Monitors magnet field level in case of mechanical failure. MAGM Error flag is set; see ERR Register table.
EEPROM Error Detection
and Correction
Detection of single and dual bit error, and correction of single
bit error.
Error flags set in SPI message when errors are
detected or corrected; see ERR Register table.
VCC Low Flag Asserted when VCC < VUVLOTH.Bit 2 of SPI Output on MISO is set high. See
Programming manual for more details.
Temperature Out of Range Die temperature has exceeded acceptable range. See ERR Register table for more details.
Redundancy Dual-die version of the A1338 provides redundant sensors in
the same package.
Diagnostics
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
19
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
SERIAL INTERFACE STRUCTURE
The serial interface contains the Primary Serial Interface (PSI)
registers and the restricted Extended Addressing registers. The
PSIeldsareusedbythehostforroutinecommunicationwith
the A1338, such as retrieving current angle and turns count, error,
andstatusdata,andmanagingcertaincongurationsettings.For
information on extended addressing and EEPROM access, see the
A1338 programming manual.
Table 6: Primary Serial Interface Registers (Reserved Registers Not Shown)
Address (Hex) Name (Symbol) Usage
0x00 Angle Output (ANG) Read out current angle (Note: 12-bit Angle Output located MSB first, in bits12:1; Bit0 is always ‘0’)
0x04 Error (ERR1) Read out error flags
0x05 Error (ERR2) Read out error flags
0x08 Control (CTRL) Read or write configuration commands
0x0F Key Code (KEY) Write the Key Code to enable access to Extended Addressing registers
Table 7: Primary Serial Interface Registers Bits Map (Reserved Registers Not Shown)
Serial
Address
Register
Symbol
Addressed Byte (MSB)
12 11 109876543210
0x00 ANG ANGLE OUTPUT (12:1) 0
0x04 ERR EEP2 EEP1 TMP RES IERR MAGM BATD
0X05 ERR2 MANER RES3 LBIST CVHST RES2 RES1 RES0
0x08 CTRL STS TRST RPM TEN ERST
0x0F KEY KEY_CODE
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
20
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
ANG (Angle Output) Register
Address: 0x00
Address 0x00
Bit 12 11 109876543210
Name ANGLE_OUTPUT
R/W RRRRRRRRRRRRR
Value 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0
Reset 0000000000000
Stores data on current angle reading.
ANGLE_OUTPUT [12:1] Current Angle
Most recent angle reading. Value is unsigned, stored in bits 12:1 (bit 0
defaults to 0). As the target turns, the angle value increases or decreases
according to the rotational polarity setting in EEPROM (CUST_CFG2
register, POL bit).
Bit Value Description
12:1 0/1 Current angle reading.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
21
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
ERR (Error) Register
Address: 0x04
Address 0x04
Bit 12 11 109876543210
Name EEP2 EEP1 TMP RES IERR MAGM BATD
R/W R R R R R R R
Value X X X X X X 0/1 0/1 0/1 0/1 0/1 0/1 0/1
Reset 0000000000001
Error register. Indicates various current error conditions. When set, can only be cleared via the CTRL register ERST field, hard reset, or power-on reset
(see BATD for exception). If any of the error bits are asserted, the error flag on the serial interface will be asserted. Masking an error bit will prevent the
bit from asserting the serial interface error flag, but the error bit may still be asserted in this register.
IERR [2] Internal Error
This bit is set to 1 if an internal logic error condition has been detected.
When this bit is set to 1, a general reset is recommended.
Bit Value Description
20 No digital logic timer error has been detected.
1 Digital logic timer error has been detected.
EEP2 [6] EEPROM Error Flag 2
Uncorrectable dual-bit EEPROM error flag.
Bit Value Description
60 Error condition not present.
1 Error condition present.
EEP1 [5] EEPROM Error Flag 1
Corrected single-bit EEPROM error flag.
Bit Value Description
50 Error condition not present.
1 Error condition present.
TMP [4] Temperature Out of Range
This bit indicates an error condition when the die temperature has
exceeded the acceptable range.
Bit Value Description
40 Error condition not present.
1 Error condition present.
RES [3] Reserved
MAGM [1] Target Magnet Loss
Monitors target magnet field level to detect field loss due to mechanical
failure in the application. Missing Magnet Field Threshold can be
customer programmed by writing to EEPROM Address 0x18, Bits 10:0
(MISSING_MAG_THRESHOLD). Allegro programs this to a default value
of 100 G, but the customer can readjust this field if they prefer.
Bit Value Description
10 Error condition not present.
1 Error condition present.
BATD [0] Power Supply Loss
Indicates if battery power (VCC supply) was lost. By default also indi-
cates at expected low power events: start-up, power-on reset, and after
exiting Transport mode. Before commencing normal operation, must be
set to 0 by asserting the ERST bit of the CTRL register (unless field is
masked in EEPROM by ERM register BATD field).
Bit Value Description
00 Error condition not present.
1 Error condition present.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
22
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
ERR2 (Error2) Register
Address: 0x05
Address 0x05
Bit 12 11 109876543210
Name MANER RES3 LBIST CVHST RES2 RES1 RES0
R/W R R R R R
Value X X X X X X 0/1 0/1 0/1 0/1 0/1
Reset 0000000–00–01
Error register. Indicates various current error conditions. When set, can only be cleared via the CTRL register ERST field, hard reset, or power-on reset
(see BATD for exception). If any of the error bits are asserted, the error flag on the serial interface will be asserted. Masking an error bit will prevent the
bit from asserting the serial interface error flag, but the error bit may still be asserted in this register.
RES2 [2] Factory Reserved Bit
RES1 [1] Factory Reserved Bit
RES0 [0] Factory Reserved Bit
MANER [6] Manchester/SENT Error Flag
Indicates Manchester/SENT Error.
Bit Value Description
60 Error condition not present.
1 Error condition present.
RES3 [5] Factory Reserved Bit
LBIST [4] LBIST Error Flag
This bit indicates that the Logic Built-In Self-Test (LBIST) failed.
Bit Value Description
40 Error condition not present.
1 Error condition present.
CVHST [3] Circular Vertical Hall Self-Test
This bit indicates that the CVH Built-In Self-Test (CVHST) failed.
Bit Value Description
30 Error condition not present.
1 Error condition present.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
23
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
CTRL (Control) Register
Address: 0x08
Address 0x08
Bit 76543210
Name STST RES1 RPM RES0 ERST
R/W RW1C R/W R/W RW1C
Value X X X X X 0/1 0/1 0/1
Reset 00000000
Initialization and operation configuration control command settings.
RW1C: When a 1 is written to the field, the command is immediately executed, and the value returns to zero. When Reading the field, this type of field
will always read back 0.
STS [4] Self-Test Start
Commands the A1338 to begin Self-Test(s).
Which self-test is run, is determined by the U_INIT_ST field within
EEPROM. There are two self-tests:
1. Logic Built-In Self-Test (LBIST): Verifies digital gate integrity. This is a
modified version of digital scan testing. Requires approximately 10 ms to
run during which time no angle readings can take place
2. CVH Self-Test: Test of the front end transducer and signal path.
Requires approximately 40 ms to compete, during which time angle
readings are not available.
Bit Value Description
4
0 Does not trigger Self-Test.
1Self-Test is triggered based on pre-selected
options in the “U_INIT_ST” field of EEPROM.
RPM [2] RPM Operating Mode (see Programming Manual)
This field is populated on power-up by the EEPROM field RPMD.
This field can be written during operation to temporarily override the
EEPROM. On the next power cycle, this field will reset to the value
determined by the EEPROM field RPMD. This bit must be a ‘1’ to enable
internal averaging.
Bit Value Description
20 Internal Averaging not allowed.
1Internal Averaging allowed.
RES1 [3] Reserved
RES0 [1] Reserved
ERST [0] Error Flags Reset
A feature to clear the values in the ERR register (0x04).
Bit Value Description
00 ERR register not cleared.
1 ERR register cleared.
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
24
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Figure 9: User-Interface Diagnostic Diagram
Normal
Operation
No
Yes
Signal Path Test
No
Yes
Logic BIST
All CVH
Delta Measurements =
Theta degrees?
IC applies internal test
vectors to IC logic and
detects logic circuit
response.
(Angle output lost during
test for duration of
Logic BIST test.)
Bit asserted in register to
inform user of pass or fail
condition. User must read
register via SPI interface.
Diagnostic
Initiated Over
SPI or SENT
Bus?
Bit asserted in register to
inform user of pass condition.
User must read flag via
SPI interface, or SENT
interface, or PWM interfaces.
Bit asserted in register to
inform user of fail condition.
User must read flag via SPI
interface, or SENTinterface, or
PWM interfaces.
A1338 enters CVH Self-Test mode
and measures delta angle over
all 64 contacts of the CVH ring.
(Angle output lost for the duration of test)
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
25
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
APPLICATION INFORMATION
Figure 10: Orientation of Magnet Relative to Primary and Secondary Die
NS
Target alignment for default angle setting
• Target rotation axis intersects primary die
• Sets primary die 21° default point
• Sets secondary die 201° default point
(Example shows element E1 as primary die
element E2 as secondary die)
Target rotation axis
Target poles aligned with
A1338 elements
E1
Pin 1 E1
E2
E2
SN
Serial Interface Description
The A1338 features SPI, SENT, and PWM interfaces. The fol-
lowing figures show some typical application circuits for using
the A1338 with these interfaces.
Calculating Target Zero-Degree Angle
When shipped from the factory, the default angle value when
oriented as shown in Figure10, is approximately 21° (201° on the
second die). In some cases, the end user may want to program an
angle offset in the A1338 to compensate for variation in magnetic
assemblies, or for applications where absolute system level read-
ings are required.
The internal algorithm for computing the output angle is as fol-
lows:
AngleOUT = AngleRAW – Reference Angle . (3)
The procedure to “zero out” the A1338 is quite simple. Dur-
ing final application calibration and programming, position
the magnet above the A1338 in the required zero-degree posi-
tion, and read the angle from the A1338 using the SPI interface
(AngleOUT).Fromthisangle,theReferenceAnglerequiredto
program the A1338 can be computed as follows:
Reference Angle = AngleOUT . (4)
Bypass Pins Usage
The bypass pins are required for proper operation of the device. A
0.1µFcapacitorshouldbeplacedinverycloseproximitytoeach
of the bypass pins.
When using the SPI communication protocol, the A1338 has
the ability to support host microcontroller inputs with Voltage
Input High (VIH) thresholds of 2 V (minimum). This option only
requiresBYP1tobepopulatedwitha0.1µFcapacitor.
By using an optional second bypass capacitor on the BYP2 pins,
the A1338 can also support host microcontroller inputs with Volt-
age Input High (VIH) thresholds of 2.5 V (minimum). This option
requiresthatbothBYP1andBYP2pinsbepopulatedwith0.1µF
Figure 11: Hall Element Located O󰀨-Center within the Device Body
(refer to the Package Outline Drawing for reference dimensions)
Hall element
E1 location
Hall element
E2 location
24
1
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
26
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
capacitors, and that the appropriate EEPROM configuration bit
be enabled. Contact Allegro for availability of parts with elevated
SPI output levels.
The bypass pins are not intended to be used to source external
components. To assist with PCB layout, see the Operating Char-
acteristics table for output voltage and current requirements.
Changing Sampling Modes
The A1338 features a High RPM sampling mode and a Low
RPM sampling mode. The default power-on state of the A1338
is loaded from EEPROM. To configure the A1338 to Low RPM
mode, set the Operating mode to Low RPM mode by writing a
logic 1 to bit 2 (RPM) of the configuration commands (CTRL)
register, via the SPI interface.
Magnetic Target Requirements
The A1338 is designed to operate with magnets constructed with
a variety of magnetic materials, cylindrical geometries, and field
strengths, as shown in Table 8. Contact Allegro for more detailed
information on magnet selection and theoretical error.
Table 8: Target Magnet Parameters
Magnetic Material Diameter
(mm)
Thickness
(mm)
Neodymium (bonded) 15 4
Neodymium (sintered)* 10 2.5
Neodymium (sintered) 8 3
Neodymium / SmCo 6 2.5
NS
Thickness
Diameter
*A sintered Neodymium magnet with 10 mm (or greater) diameter and 2.5 mm
thickness is the recommended magnet for redundant applications.
Figure 12: Magnetic Field versus Air Gap for a magnet 6 mm
in diameter and 2.5 mm thick.
Allegro can provide similar curves for customer application magnets
upon request. Larger magnets are recommended for applications
that require optimized accuracy performance.
1600
1400
1200
1000
800
600
400
200
0
0.5 2.5 4.5 6.5 8.5
Air Gap (mm)
SmCo24
NdFe30
Ceramic
(Ferrite)
Magnetic Field (G)
Figure 13: Angle Error versus Eccentricity
14
13
12
11
10
9
8
7
6
5
4
3
2
1
00 0.5 1.0 1.5
Eccentricity of SOC Chip Relative to Magnet Rotation Axis (mm)
Angle Error (±°)
2.5 3.52.0 3.0
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
27
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Redundant Applications and Alignment Error
The A1338 is designed to be used in redundant, on-axis applica-
tions with a single magnet spinning over the two separate dies
that are mounted side-by-side in the same package. One chal-
lenge with this configuration is correctly lining up the magnet
with the device package, so it is important to be aware of the
physical separation of the two dies.
Figure14 illustrates the behavior of alignment error when using
a Ø10 mm × 2.5 mm Neodymium magnet that is located 2.7 mm
above the branded face of the package. The curve shows the rela-
tionship between absolute angle error present on the output of the
die versus eccentricity of the die relative to the rotation axis of
the magnet. The curve is the same for both dies in the package.
The curve provides guidance to determine what the optimal mag-
netplacementshouldbeforagivenapplication.Forexample,
given that the maximum spacing between the two dies is 1 mm,
if the center of the magnet rotation is placed at the midpoint
between the two dies, each die will have a maximum eccentricity
of 0.5 mm.
Forapplicationswithreducedaccuracyrequirements,considering
one die the primary and the other die the secondary, the magnet
axis of rotation could be positioned directly above the primary
die, and thus offset 1 mm from the secondary die, yielding zero
alignment error on the primary die, and approximately ±1° of
error on the secondary die, relative to the primary die, due to
geometric mismatch.
System Timing and Error
The A1338 is a digital system, and therefore takes angle samples
at a fixed sampling rate. When using a sensing device with a
fixed sampling rate to sample a continuously moving target, there
will be error introduced that can be simply calculated with the
sampling rate of the device and the speed at which the magnetic
signal is changing. In the case of the A1338, the input signal is
rotating at various speeds, and the sampling rate of the A1338 is
fixed at ANG
. The calculation would be:
ANG (µs) × angular velocity ( ° / µs) . (5)
So the faster the magnetic object is spinning, the further behind in
angle the output signal will seem for a fixed sampling rate.
Figure 14: Demonstration of Magnet to Sensing Element Eccentricity
Example of equal eccentricity:
Target rotation axis
centered between both dies
Example of unequal eccentricity:
Target rotation axis
centered over primary die
(either die may be used
as primary)
Eccentricity of secondary die
(measured from target
rotation axis intersect,
to secondary die)
Target rotation axis
Target clockwise rotation
(Plus counts)
Target counterclockwise
rotation (Minus counts)
dAXIAL1 dAXIAL2
dAXIAL1 = 0 dAXIAL2
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
28
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Figure 15: Angle Error over Temperature (300 G) Figure 16: Angle Drift Relative to 25°C (300 G)
Temperature (°C)
-40 -20 100 120 140
Angle Error in Degrees
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Mean
±3 Sigma
020406080
Temperature (°C)
-40-20 020406080100 120140
Drift in Degrees
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Mean
±3 Sigma
CHARACTERISTIC PERFORMANCE DATA
Field Strength in Gauss
300 400 500 600 700 800 900 1000
Peak Angle Error (degrees)
0
0.5
1
1.5
25°C
150°C
Figure 17: Angle Error over Field Strength Figure 18: Typical Three Sigma Angle Noise
Over Field Strength
300 400 500 600 700 800 900
Field Strength in Gauss
0
0.2
0.4
0.6
0.8
1
Noise (degrees)
-40°C
25°C
150°C
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
29
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Figure 19: Noise Distribution over Temperature
(3 σ, 300 G) Figure 20: Noise Performance over Temperature
(3 σ, 300 G)
Noise in degrees
0 0.3 0.6 0.9 1.2 1.5
Frequency (%)
0
5
10
15
20
25
-40°C
25°C
150°C
Ambient Temperature in °C
-50 050 100 150
Noise in degrees
0
0.2
0.4
0.6
0.8
1.0
Mean
±3 Sigma
Figure 21: ICC Distribution over Temperature
(ICC per die, VCC = 3.7 V)
ICC in mA
678
91
0
Count (%)
0
5
10
15
-40°C
25°C
150°C
Figure 22: ICC Distribution over Temperature
(ICC per die, VCC = 16 V)
ICC in mA
678
91
0
Count (%)
0
2
4
6
8
10
12
14
-40°C
25°C
150°C
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
30
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
V
CC
A1338
(Dual-Die Version)
VCC_1
SCLK_1
SCLK_2
MISO_1
BIAS_1
MOSI_1
MOSI_2
MISO_2
BIAS_2
BYP1_1 BYP2_1* VCC_2 BYP1_2 BYP2_2*
0.1 µF
100 Ω 100 Ω
0.1 µF 0.1 µF 0.1 µF 0.1 µF
Host
Microprocessor
CS_1
CS_2
PWM_1/SENT_1
PWM_2/SENT_2
Target
Magnet
(Optional)
(Optional)
Tachometer
Tachometer
RSPLY
GNDA_1 GNDD_1GNDA_2 GNDD_2
Figure 23: Typical application diagram (dual-die version) with EMC suppression resistor, RSPLY , on supply line.
*Secondary bypass capacitors only required when using Elevated SPI Output Voltage. Contact Allegro for availability.
EMC Reduction
ForapplicationswithstringentEMCrequirements,a100Ω
resistance should be added to the supply for the device in order to
suppress noise. A recommended circuit is shown in Figure23.
Figure 24: Hall element located o󰀨-center within the device body;
refer to the Package Outline Drawing for reference dimensions
1
Hall element
E1 location
Hall element
E2 location
Hall element
location
24
1
14
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
31
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
A
1.10 MAX
0.15
0.00
0.30
0.19
0.20
0.09
0.60
1.00 REF
C
SEATING
PLANE
C0.10
16×
0.65 BSC
0.25 BSC
21
14
5.00 ±0.10
4.40 ±0.10 6.40 BSC
GAUGE PLANE
SEATING PLANE
A
B
B
Branding scale and appearance at supplier discretion
C
6.00
0.65
0.45
1.70
14
21
C
Branded Face
PCB Layout Reference View
Standard Branding Reference View
= Device part number
= Supplier emblem
= Last two digits of year of manufacture
= Week of manufacture
= Lot number
N
Y
W
L
Terminal #1 mark area
For Reference Only Not for Tooling Use
(Reference MO-153 AB-1)
Dimensions in millimeters
Dimensions exclusive of mold flash, gate burrs, and dambar protrusions
Exact case and lead configuration at supplier discretion within limits shown
Reference land pattern layout (reference IPC7351 TSOP65P640X120-14M);
All pads a 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 at the exposed thermal pad land
can improve thermal dissipation (reference EIA/JEDEC Standard JESD51-5)
NNNNNNNNNNNN
YYWW
LLLLLLLLLLLL
+0.15
–0.10
1.62
2.20
E
DHall element, not to scale
EActive Area Depth 0.36 mm REF
D
Figure 25: Package LE, 14-Pin TSSOP
PACKAGE OUTLINE DRAWINGS
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
32
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
A
1.20 MAX
0.025
0.05
0.30
0.19
0.20
0.09
+0.15
–0.10
0.60
1.00 REF
C
SEATING
PLANE
C0.10
24
X
0.65 BSC
0.25 BSC
2
2
1
1
24
24
7.80 ±0.10
4.40 ±0.10
2.20
6.40 BSC
GAUGE PLANE
SEATING PLANE
A
B
B
0.65
6.10
1.65
0.45
D
D
D
D
DD
Hall elements (E1, E2), corresponding to respective die; not to scale
1.00
3.40
E1 E2
C Branding scale and appearance at supplier discretion
E
E
C
PCB Layout Reference View
For Reference Only Not for Tooling Use
(Reference MO-153 AD)
Dimensions in millimeters
Dimensions exclusive of mold flash, gate burrs, and dambar protrusions
Exact case and lead configuration at supplier discretion within limits shown
Terminal #1 mark area
Reference land pattern layout (reference IPC7351 TSOP65P640X120-25M);
all pads a 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)
Active Area Depth 0.36 mm REF
1
Standard Branding Reference View
= Device part number
= Supplier emblem
= Last two digits of year of manufacture
= Week of manufacture
= Lot number
N
Y
W
L
NNNNNNNNNN
YYWW
LLLLLLLLLL
Figure 26: Package LE, 24-Pin TSSOP
Allegro MicroSystems, LLC Conf idential Information
Precision, Hall-Effect Angle Sensor IC
with SPI, and SENT or PWM Outputs
A1338
33
Allegro MicroSystems, LLC
115 Northeast Cuto󰀨
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Copyright ©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.
Revision History
Number Date Description
November 18, 2016 Initial release
1 July 13, 2017 Updated MOSI_1/SCLK_1/ID1_1 and MOSI_2/SCLK_2/ID1_2 pinouts, WAKEx Input Specifications,
PWM Output Signal, SENT Output Signal, Figure 12, 13, and 16.
2 January 25, 2018
Updated Typical Application Diagram (page 4);
Bypass2 Pin Output Voltage characteristic and test conditions (page 7);
PWM Carrier Frequency test conditions, Sent Output Signal maximum value, Logical BIST
Coverage versus Time (page 8);
Effective Resolution typical value, footnotes 8-15 (page 9);
Overview, Angle Measurement sections (page 10-11);
Manchester Code Low Voltage maximum value (page 14);
Table 4 (page 17);
Table 5 (page 18);
ERR Register Address table and bit 3 detail (page 19);
CTRL Register, STS Self-Test Start (page 21);
Calculating Target Zero-Degree Angle (page 23); and
Figure 22 (page 28).
3 April 4, 2018
Updated PWM Interface Specifications (page 8);
PWM Output section (page 12);
EEPROM Registers Map Table (page 17);
Serial Interface Structure (pages 19-23);
Figures 18 and 20 (pages 28-29).
For the latest version of this document, visit our website:
www.allegromicro.com
Allegro MicroSystems, LLC Conf idential Information