AS5045-ASST [AMSCO]

12-Bit Programmable Magnetic Rotary Position Sensor;
AS5045-ASST
型号: AS5045-ASST
厂家: AMS(艾迈斯)    AMS(艾迈斯)
描述:

12-Bit Programmable Magnetic Rotary Position Sensor

文件: 总47页 (文件大小:633K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
AS5045  
12-Bit Programmable Magnetic Rotary  
Position Sensor  
The AS5045 is a contactless magnetic position sensor for  
accurate angular measurement over a full turn of 360°. It is a  
system-on-chip, combining integrated Hall elements, analog  
front end and digital signal processing in a single device.  
General Description  
To measure the angle, only a simple two-pole magnet, rotating  
over the center of the chip, is required. The magnet may be  
placed above or below the IC.  
The absolute angle measurement provides instant indication of  
the magnet’s angular position with a resolution of  
0.0879° = 4096 positions per revolution. This digital data is  
available as a serial bit stream and as a PWM signal.  
An internal voltage regulator allows the AS5045 to operate at  
either 3.3 V or 5 V supplies.  
Ordering Information and Content Guide appear at end of  
datasheet.  
Key Benefits & Features  
The benefits and features of AS5045, 12-Bit Programmable  
Magnetic Rotary Position Sensor are listed below:  
Figure 1:  
Added Value of Using AS5045  
Benefits  
Features  
Highest reliability and durability in harsh  
environments  
Contactless absolute angle position measurement  
User programmable zero position  
Great flexibility during assembly  
Operation safety  
Diagnostic modes for magnet detection and power supply  
loss  
Lower material cost (no magnetic  
shielding needed)  
Immune to external magnetic stray fields  
Two digital 12-bit absolute outputs:  
• Serial interface and  
• Pulse width modulated (PWM) output  
Failure detection mode for magnet placement monitoring  
and loss of power supply  
“Red-Yellow-Green” indicators display placement of magnet  
in Z-axis  
ams Datasheet  
Page 1  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − General Description  
Serial read-out of multiple interconnected AS5045 devices  
using Daisy Chain mode  
Tolerant to magnet misalignment and airgap variations  
Wide temperature range: - 40ºC to 125ºC  
Small Pb-free package: SSOP-16 (5.3mm x 6.2mm)  
Applications  
The AS5045 is ideal for industrial applications like  
Robotics,  
Stepper motor control,  
RC servo control and  
Replacement of high-end potentiometers.  
Block Diagram  
The functional blocks of this device are shown below:  
Figure 2:  
AS5045 Block Diagram  
VDD3V3  
MagINCn  
MagDECn  
VDD5V  
LDO 3.3V  
PWM  
Interface  
PWM  
Sin  
Ang  
Mag  
DO  
DSP  
Absolute  
Interface  
(SSI)  
Cos  
Hall Array  
&
Frontend  
Amplifier  
CSn  
CLK  
OTP  
Register  
Prog_DI  
AS5045  
Mode  
Page 2  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Pin Assignment  
Pin Assignment  
Figure 3:  
Pin Assignment (Top View)  
1
16  
15  
MagINCn  
VDD5V  
VDD3V3  
NC  
MagDECn  
NC  
2
3
4
14  
13  
12  
11  
NC  
NC  
5
6
NC  
PWM  
CSn  
Mode  
7
8
VSS  
10  
9
CLK  
DO  
Prog_DI  
Pin Description  
Figure 4 shows the description of each pin of the standard  
SSOP16 package (Shrink Small Outline Package, 16 leads, body  
size: 5.3mm x 6.2mmm; see Figure 3).  
Pins 7, 15 and 16 supply pins, pins 3, 4, 5, 6, 13 and 14 are for  
internal use and must not be connected.  
Pins 1 and 2 MagINCn and MagDECn are the magnetic field  
change indicators (magnetic field strength increase or decrease  
through variation of the distance between the magnet and the  
device). These outputs can be used to detect the valid magnetic  
field range. Furthermore those indicators can also be used for  
contact-less push-button functionality.  
Pin 6 Mode allows switching between filtered (slow) and  
unfiltered (fast mode). This pin must be tied to VSS or VDD5V,  
and must not be switched after power up. See Mode Input Pin.  
Pin 8 Prog is used to program the zero-position into the OTP.  
See Zero Position Programming.  
This pin is also used as digital input to shift serial data through  
the device in Daisy Chain configuration. See Daisy Chain Mode.  
Pin 11 Chip Select (CSn; active low) selects a device within a  
network of AS5045 magnetic position sensors and initiates  
serial data transfer. A logic high at CSn puts the data output pin  
(DO) to tri-state and terminates serial data transfer. This pin is  
also used for alignment mode and programming mode (see  
Figure 27).  
ams Datasheet  
Page 3  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Pin Assignment  
Pin 12 PWM allows a single-wire output of the 10-bit absolute  
position value. The value is encoded into a pulse width  
modulated signal with 1μs pulse width per step (1μs to 4096μs  
over a full turn). By using an external low pass filter, the digital  
PWM signal is converted into an analog voltage, making a direct  
replacement of potentiometers possible.  
Figure 4:  
Pin Description  
Pin  
Number  
Pin Name  
Pin Type  
Description  
Magnet Field Magnitude INCrease; active low, indicates  
a distance reduction between the magnet and the  
device surface (see Figure 16).  
1
MagINCn  
MagDECn  
Digital output open  
drain  
Magnet Field Magnitude DECrease; active low,  
indicates a distance increase between the device and  
the magnet see Figure 16).  
2
3
4
5
NC  
NC  
NC  
-
-
-
Must be left unconnected  
Select between slow (low, VSS) and fast (high, VDD5V)  
mode. Internal pull-down resistor. Must be hard-wired  
on the PCB in application.  
6
7
8
Mode  
VSS  
-
Supply pin  
Negative Supply Voltage (GND)  
OTP Programming Input and Data Input for Daisy Chain  
mode. Internal pull-down resistor (~74kΩ). Connect to  
VSS if not used  
Digital input  
pull-down  
Prog_DI  
Digital output /  
tri-state  
9
DO  
CLK  
Data Output of Synchronous Serial Interface  
Clock Input of Synchronous Serial Interface;  
Digital input,  
Schmitt-Trigger input Schmitt-Trigger input  
10  
11  
12  
Digital input pull-up,  
Schmitt-Trigger input pull-up resistor (~50kΩ)  
Chip Select, active low; Schmitt-Trigger input, internal  
CSn  
PWM  
Pulse Width Modulation of approx. 244Hz; 1μs/step  
(optional 122Hz; 2μs/step)  
Digital output  
13  
14  
NC  
NC  
-
-
Must be left unconnected  
3V-Regulator Output, internally regulated from VDD5V.  
Connect to VDD5V for 3V supply voltage. Do not load  
externally.  
15  
16  
VDD3V3  
VDD5V  
Supply pin  
Positive Supply Voltage, 3.0 to 5.5 V  
Page 4  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Absolute Maximum Ratings  
Stresses beyond those listed in Absolute Maximum Ratings may  
cause permanent damage to the device. These are stress ratings  
only, and functional operation of the device at these or any  
other conditions beyond those indicated in Electrical  
Characteristics is not implied. Exposure to absolute maximum  
rating conditions for extended periods may affect device  
reliability.  
Absolute Maximum Ratings  
Figure 5:  
Absolute Maximum Ratings  
Parameter  
Min  
Max  
Units  
Comments  
Electrical Parameters  
DC supply voltage at pin VDD5V  
-0.3  
7
5
V
V
DC supply voltage at pin  
VDD3V3  
VDD5V  
+0.3  
Input pin voltage  
-0.3  
V
Except VDD3V3  
Input current (latchup immunity)  
-100  
100  
mA  
EIA/JESD78 Class II Level A  
JESD22-A114E  
Electrostatic Discharge  
kV  
Electrostatic discharge  
2
Temperature Ranges and Storage Conditions  
Storage temperature  
-55  
150  
ºC  
Min -67ºF; Max 302ºF  
The reflow peak soldering temperature  
(body temperature) specified is in  
accordance with IPC/JEDEC J-STD-020  
“Moisture/Reflow Sensitivity Classification  
for Non-Hermetic Solid State Surface  
Mount Devices.  
Package body temperature  
260  
ºC  
The lead finish for Pb-free leaded  
packages is matte tin (100% Sn).  
Relative humidity  
non-condensing  
5
85  
%
Represents a maximum floor life time of  
168h  
Moisture sensitivity level (MSL)  
3
ams Datasheet  
Page 5  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Electrical Characteristics  
T
= -40°C to 125°C, VDD5V = 3.0V to 3.6V (3V operation)  
Electrical Characteristics  
AMB  
VDD5V = 4.5V to 5.5V (5V operation), unless otherwise noted.  
Figure 6:  
Electrical Characteristics  
Symbol  
Parameter  
Condition  
Operating Conditions  
-40°F to 257°F  
Min  
Typ  
Max  
Units  
T
Ambient temperature  
Supply current  
-40  
125  
21  
°C  
AMB  
I
16  
mA  
supp  
Supply voltage at pin  
VDD5V  
VDD5V  
VDD3V3  
VDD5V  
4.5  
3.0  
3.0  
3.0  
5.0  
5.5  
3.6  
3.6  
3.6  
5V operation  
V
V
Voltage regulator output  
voltage at pin VDD3V3  
3.3  
3.3  
3.3  
Supply voltage at pin  
VDD5V  
3.3V operation  
(pin VDD5V and VDD3V3  
connected)  
Supply voltage at pin  
VDD3V3  
VDD3V3  
DC Characteristics CMOS Schmitt-Trigger Inputs: CLK, CSn (CSn = Internal Pull-Up)  
0.7 *  
VDD5V  
V
High level input voltage  
Low level input voltage  
Normal operation  
V
V
IH  
0.3 *  
VDD5V  
V
IL  
V
V
Schmitt Trigger hysteresis  
Input leakage current  
1
V
Ion- Ioff  
I
CLK only  
-1  
1
μA  
LEAK  
Pull-up low level input  
current  
I
CSn only, VDD5V: 5.0V  
-30  
-100  
μA  
IL  
DC Characteristics CMOS / Program Input: Prog  
0.7 *  
VDD5V  
V
High level input voltage  
VDD5V  
V
V
IH  
Refer to programming  
conditions (Figure 10)  
VPROG  
High level input voltage  
During programming  
VDD5V: 5.5V  
0.3 *  
VDD5V  
V
Low level input voltage  
High level input current  
V
IL  
I
30  
100  
μA  
IL  
Page 6  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Electrical Characteristics  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
DC Characteristics CMOS Output Open Drain: MagINCn, MagDECn  
Low level output voltage  
V
VSS+0.4  
V
OL  
VDD5V: 4.5V  
VDD5V: 3V  
4
2
1
I
Output current  
mA  
μA  
O
I
Open drain leakage current  
OZ  
DC Characteristics CMOS Output: PWM  
VDD5V-  
V
High level output voltage  
V
V
OH  
0.5  
V
Low level output voltage  
VSS+0.4  
OL  
VDD5V: 4.5V  
VDD5V: 3V  
4
2
I
Output current  
mA  
O
DC Characteristics Tri-state CMOS Output: DO  
VDD5V-  
V
High level output voltage  
V
V
OH  
0.5  
V
Low level output voltage  
Output current  
VSS+0.4  
OL  
VDD5V: 4.5V  
VDD5V: 3V  
4
2
1
I
mA  
μA  
O
I
Tri-state leakage current  
OZ  
ams Datasheet  
Page 7  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Electrical Characteristics  
Magnetic Input Specification  
Two-pole cylindrical diametrically magnetized source:  
Figure 7:  
Magnetic Input Specification  
Symbol  
Parameter  
Conditions  
Min Typ Max Units  
d
Diameter  
Thickness  
Recommended magnet:  
Ø 6mm x 2.5mm for  
cylindrical magnets  
4
6
mm  
mm  
mag  
t
2.5  
mag  
Required vertical component  
of the magnetic field strength  
on the die’s surface,  
measured along a concentric  
circle with a radius of 1.1mm  
Magnetic input field  
amplitude  
B
45  
75  
mT  
pk  
B
Magnetic offset  
Constant magnetic stray field  
Including offset gradient  
10  
mT  
%
off  
Field non-linearity  
5
146 rpm @ 4096  
positions/rev.; fast mode  
2.44  
Input frequency  
(rotational speed of  
magnet)  
f
Hz  
mag_abs  
36.6rpm @ 4096  
positions/rev.; slow mode  
0.61  
0.25  
100  
Maximum offset between  
defined device center and  
magnet axis  
Disp  
Ecc  
Displacement radius  
Eccentricity  
mm  
μm  
Eccentricity of magnet center  
to rotational axis  
Page 8  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Electrical Characteristics  
Electrical System Specifications  
Figure 8:  
Input Specification  
Symbol  
Parameter  
Conditions  
Min  
Typ  
Max  
Units  
RES  
Resolution  
0.088 deg  
12  
bit  
Maximum error with respect to  
the best line fit. Centered  
magnet without calibration,  
INL  
0.5  
0.9  
opt  
T
= 25°C  
AMB  
Integral non-linearity  
(optimum)  
deg  
Maximum error with respect to  
the best line fit. Centered  
magnet without calibration,  
INL  
temp  
T
= -40°C to 125°C  
AMB  
Best line fit = (Err  
– Err ) / 2  
min  
max  
Over displacement tolerance  
with 6mm diameter magnet,  
without calibration,  
INL  
Integral non-linearity  
1.4  
deg  
deg  
T
= -40 to 125°C  
°C  
AMB  
Differential  
non-linearity  
DNL  
TN  
12-bit, No missing codes  
0.044  
0.06  
1 sigma, fast mode  
(MODE = 1)  
deg  
RMS  
Transition noise  
1 sigma, slow mode (MODE=0  
or open)  
0.03  
Power-on reset  
thresholds:  
On voltage; 300mV typ.  
hysteresis  
V
V
ON  
1.37  
1.08  
2.2  
1.9  
2.9  
DC supply voltage 3.3V  
(VDD3V3)  
V
Power-on reset  
thresholds: Off voltage;  
300mV typ. hysteresis  
2.6  
20  
OFF  
Fast mode (Mode = 1);  
until status bit OCF = 1  
t
Power-up time  
ms  
μs  
PwrUp  
Slow mode (Mode = 0 or open);  
until OCF = 1  
80  
96  
System propagation  
delay absolute output :  
delay of ADC, DSP and  
absolute interface  
Fast mode (MODE=1)  
t
delay  
Slow mode (MODE=0 or open)  
384  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 9  
Document Feedback  
AS5045 − Electrical Characteristics  
Symbol  
Parameter  
Conditions  
Min  
Typ  
Max  
Units  
T
= 25°C,  
AMB  
2.48  
2.61  
2.74  
slow mode (MODE=0 or open)  
Internal sampling rate  
for absolute output:  
f
kHz  
S
T
= -40°C to 125°C,  
AMB  
2.35  
9.90  
9.38  
2.61  
10.42  
10.42  
2.87  
10.94  
11.46  
1
slow mode (MODE=0 or open)  
T
= 25°C, fast mode  
AMB  
(MODE = 1)  
Internal sampling rate  
for absolute output  
f
kHz  
S
T
= -40°C to 125°C,  
AMB  
fast mode (MODE = 1)  
Maximum clock frequency to  
read out serial data  
CLK  
Read-out frequency  
MHz  
Figure 9:  
Integral and Differential Non-Linearity (Example)  
12bit code  
α
4095  
4095  
Actual curve  
Ideal curve  
TN  
2
1
DNL+1LSB  
INL  
0.09°  
0
2048  
2048  
0
°
180°  
[degrees]  
°
0
360  
α
Integral Non-Linearity (INL) is the maximum deviation between  
actual position and indicated position.  
Differential Non-Linearity (DNL) is the maximum deviation of  
the step length from one position to the next.  
Transition Noise (TN) is the repeatability of an indicated  
position.  
Page 10  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Timing Characteristics  
Timing Characteristics  
Figure 10:  
Timing Characteristics  
Symbol  
Parameter  
Conditions  
Synchronous Serial Interface (SSI)  
Time between falling edge of  
Min Typ Max Units  
Data output activated  
(logic high)  
t
CSn and data output  
activated  
100  
ns  
ns  
DO active  
Time between falling edge of  
CSn and first falling edge of  
CLK  
First data shifted to  
output register  
t
500  
CLK FE  
Rising edge of CLK shifts out  
one bit at a time  
T
Start of data output  
Data output valid  
Data output tristate  
500  
357  
ns  
ns  
ns  
CLK / 2  
Time between rising edge of  
CLK and data output valid  
t
375  
394  
100  
DO valid  
After the last bit DO changes  
back to “tristate”  
t
DO tristate  
CSn = high; To initiate  
read-out of next angular  
position  
t
Pulse width of CSn  
Read-out frequency  
500  
>0  
ns  
CSn  
Clock frequency to read out  
serial data  
f
1
MHz  
CLK  
Pulse Width Modulation Output  
Signal period = 4097μs 5%  
232  
244  
256  
T
at  
= 25°C  
AMB  
f
PWM frequency  
Hz  
PWM  
Signal period = 4097μs 10%  
220  
244  
1
268  
T
at  
= -40 to 125°C  
AMB  
PW  
Minimum pulse width  
Maximum pulse width  
Position 0d; Angle 0°  
0.95  
1.05  
μs  
μs  
MIN  
Position 4095d; Angle  
359.91°  
PW  
3891 4096 4301  
MAX  
ams Datasheet  
Page 11  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Timing Characteristics  
Symbol  
Parameter  
Conditions  
Min Typ Max Units  
Programming Conditions  
Time between rising edge at  
Prog pin and rising edge of  
CSn  
Programming enable  
time  
t
2
μs  
Prog enable  
t
Write data start  
2
250  
3
μs  
ns  
μs  
μs  
Data in  
Write data at the rising edge  
t
Write data valid  
Data in valid  
of CLK  
PROG  
t
Load programming data  
Load PROG  
Rise time of V  
before  
PROG  
t
0
PrgR  
CLK  
PROG  
Hold time of V  
after  
PROG  
t
0
5
μs  
PrgH  
CLK  
PROG  
Write data –  
programming CLK  
Ensure that V  
with rising edge of CLK  
is stable  
PROG  
CLK  
250  
2.2  
kHz  
μs  
PROG  
PROG  
During programming; 16  
clock cycles  
t
CLK pulse width  
1.8  
2
2
PROG  
Programmed data is  
available after next  
power-on  
Hold time of V  
programming  
after  
PROG  
t
μs  
PROG finished  
Programming voltage,  
pin PROG  
Must be switched off after  
zapping  
V
7.3  
0
7.4  
7.5  
1
V
V
PROG  
Programming voltage off Line must be discharged to  
level  
V
ProgOff  
this level  
I
Programming current  
Analog read CLK  
During programming  
Analog Readback mode  
130  
100  
mA  
kHz  
PROG  
CLK  
Aread  
Programmed Zener  
voltage (log.1)  
V
100  
mV  
V
programmed  
V
-V  
during Analog  
Ref PROG  
Readback mode (see Analog  
Readback Mode)  
Unprogrammed Zener  
voltage (log. 0)  
V
1
unprogrammed  
Page 12  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
The AS5045 is manufactured in a CMOS standard process and  
uses a spinning current Hall technology for sensing the  
magnetic field distribution across the surface of the chip. The  
integrated Hall elements are placed around the center of the  
device and deliver a voltage representation of the magnetic  
field at the surface of the IC.  
Detailed Description  
Through Sigma-Delta Analog / Digital Conversion and Digital  
Signal-Processing (DSP) algorithms, the AS5045 provides  
accurate high-resolution absolute angular position  
information. For this purpose a Coordinate Rotation Digital  
Computer (CORDIC) calculates the angle and the magnitude of  
the Hall array signals. The DSP is also used to provide digital  
information at the outputs MagINCn and MagDECn that  
indicate movements of the used magnet towards or away from  
the device’s surface. A small low cost diametrically magnetized  
(two-pole) standard magnet provides the angular position  
information (see Figure 30).  
The AS5045 senses the orientation of the magnetic field and  
calculates a 12-bit binary code. This code can be accessed via a  
Synchronous Serial Interface (SSI). In addition, an absolute  
angular representation is given by a Pulse Width Modulated  
signal at pin 12 (PWM). This PWM signal output also allows the  
generation of a direct proportional analogue voltage, by using  
an external Low-Pass-Filter. The AS5045 is tolerant to magnet  
misalignment and magnetic stray fields due to differential  
measurement technique and Hall sensor conditioning circuitry.  
Figure 11:  
Typical Arrangement of AS5045 and Magnet  
ams Datasheet  
Page 13  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
Mode Input Pin  
The mode input pin activates or deactivates an internal filter  
that is used to reduce the analog output noise. Activating the  
filter (Mode pin = LOW) provides a reduced output noise of 0.03°  
rms. At the same time, the output delay is increased to 384μs.  
This mode is recommended for high precision, low speed  
applications.  
Deactivating the filter (Mode pin = HIGH) reduces the output  
delay to 96μs and provides an output noise of 0.06° rms. This  
mode is recommended for higher speed applications.  
The MODE pin should be set at power-up. A change of the mode  
during operation is not allowed.  
Switching the Mode pin affects the following parameters.  
Figure 12:  
Slow and Fast Mode Parameters 12-Bit Absolute Angular Position Output  
Slow Mode  
Parameter  
Fast Mode  
(Mode = Low)  
2.61 kHz (384 μs)  
0.03° rms  
(Mode = High, VDD5V)  
10.42 kHz (96μs)  
0.06° rms  
Sampling rate  
Transition noise (1 sigma)  
Output delay  
384μs  
96μs  
Max. speed @ 4096 samples/rev.  
Max. speed @ 1024 samples/rev.  
Max. speed @ 256 samples/rev.  
Max. speed @ 64 samples/rev.  
38 rpm  
153 rpm  
610 rpm  
2441 rpm  
153 rpm  
610 rpm  
2441 rpm  
9766 rpm  
Page 14  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Synchronous Serial Interface (SSI)  
Figure 13:  
Synchronous Serial Interface with Absolute Angular Position Data  
t
CLKFE  
CSn  
T
CLK/2  
t
CSn  
t
CLKFE  
1
1
8
18  
CLK  
DO  
Mag Mag Even  
INC DEC PAR  
D11  
D6  
D5  
D10 D9 D8  
D7  
D11  
D4 D3 D2 D1 D0 OCF  
COF LIN  
t
DO valid  
t
DO Tristate  
t
DO active  
Angular Position Data  
Status Bits  
ams Datasheet  
Page 15  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
If CSn changes to logic low, Data Out (DO) will change from high  
impedance (tri-state) to logic high and the read-out will be  
initiated.  
After a minimum time t  
data is latched into the  
CLK FE,  
output shift register with the first falling edge of CLK.  
Each subsequent rising CLK edge shifts out one bit of data.  
The serial word contains 18 bits, the first 12 bits are the  
angular information D[11:0], the subsequent 6 bits  
contain system information, about the validity of data  
such as OCF, COF, LIN, Parity and Magnetic Field status  
(increase/decrease).  
A subsequent measurement is initiated by a “high” pulse  
at CSn with a minimum duration of t  
CSn.  
Data Content  
D11:D0 – absolute angular position data (MSB is clocked out  
first)  
OCF – (Offset Compensation Finished), logic high indicates the  
finished Offset Compensation Algorithm  
COF – (CORDIC Overflow), logic high indicates an out of range  
error in the CORDIC part. When this bit is set, the data at D9:D0  
is invalid. The absolute output maintains the last valid angular  
value. This alarm may be resolved by bringing the magnet  
within the X-Y-Z tolerance limits.  
LIN – (Linearity Alarm), logic high indicates that the input field  
generates a critical output linearity. When this bit is set, the data  
at D9:D0 may still be used, but can contain invalid data. This  
warning may be resolved by bringing the magnet within the  
X-Y-Z tolerance limits.  
Even Parity – Bit for transmission error detection of bits 1 …17  
(D11 …D0, OCF, COF, LIN, MagINC, MagDEC). Placing the  
magnet above the chip, angular values increase in clockwise  
direction by default.  
Data D11:D0 is valid, when the status bits have the following  
configurations.  
Figure 14:  
Status Bit Outputs  
OCF  
COF  
LIN  
MagINC  
MagDEC  
Parity  
0
0
1
0
1
0
Even checksum of bits  
1:15  
1
0
0
(1)  
(1)  
1
1
Note(s):  
1. MagInc=MagDec=1 is only recommended in YELLOW mode (see Figure 16).  
Page 16  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Z-Axis Range Indication (Push Button Feature,  
Red/Yellow/Green Indicator)  
The AS5045 provides several options of detecting movement  
and distance of the magnet in the Z-direction. Signal indicators  
MagINCn and MagDECn are available both as hardware pins  
(pins 1 and 2) and as status bits in the serial data stream.  
Additionally, an OTP programming option is available with bit  
MagCompEn (see Figure 23) that enables additional features.  
In the default state, the status bits MagINC, MagDec and pins  
MagINCn, MagDECn have the following function.  
Figure 15:  
Magnetic Field Strength Variation Indicator  
Status Bits  
Hardware Pins  
OTP: Mag CompEn = 0 (default)  
Description  
MagINC MagDEC MagINCn MagDECn  
No distance change  
Magnetic input field OK (in range, ~45mT to 75mT)  
0
0
0
1
Off  
Off  
Off  
On  
Distance increase; pull-function. This state is  
dynamic and only active while the magnet is  
moving away from the chip.  
Distance decrease; push- function. This state is  
dynamic and only active while the magnet is  
moving towards the chip.  
1
1
0
1
On  
On  
Off  
On  
Magnetic field is ~<45mT or >~75mT. It is still  
possible to operate the AS5045 in this range, but  
not recommended  
ams Datasheet  
Page 17  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
When bit MagCompEn is programmed in the OTP, the function  
of status bits MagINC, MagDec and pins MagINCn, MagDECn is  
changed to the following function.  
Figure 16:  
Magnetic Field Strength Red-Yellow-Green Indicator (OTP Option)  
OTP: Mag CompEn = 1  
(Red-Yellow-Green Programming Option)  
Status Bits  
Hardware Pins  
Mag  
INC  
Mag  
DEC  
Mag  
INCn  
Mag  
DECn  
LIN  
Description  
No distance change  
Magnetic input field OK (GREEN range, ~45mT to 75mT)  
0
1
0
1
0
Off  
On  
Off  
Off  
YELLOW range: magnetic field is ~ 25mT to 45mT or  
~75mT to 135mT. The AS5045 may still be operated in  
this range, but with slightly reduced accuracy.  
0
1
RED range: magnetic field is ~<25mT or >~135mT. It is  
still possible to operate the AS5045 in the red range,  
but not recommended.  
1
1
On  
On  
All other combinations  
n/a  
n/a  
Not available  
Note(s):  
1. Pin 1 (MagINCn) and pin 2 (MagDECn) are active low via open drain output and require an external pull-up resistor. If the magnetic  
field is in range, both outputs are turned off.  
The two pins may also be combined with a single pull-up  
resistor. In this case, the signal is high when the magnetic field  
is in range. It is low in all other cases (see Figure 15 and  
Figure 16).  
Page 18  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Daisy Chain Mode  
The Daisy Chain mode allows connection of several AS5045’s in  
series, while still keeping just one digital input for data transfer  
(see “Data IN” in Figure 17). This mode is accomplished by  
connecting the data output (DO; pin 9) to the data input (PROG;  
pin 8) of the subsequent device. An RC filter must be  
implemented between each PROG pin of device n and DO pin  
of device n+1, to prevent then magnetic position sensors to  
enter the alignment mode, in case of ESD discharge, long  
cables, not conform signal levels or shape. Using the values  
R=100R and C=1nF allow a max. CLK frequency of 1MHz on the  
whole chain. The serial data of all connected devices is read  
from the DO pin of the first device in the chain. The length of  
the serial bit stream increases with every connected device, it  
is n * (18+1) bits: For e.g., 38 bit for two devices, 57 bit for three  
devices, etc.  
The last data bit of the first device (Parity) is followed by a  
dummy bit and the first data bit of the second device (D11), etc.  
(see Figure 18).  
Figure 17:  
Daisy Chain Hardware Configuration  
CSn  
CLK  
DO  
CSn  
CLK  
DO  
CSn  
CLK  
DO  
CSn  
CLK  
DI  
100R  
1nF  
GND  
100R  
1nF  
PROG  
PROG  
PROG  
GND  
GND  
MCU  
AS5045  
AS5045  
AS5045  
Figure 18:  
Daisy Chain Mode Data Transfer  
CSn  
T
CLK/2  
t
CLK FE  
1
8
D
3
18  
1
2
CLK  
DO  
Mag Mag  
INC DEC  
Even  
PAR  
D9  
D11 D10  
D11  
D3 D2 D1 D0  
OCF  
COF  
LIN  
D10 D9  
D8  
D7 D6  
D4  
D5  
t
DO valid  
Angular Position Data  
nd  
Angular Position Data  
Status Bits  
t
DO active  
2
Device  
st  
1
Device  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 19  
Document Feedback  
AS5045 − Detailed Description  
Pulse Width Modulation (PWM) Output  
The AS5045 provides a pulse width modulated output (PWM),  
whose duty cycle is proportional to the measured angle:  
ton 4097  
(EQ1)  
Position =  
1  
(
)
ton + toff  
The PWM frequency is internally trimmed to an accuracy of 5%  
( 10% over full temperature range). This tolerance can be  
cancelled by measuring the complete duty cycle as shown  
above.  
Figure 19:  
PWM Output Signal  
Angle  
PW  
MIN  
0 deg  
(Pos 0)  
1µs  
4097µs  
PW  
MAX  
359.91 deg  
(Pos 4095)  
4096µs  
1/f  
PWM  
Changing the PWM Frequency  
The PWM frequency of the AS5045 can be divided by two by  
setting a bit (PWMhalfEN) in the OTP register (see Programming  
the AS5045). With PWMhalfEN = 0, the PWM timing is as shown  
in Figure 20.  
Figure 20:  
PWM Signal Parameters (Default mode)  
Symbol  
Parameter  
Typ  
Unit  
Note  
f
PWM frequency  
244  
Hz  
Signal period: 4097μs  
PWM  
- Position 0d  
- Angle 0 deg  
PW  
MIN pulse width  
MAX pulse width  
1
μs  
μs  
MIN  
- Position 4095d  
- Angle 359.91 deg  
PW  
4096  
MAX  
Page 20  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
When PWMhalfEN = 1, the PWM timing is as shown in Figure 21.  
Figure 21:  
PWM Signal Parameters with Half Frequency (OTP Option)  
Symbol  
Parameter  
Typ  
Unit  
Note  
f
PWM frequency  
122  
Hz  
Signal period: 8194μs  
PWM  
Position 0d  
Angle 0 deg  
PW  
MIN pulse width  
MAX pulse width  
2
μs  
μs  
MIN  
Position 4095d  
Angle 359.91 deg  
PW  
8192  
MAX  
Analog Output  
An analog output can be generated by averaging the PWM  
signal, using an external active or passive low pass filter.  
The analog output voltage is proportional to the angle: 0°= 0V;  
360° = VDD5V.  
Using this method, the AS5045 can be used as direct  
replacement of potentiometers.  
Figure 22:  
nd  
Simple 2 Order Passive RC Low Pass Filter  
R2  
R1  
analog out  
Pin12  
PWM  
VDD  
C2  
C1  
0V  
Pin7  
VSS  
0º  
360º  
Figure 22 shows an example of a simple passive low pass filter  
to generate the analog output.  
(EQ2)  
R1, R2 4k7C1,  
C2 1μF / 6V  
R1 should be greater than or equal to 4k7 to avoid loading of  
the PWM output. Larger values of Rx and Cx will provide better  
filtering and less ripple, but will also slow down the response  
time.  
ams Datasheet  
Page 21  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
The benefits of AS5045 are as follows:  
Complete system-on-chip  
Flexible system solution provides absolute and PWM  
outputs simultaneously  
Ideal for applications in harsh environments due to  
contactless position sensing  
No calibration required  
Programming the AS5045  
After power-on, programming the AS5045 is enabled with the  
rising edge of CSn and Prog = logic high. 16 bit configuration  
data must be serially shifted into the OTP register via the Prog  
pin. The first “CCW” bit is followed by the zero position data  
(MSB first) and the Mode setting bits. Data must be valid at the  
rising edge of CLK (see Figure 23).  
After writing the data into the OTP register it can be  
permanently programmed by rising the Prog pin to the  
programming voltage V  
. 16 CLK pulses (t  
) must be  
PROG  
PROG  
applied to program the fuses (see Figure 24). To exit the  
programming mode, the chip must be reset by a  
power-on-reset. The programmed data is available after the  
next power-up.  
Note(s): During the programming process, the transitions in  
the programming current may cause high voltage spikes  
generated by the inductance of the connection cable. To avoid  
these spikes and possible damage to the IC, the connection  
wires, especially the signals Prog and VSS must be kept as short  
as possible. The maximum wire length between the V  
PROG  
switching transistor and pin Prog should not exceed 50mm (2  
inches). To suppress eventual voltage spikes, a 10nF ceramic  
capacitor should be connected close to pins VPROG and VSS.  
This capacitor is only required for programming, it is not  
required for normal operation. The clock timing t must be  
clk  
selected at a proper rate to ensure that the signal Prog is stable  
at the rising edge of CLK (see Figure 23). Additionally, the  
programming supply voltage should be buffered with a 10μF  
capacitor mounted close to the switching transistor. This  
capacitor aids in providing peak currents during programming.  
The specified programming voltage at pin Prog is 7.3 ~ 7.5V.  
Refer to programming conditions in Figure 10.  
To compensate for the voltage drop across the V  
switching  
PROG  
transistor, the applied programming voltage may be set slightly  
higher (7.5 ~ 8.0V, see Figure 25).  
Page 22  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
OTP Register Contents  
CCW: Counter Clockwise Bit  
ccw=0 – angular value increases in clockwise direction  
ccw=1 – angular value increases in counter clockwise direction  
Z [11:0]: Programmable Zero Position  
PWM dis: Disable PWM output  
MagCompEn: When set, activates LIN alarm both when  
magnetic field is too high and too low (see Figure 16)  
PWMhalfEn: When set, PWM frequency is 122Hz or 2μs / step  
(when PWMhalfEN = 0, PWM frequency is 244Hz, 1μs / step)  
Zero Position Programming  
Zero position programming is an OTP option that simplifies  
assembly of a system, as the magnet does not need to be  
manually adjusted to the mechanical zero position. Once the  
assembly is completed, the mechanical and electrical zero  
positions can be matched by software. Any position within a  
full turn can be defined as the permanent new zero position.  
For zero position programming, the magnet is turned to the  
mechanical zero position (e.g. the “off”-position of a rotary  
switch) and the actual angular value is read.  
This value is written into the OTP register bits Z11:Z0  
(see Figure 23) and programmed (see Figure 24).  
The zero position value may also be modified before  
programming, e.g. to program an electrical zero position that  
is 180° (half turn) from the mechanical zero position, just add  
2048 to the value read at the mechanical zero position and  
program the new value into the OTP register.  
Repeated OTP Programming  
Although a single AS5045 OTP register bit can be programmed  
only once (from 0 to 1), it is possible to program other,  
unprogrammed bits in subsequent programming cycles.  
However, a bit that has already been programmed should not  
be programmed twice. Therefore it is recommended that bits  
that are already programmed are set to “0” during a  
programming cycle.  
ams Datasheet  
Page 23  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
Non-Permanent Programming  
It is also possible to re-configure the AS5045 in a  
non-permanent way by overwriting the OTP register.  
This procedure is essentially a “Write Data” sequence  
(see Figure 23) without a subsequent OTP programming cycle.  
The “Write Data” sequence may be applied at any time during  
normal operation. This configuration remains set while the  
power supply voltage is above the power-on reset level (see  
Electrical System Specifications).  
See Application Note AN5000-20 for further information.  
Figure 23:  
Programming Access – Write Data (Section of Figure 24)  
CSn  
tDatain  
Mag  
Comp  
EN  
PWM  
half  
PWM  
dis  
CCW Z 11  
Z 10  
Z9  
Z8  
Z7  
Z6  
Z5  
8
Z4  
Z3  
Z2  
Z1  
Z0  
Prog  
EN  
1
16  
CLKPROG  
tclk  
t Prog enable  
tDatain valid  
PWM and status  
bit modes  
Zero Position  
Figure 24:  
Complete Programming Sequence  
Write Data  
Programming Mode  
Power Off  
CSn  
7.5V  
VDD  
VProgOff  
Data  
Prog  
0V  
1
16  
CLKPROG  
t PrgH  
t PrgR  
tLoad PROG  
t PROG finished  
t PROG  
Page 24  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Figure 25:  
OTP Programming Connection of AS5045 (Shown with AS5045 Demoboard)  
AS5045 Demoboard  
For programmin,g  
keep these 6 wires  
asshort as possible!  
IC1  
1
16  
15  
max. length= 2inches (5cm)  
VDD5V  
MagINCn  
connect to USB  
interface on PC  
2
3
4
5
6
MagDECn  
VDD3V3  
3 V3  
14  
13  
NC  
NC  
NC  
NC  
7
PROG  
CSN  
DO  
CLK  
5VUSB  
VPROG  
3
2
1
6
5
4
12  
11  
+
µC  
NC  
PWM  
CSn  
10µF  
Mode  
3
2
1
7
8
10  
9
VSS  
VSS  
CLK  
DO  
VDD3V3  
VSS  
GND  
7. 5 …8.0V  
only required for  
OTP programming  
Prog_DI  
+
22k  
10n  
AS5045  
GND  
1µF  
Cap only required for  
OTP programming  
Analog Readback Mode  
Non-volatile programming (OTP) uses on-chip zener diodes,  
which become permanently low resistive when subjected to a  
specified reverse current.  
The quality of the programming process depends on the  
amount of current that is applied during the programming  
process (up to 130mA). This current must be provided by an  
external voltage source. If this voltage source cannot provide  
adequate power, the zener diodes may not be programmed  
properly.  
In order to verify the quality of the programmed bit, an analog  
level can be read for each zener diode, giving an indication  
whether this particular bit was properly programmed or not.  
To put the AS5045 in Analog Readback Mode, a digital sequence  
must be applied to pins CSn, PROG and CLK as shown in  
Figure 26. The digital level for this pin depends on the supply  
configuration (3.3V or 5V) (see 3.3V / 5V Operation).  
The second rising edge on CSn (OutpEN) changes pin PROG to  
a digital output and the log. high signal at pin PROG must be  
removed to avoid collision of outputs (grey area in Figure 26).  
The following falling slope of CSn changes pin PROG to an  
analog output, providing a reference voltage V , that must be  
ref  
saved as a reference for the calculation of the subsequent  
programmed and unprogrammed OTP bits.  
Following this step, each rising slope of CLK outputs one bit of  
data in the reverse order as during programming  
ams Datasheet  
Page 25  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
(see Figure 23: Md0-MD1-Div0,Div1-Indx-Z0…Z11, ccw).  
If a capacitor is connected to pin PROG, it should be removed  
during analog readback mode to allow a fast readout rate. If the  
capacitor is not removed the analog voltage will take longer to  
stabilize due to the additional capacitance.  
The measured analog voltage for each bit must be subtracted  
from the previously measured V , and the resulting value gives  
ref  
an indication on the quality of the programmed bit: a reading  
of <100mV indicates a properly programmed bit and a reading  
of >1V indicates a properly unprogrammed bit.  
A reading between 100mV and 1V indicates a faulty bit, which  
may result in an undefined digital value, when the OTP is read  
at power-up.  
th  
Following the 18 clock (after reading bit “ccw”), the chip must  
be reset by disconnecting the power supply.  
Figure 26:  
OTP Register Analog Read  
Power- on-  
ProgEN  
OutpEN  
Analog Readback Data at PROG  
Reset;  
turn off  
supply  
CSn  
PROG  
CLK  
Vref  
Vprogrammed  
Internal  
test bit  
digital  
Mag  
Comp  
EN  
PWM  
halfEN  
PWM  
Dis  
Z11 CCW  
Z7  
Z8  
Z 9  
Z10  
Z0  
Vunprogrammed  
Prog changes to Output  
1
16  
CLKAread  
tLoadProg  
Page 26  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Alignment Mode  
The alignment mode simplifies centering the magnet over the  
center of the chip to gain maximum accuracy.  
Alignment mode can be enabled with the falling edge of CSn  
while Prog = logic high (see Figure 27). The Data bits  
D11-D0 of the SSI change to a 12-bit displacement amplitude  
output. A high value indicates large X or Y displacement, but  
also higher absolute magnetic field strength. The magnet is  
properly aligned, when the difference between highest and  
lowest value over one full turn is at a minimum.  
Under normal conditions, a properly aligned magnet will result  
in a reading of less than 128 over a full turn.  
The MagINCn and MagDECn indicators will be = 1 when the  
alignment mode reading is < 128. At the same time, both  
hardware pins MagINCn (#1) and MagDECn (#2) will be pulled  
to VSS. A properly aligned magnet will therefore produce a  
MagINCn = MagDECn = 1 signal throughout a full 360° turn of  
the magnet.  
Stronger magnets or short gaps between magnet and IC may  
show values larger than 128. These magnets are still properly  
aligned as long as the difference between highest and lowest  
value over one full turn is at a minimum.  
The alignment mode can be reset to normal operation by a  
power-on-reset (disconnect / re-connect power supply) or by a  
falling edge on CSn with Prog = low.  
Figure 27:  
Enabling the Alignment Mode  
PROG  
CSn  
Read-out  
AlignMode enable  
via SSI  
2µs  
min.  
2µs  
min.  
Figure 28:  
Exiting the Alignment Mode  
PROG  
Read-out  
via SSI  
exit AlignMode  
CSn  
ams Datasheet  
Page 27  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
3.3V / 5V Operation  
The AS5045 operates either at 3.3V 10% or at 5V 10%. This is  
made possible by an internal 3.3V Low-Dropout (LDO) Voltage  
regulator. The internal supply voltage is always taken from the  
output of the LDO, meaning that the internal blocks are always  
operating at 3.3V.  
For 3.3V operation, the LDO must be bypassed by connecting  
VDD3V3 with VDD5V (see Figure 29).  
For 5V operation, the 5V supply is connected to pin VDD5V,  
while VDD3V3 (LDO output) must be buffered by a 2.2...10μF  
capacitor, which is supposed to be placed close to the supply  
pin (see Figure 29).  
The VDD3V3 output is intended for internal use only It must not  
be loaded with an external load (see Figure 29).  
Figure 29:  
Connections for 5V / 3.3V Supply Voltages  
5V Operation  
3.3V Operation  
2.2... 10µF  
VDD3V3  
VDD3V3  
100n  
100n  
Internal  
VDD5V  
Internal  
VDD5V  
LDO  
VDD  
LDO  
VDD  
DO  
DO  
+
+
I
PWM  
CLK  
CSn  
I
PWM  
CLK  
CSn  
N
T
E
R
F
A
C
E
N
T
E
R
F
A
C
E
3.0 - 3.6V  
4.5 - 5.5V  
PROG  
PROG  
VSS  
VSS  
A buffer capacitor of 100nF is recommended in both cases close  
to pin VDD5V. Note that pin VDD3V3 must always be buffered  
by a capacitor. It must not be left floating, as this may cause an  
instable internal 3.3V supply voltage which may lead to larger  
than normal jitter of the measured angle.  
Page 28  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Choosing the Proper Magnet  
Typically the magnet should be 6mm in diameter and ≥2.5mm  
in height. Magnetic materials such as rare earth AlNiCo/SmCo5  
or NdFeB are recommended. The magnetic field strength  
perpendicular to the die surface has to be in the range of 45mT  
to 75mT (peak).  
The magnet’s field strength should be verified using a  
gauss-meter. The magnetic field B at a given distance, along a  
v
concentric circle with a radius of 1.1mm (R1), should be in the  
range of 45mT to 75mT (see Figure 30).  
Figure 30:  
Typical Magnet (6x3mm) and Magnetic Field Distribution  
typ. 6mm diameter  
N
S
Magnet axis  
Vertical field  
component  
R1  
Bv  
(45…75mT)  
Vertical field  
component  
0
360  
R1 concentric circle;  
radius 1.1mm  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 29  
Document Feedback  
AS5045 − Detailed Description  
Physical Placement of the Magnet  
The best linearity can be achieved by placing the center of the  
magnet exactly over the defined center of the chip as shown in  
the drawing below.  
Figure 31:  
Defined Chip Center and Magnet Displacement Radius  
3.9mm  
3.9mm  
1
Defined  
center  
R
d
Area of recommended maximum mag-  
net misalignment  
Magnet Placement. The magnet’s center axis should be aligned  
within a displacement radius Rd of 0.25mm from the defined  
center of the IC.  
The magnet may be placed below or above the device. The  
distance should be chosen such that the magnetic field on the  
die surface is within the specified limits (see Figure 30). The  
typical distance “z” between the magnet and the package  
surface is 0.5mm to 1.5mm, provided the use of the  
recommended magnet material and dimensions (6mm x 3mm).  
Larger distances are possible, as long as the required magnetic  
field strength stays within the defined limits.  
However, a magnetic field outside the specified range may still  
produce usable results, but the out-of-range condition will be  
indicated by MagINCn (pin 1) and MagDECn (pin 2), see  
Figure 4.  
Page 30  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Failure Diagnostics  
The AS5045 also offers several diagnostic and failure detection  
features:  
Magnetic Field Strength Diagnosis  
By Software: The MagINC and MagDEC status bits will both be  
high when the magnetic field is out of range.  
By Hardware: Pins #1 (MagINCn) and #2 (MagDECn) are  
open-drain outputs and will both be turned on (= low with  
external pull-up resistor) when the magnetic field is out of  
range. If only one of the outputs are low, the magnet is either  
moving towards the chip (MagINCn) or away from the chip  
(MagDECn).  
Power Supply Failure Detection  
By Software: If the power supply to the AS5045 is interrupted,  
the digital data read by the SSI will be all “0”s. Data is only valid,  
when bit OCF is high, hence a data stream with all “0”s is invalid.  
To ensure adequate low levels in the failure case, a pull-down  
resistor (~10kΩ) should be added between pin DO and VSS at  
the receiving side.  
By Hardware: The MagINCn and MagDECn pins are open drain  
outputs and require external pull-up resistors. In normal  
operation, these pins are high ohmic and the outputs are high  
(see Figure 15). In a failure case, either when the magnetic field  
is out of range of the power supply is missing, these outputs  
will become low. To ensure adequate low levels in case of a  
broken power supply to the AS5045, the pull-up resistors  
(~10kΩ) from each pin must be connected to the positive  
supply at pin 16 (VDD5V).  
By Hardware, PWM Output: The PWM output is a constant  
stream of pulses with 1kHz repetition frequency. In case of  
power loss, these pulses are missing.  
ams Datasheet  
Page 31  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
Angular Output Tolerances  
Accuracy  
Accuracy is defined as the error between measured angle and  
actual angle. It is influenced by several factors:  
The non-linearity of the analog-digital converters  
Internal gain and mismatch errors  
Non-linearity due to misalignment of the magnet  
As a sum of all these errors, the accuracy with centered magnet  
= (Err  
– Err )/2 is specified as better than 0.5 degrees @  
max  
min  
25°C (see Figure 33) Misalignment of the magnet further  
reduces the accuracy. Figure 32 shows an example of a  
3D-graph displaying non-linearity over XY-misalignment. The  
center of the square XY-area corresponds to a centered magnet  
(see dot in the center of the graph). The X- and Y- axis extends  
to a misalignment of 1mm in both directions. The total  
misalignment area of the graph covers a square of 2x2 mm  
(79x79mil) with a step size of 100μm.  
For each misalignment step, the measurement as shown in  
Figure 33 is repeated and the accuracy (Errmax – Errmin)/2 (e.g.  
0.25°) is entered as the Z-axis in the 3D-graph.  
Figure 32:  
Example of Linearity Error over XY Misalignment  
Linearity Error over XY-misalignment [°]  
6
5
4
3
800  
500  
200  
-100  
-400  
2
1
x
0
-700  
-1000  
y
Page 32  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
The maximum non-linearity error on this example is better than  
1 degree (inner circle) over a misalignment radius of ~0.7mm.  
For volume production, the placement tolerance of the IC  
within the package ( 0.235mm) must also be taken into  
account.  
The total nonlinearity error over process tolerances,  
temperature and a misalignment circle radius of 0.25mm is  
specified better than 1.4 degrees.  
The magnet used for this measurement was a cylindrical NdFeB  
(Bomatec® BMN-35H) magnet with 6mm diameter and 2.5mm  
in height.  
Figure 33:  
Example of Linearity Error over 360°  
Linearity error with centered magnet [degrees]  
0.5  
0.4  
0.3  
0.2  
0.1  
0
transition noise  
Errmax  
-0.1  
-0.2  
-0.3  
-0.4  
-0.5  
1
55 109 163 217 271 325 379 433 487 541 595 649 703 757 811 865 919 973  
Errmin  
Transition Noise  
Transition noise is defined as the jitter in the transition between  
two steps. Due to the nature of the measurement principle (Hall  
sensors + Preamplifier + ADC), there is always a certain degree  
of noise involved. This transition noise voltage results in an  
angular transition noise at the outputs. It is specified as 0.06  
1
degrees rms (1 sigma) in fast mode (pin MODE = high) and 0.03  
degrees rms (1 sigma) in slow mode (pin MODE = low or open).  
This is the repeatability of an indicated angle at a given  
mechanical position.  
1. Statistically, 1 sigma represents 68.27% of readings, 3 sigma represents 99.73% of readings.  
ams Datasheet  
Page 33  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
The transition noise has different implications on the type of  
output that is used:  
• Absolute Output; SSI Interface: The transition noise of  
the absolute output can be reduced by the user by  
implementing averaging of readings. An averaging of 4  
readings will reduce the transition noise by 6dB or 50%,  
e.g. from 0.03°rms to 0.015°rms (1 sigma) in slow mode.  
• PWM Interface: If the PWM interface is used as an analog  
output by adding a low pass filter, the transition noise can  
be reduced by lowering the cutoff frequency of the filter.  
If the PWM interface is used as a digital interface with a  
counter at the receiving side, the transition noise may  
again be reduced by averaging of readings.  
High Speed Operation  
Sampling Rate: The AS5045 samples the angular value at a rate  
of 2.61k (slow mode) or 10.42k (fast mode, selectable by pin  
MODE) samples per second. Consequently, the absolute  
outputs are updated each 384μs (96μs in fast mode). At a  
stationary position of the magnet, the sampling rate creates no  
additional error.  
Absolute Mode: At a sampling rate of 2.6kHz/10.4kHz, the  
number of samples (n) per turn for a magnet rotating at high  
speed can be calculated by  
60  
(EQ3)  
(EQ4)  
nslowmode  
=
rpm384μs  
60  
nfast mode  
=
rpm96μs  
The upper speed limit in slow mode is ~6.000rpm and  
~30.000rpm in fast mode. The only restriction at high speed is  
that there will be fewer samples per revolution as the speed  
increases.  
Regardless of the rotational speed, the absolute angular value  
is always sampled at the highest resolution of 12 bit.  
Propagation Delays  
The propagation delay is the delay between the time that the  
sample is taken until it is converted and available as angular  
data. This delay is 96μs in fast mode and 384μs in slow mode.  
Using the SSI interface for absolute data transmission, an  
additional delay must be considered, caused by the  
asynchronous sampling (0 … 1/f  
) and the time it takes the  
sample  
external control unit to read and process the angular data from  
the chip (maximum clock rate = 1MHz, number of bits per  
reading = 18).  
Page 34  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Angular Error Caused by Propagation Delay: A rotating  
magnet will cause an angular error caused by the output  
propagation delay.  
This error increases linearly with speed:  
(EQ5)  
esampling, = rpm6* prop.delay  
Where:  
e
= angular error [°]  
sampling  
rpm = rotating speed [rpm]  
prop.delay = propagation delay [seconds]  
Note(s): Since the propagation delay is known, it can be  
automatically compensated by the control unit processing the  
data from the AS5045.  
Internal Timing Tolerance  
The AS5045 does not require an external ceramic resonator or  
quartz. All internal clock timings for the AS5045 are generated  
by an on-chip RC oscillator. This oscillator is factory trimmed to  
5% accuracy at room temperature ( 10% over full temperature  
range). This tolerance influences the ADC sampling rate and the  
pulse width of the PWM output.  
• Absolute Output; SSI Interface: A new angular value is  
updated every 96μs (typ.) in fast mode and every 384μs  
(typ.) in slow mode.  
• PWM Output: A new angular value is updated every 400μs  
(typ.). The PWM pulse timings T and T also have the  
on  
off  
same tolerance as the internal oscillator. If only the PWM  
pulse width T is used to measure the angle, the resulting  
on  
value also has this timing tolerance. However, this  
tolerance can be cancelled by measuring both T and T  
on  
off  
and calculating the angle from the duty cycle.  
(EQ6)  
ton 4097  
Position =  
1  
(
)
ton + toff  
Temperature  
Magnetic Temperature Coefficient: One of the major benefits  
of the AS5045 compared to linear Hall sensors is that it is much  
less sensitive to temperature. While linear Hall sensors require  
a compensation of the magnet’s temperature coefficients, the  
AS5045 automatically compensates for the varying magnetic  
field strength over temperature. The magnet’s temperature  
drift does not need to be considered, as the AS5045 operates  
with magnetic field strengths from 45… 75mT.  
Example:  
An NdFeB magnet has a field strength of 75mT @ -40°C and a  
temperature coefficient of -0.12% per Kelvin. The temperature  
change is from -40° to 125° = 165K. The magnetic field change  
is: 165 x -0.12% = -19.8%, which corresponds to 75mT at -40°C  
and 60mT at 125°C.  
ams Datasheet  
Page 35  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Detailed Description  
The AS5045 can compensate for this temperature related field  
strength change automatically, no user adjustment is required.  
Accuracy over Temperature:  
The influence of temperature in the absolute accuracy is very  
low. While the accuracy is 0.5° at room temperature, it may  
increase to 0.9° due to increasing noise at high temperatures.  
Timing Tolerance over Temperature: The internal RC oscillator  
is factory trimmed to 5%. Over temperature, this tolerance  
may increase to 10%. Generally, the timing tolerance has no  
influence in the accuracy or resolution of the system, as it is  
used mainly for internal clock generation. The only concern to  
the user is the width of the PWM output pulse, which relates  
directly to the timing tolerance of the internal oscillator. This  
influence however can be cancelled by measuring the complete  
PWM duty cycle instead of just the PWM pulse.  
Differences Between AS5045 and AS5040  
All parameters are similar for AS5045 and AS5040, except for  
the parameters given below:  
Figure 34:  
Differences Between AS5045 and AS5040  
Building Block  
AS5045  
AS5040  
Resolution  
12bits, 0.088°/step  
10bit, 0.35°/step  
Read: 18bits  
Read: 16bits  
(12bits data + 6 bits status)  
OTP write: 18 bits  
(10bits data + 6 bits status)  
OTP write: 16 bits  
Data length  
(12bits zero position + 6 bits mode  
selection)  
(10bits zero position + 6 bits mode  
selection)  
Quadrature, step/direction and BLDC  
motor commutation modes  
Pin 3: incremental output A_LSB_U  
Pin 4: incremental output B_DIR_V  
Not used  
Pin 3: not used  
Pin 4: not used  
Incremental signals  
MagINCn, MagDECn: same feature as  
AS5040, additional OTP option for  
red-yellow-green magnetic range  
MagINCn, MagDECn indicate in-range or  
out-of-range magnetic field plus  
movement of magnet in z-axis  
Pins 1 and 2  
Pin 6  
MODE pin, switch between fast and slow  
mode  
Pin 6: Index output  
Page 36  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Detailed Description  
Building Block  
AS5045  
AS5040  
PWM output: frequency selectable by  
OTP:  
PWM output:  
Pin 12  
1μs / step, 4096 steps per revolution,  
f=244Hz 2μs/ step, 4096 steps per  
revolution, f=122Hz  
1μs / step, 1024 steps per revolution,  
976Hz PWM frequency  
Selectable by MODE input pin: 2.5kHz,  
10kHz  
Sampling frequency  
Propagation delay  
Fixed at 10kHz @10bit resolution  
384μs (slow mode)  
96μs (fast mode)  
48μs  
Transition noise  
(rms; 1sigma)  
0.03 degrees max. (slow mode)  
0.06 degrees max. (fast mode)  
0.12 degrees  
Zero position, rotational direction, PWM  
disable, 2 Magnetic Field indicator  
modes, 2 PWM frequencies  
OTP programming  
options  
Zero position, rotational direction,  
incremental modes, index bit width.  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 37  
Document Feedback  
AS5045 − Package Drawings & Markings  
The device is available in 16-pin SSOP.  
Package Drawings & Markings  
Figure 35:  
Package Drawings and Dimensions  
Symbol Min  
Nom  
1.86  
0.13  
1.73  
0.315  
0.17  
6.20  
7.80  
5.30  
0.65 BSC  
0.75  
Max  
1.99  
0.21  
1.78  
0.38  
0.25  
6.50  
8.20  
5.60  
-
0.95  
-
-
-
8º  
A
A1  
A2  
b
c
D
E
E1  
e
1.73  
0.05  
1.68  
0.22  
0.09  
5.90  
7.40  
5.00  
-
L
0.55  
-
-
0.09  
0º  
YYWWMZZ  
AS5045 @  
L1  
L2  
R
Q
N
1.25 REF  
0.25 BSC  
-
4º  
16  
Green  
RoHS  
Note(s):  
1. Dimensions and tolerancing conform to ASME Y14.5M-1994.  
2. All dimensions are in millimeters. Angles are in degrees.  
Figure 36:  
Marking: YYWWMZZ  
YY  
WW  
M
ZZ  
@
Year  
Manufacturing week  
Plant identifier  
Assembly traceability code  
Sublot identifier  
Page 38  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Package Drawings & Markings  
Figure 37:  
Vertical Cross Section of SSOP-16  
Note(s):  
1. All dimensions in mm.  
ams Datasheet  
Page 39  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Package Drawings & Markings  
Recommended PCB Footprint  
Figure 38:  
PCB Footprint  
Recommended Footprint Data  
Symbol  
mm  
9.02  
6.16  
0.46  
0.65  
5.01  
inch  
0.355  
0.242  
0.018  
0.025  
0.197  
A
B
C
D
E
Page 40  
Document Feedback  
amsDatasheet  
[v2-01] 2017-Jul-13  
AS5045 − Ordering & Contact Information  
The devices are available as the standard products shown in  
Figure 39.  
Ordering & Contact Information  
Figure 39:  
Ordering Information  
Ordering Code  
AS5045-ASSM  
AS5045-ASST  
Description  
Package  
16-pin SSOP  
16-pin SSOP  
Delivery Form Delivery Quantity  
Tape & Reel  
Tape & Reel  
500 pcs/reel  
12-Bit Programmable  
Magnetic Position Sensor  
2000 pcs/reel  
Buy our products or get free samples online at:  
www.ams.com/ICdirect  
Technical Support is available at:  
www.ams.com/Technical-Support  
Provide feedback about this document at:  
www.ams.com/Document-Feedback  
For further information and requests, e-mail us at:  
ams_sales@ams.com  
For sales offices, distributors and representatives, please visit:  
www.ams.com/contact  
Headquarters  
ams AG  
Tobelbader Strasse 30  
8141 Premstaetten  
Austria, Europe  
Tel: +43 (0) 3136 500 0  
Website: www.ams.com  
ams Datasheet  
Page 41  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − RoHS Compliant & ams Green Statement  
RoHS: The term RoHS compliant means that ams AG products  
fully comply with current RoHS directives. Our semiconductor  
products do not contain any chemicals for all 6 substance  
categories, including the requirement that lead not exceed  
0.1% by weight in homogeneous materials. Where designed to  
be soldered at high temperatures, RoHS compliant products are  
suitable for use in specified lead-free processes.  
RoHS Compliant & ams Green  
Statement  
ams Green (RoHS compliant and no Sb/Br): ams Green  
defines that in addition to RoHS compliance, our products are  
free of Bromine (Br) and Antimony (Sb) based flame retardants  
(Br or Sb do not exceed 0.1% by weight in homogeneous  
material).  
Important Information: The information provided in this  
statement represents ams AG knowledge and belief as of the  
date that it is provided. ams AG bases its knowledge and belief  
on information provided by third parties, and makes no  
representation or warranty as to the accuracy of such  
information. Efforts are underway to better integrate  
information from third parties. ams AG has taken and continues  
to take reasonable steps to provide representative and accurate  
information but may not have conducted destructive testing or  
chemical analysis on incoming materials and chemicals. ams AG  
and ams AG suppliers consider certain information to be  
proprietary, and thus CAS numbers and other limited  
information may not be available for release.  
Page 42  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Copyrights & Disclaimer  
Copyright ams AG, Tobelbader Strasse 30, 8141 Premstaetten,  
Austria-Europe. Trademarks Registered. All rights reserved. The  
material herein may not be reproduced, adapted, merged,  
translated, stored, or used without the prior written consent of  
the copyright owner.  
Copyrights & Disclaimer  
Devices sold by ams AG are covered by the warranty and patent  
indemnification provisions appearing in its General Terms of  
Trade. ams AG makes no warranty, express, statutory, implied,  
or by description regarding the information set forth herein.  
ams AG reserves the right to change specifications and prices  
at any time and without notice. Therefore, prior to designing  
this product into a system, it is necessary to check with ams AG  
for current information. This product is intended for use in  
commercial applications. Applications requiring extended  
temperature range, unusual environmental requirements, or  
high reliability applications, such as military, medical  
life-support or life-sustaining equipment are specifically not  
recommended without additional processing by ams AG for  
each application. This product is provided by ams AG “AS IS”  
and any express or implied warranties, including, but not  
limited to the implied warranties of merchantability and fitness  
for a particular purpose are disclaimed.  
ams AG shall not be liable to recipient or any third party for any  
damages, including but not limited to personal injury, property  
damage, loss of profits, loss of use, interruption of business or  
indirect, special, incidental or consequential damages, of any  
kind, in connection with or arising out of the furnishing,  
performance or use of the technical data herein. No obligation  
or liability to recipient or any third party shall arise or flow out  
of ams AG rendering of technical or other services.  
ams Datasheet  
Page 43  
[v2-01] 2017-Jul-13  
Document Feedback  
AS5045 − Document Status  
Document Status  
Document Status  
Product Status  
Definition  
Information in this datasheet is based on product ideas in  
the planning phase of development. All specifications are  
design goals without any warranty and are subject to  
change without notice  
Product Preview  
Pre-Development  
Information in this datasheet is based on products in the  
design, validation or qualification phase of development.  
The performance and parameters shown in this document  
are preliminary without any warranty and are subject to  
change without notice  
Preliminary Datasheet  
Datasheet  
Pre-Production  
Production  
Information in this datasheet is based on products in  
ramp-up to full production or full production which  
conform to specifications in accordance with the terms of  
ams AG standard warranty as given in the General Terms of  
Trade  
Information in this datasheet is based on products which  
conform to specifications in accordance with the terms of  
ams AG standard warranty as given in the General Terms of  
Trade, but these products have been superseded and  
should not be used for new designs  
Datasheet (discontinued)  
Discontinued  
Page 44  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Revision Information  
Revision Information  
Changes from 1.8 (2013-Aug-14) to current revision 2-01 (2017-Jul-13)  
1.8 (2013-Aug-14) to 2-00 (2016-Sep-12)  
Content was updated to the latest ams design  
Added Figure 1  
Page  
1
Updated Figure 39  
41  
2-00 (2016-Sep-12) to 2-01 (2017-Jul-13)  
Updated Figure 39  
41  
Note(s):  
1. Page and figure numbers for the previous version may differ from page and figure numbers in the current revision.  
2. Correction of typographical errors is not explicitly mentioned.  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 45  
Document Feedback  
AS5045 − Content Guide  
1
1
2
2
General Description  
Key Benefits & Features  
Applications  
Content Guide  
Block Diagram  
3
3
Pin Assignment  
Pin Description  
5
Absolute Maximum Ratings  
6
8
8
Electrical Characteristics  
Magnetic Input Specification  
Electrical System Specifications  
11 Timing Characteristics  
13 Detailed Description  
14 Mode Input Pin  
14 Synchronous Serial Interface (SSI)  
15 Data Content  
16 Z-axis Range Indication (Push Button Feature, Red/Yel-  
low/Green Indicator)  
18 Daisy Chain Mode  
19 Pulse Width Modulation (PWM) Output  
19 Changing the PWM Frequency  
20 Analog Output  
21 Programming the AS5045  
22 Zero Position Programming  
22 Repeated OTP Programming  
23 Non-Permanent Programming  
24 Analog Readback Mode  
26 Alignment Mode  
27 3.3V / 5V Operation  
28 Choosing the Proper Magnet  
29 Physical Placement of the Magnet  
30 Failure Diagnostics  
30 Magnetic Field Strength Diagnosis  
30 Power Supply Failure Detection  
31 Angular Output Tolerances  
31 Accuracy  
32 Transition Noise  
33 High Speed Operation  
33 Propagation Delays  
34 Internal Timing Tolerance  
34 Temperature  
35 Accuracy over Temperature:  
35 Differences between AS5045 and AS5040  
Page 46  
amsDatasheet  
Document Feedback  
[v2-01] 2017-Jul-13  
AS5045 − Content Guide  
37 Package Drawings & Markings  
39 Recommended PCB Footprint  
40 Ordering & Contact Information  
41 RoHS Compliant & ams Green Statement  
42 Copyrights & Disclaimer  
43 Document Status  
44 Revision Information  
ams Datasheet  
[v2-01] 2017-Jul-13  
Page 47  
Document Feedback  

相关型号:

SI9130DB

5- and 3.3-V Step-Down Synchronous Converters

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135LG-T1

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135LG-T1-E3

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135_11

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9136_11

Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130CG-T1-E3

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130LG-T1-E3

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130_11

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137DB

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137LG

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9122E

500-kHz Half-Bridge DC/DC Controller with Integrated Secondary Synchronous Rectification Drivers

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY