2024年5月11日发(作者:承星儿)
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
General Description
The AS5048 is an easy to use 360° angle position sensor with a 14-bit high resolution output. The maximum system
accuracy is 0.05° assuming linearization and averaging is done by the external microcontroller.
The IC measures the absolute position of the magnet’s rotation angle and consists of Hall sensors, analog digital
converter and digital signal processing. The zero position can be programmed via SPI or I²C command. Therefore no
programmer is needed anymore. This simplifies the assembly of the complete system because the zero position of
the magnet does not need to be mechanically aligned. This helps developers to shorten their developing time. The
sensor tolerates misalignment, air gap variations, temperature variations and as well external magnetic fields. This
robustness and wide temperature range (-40°C up to +150°C) of the AS5048 makes the IC ideal for rotation angle
sensing in harsh industrial and medical environments. Several AS5048 ICs can be connected in daisy chain for serial
data read out. The absolute position information of the magnet is directly accessible over a PWM output and can be
read out over a standard SPI or a high speed I²C interface. Version AS5048A comes with SPI and PWM Interface.
Version AS5048B is configured with the I²C interface and has also a PWM output. An internal voltage regulator
allows the AS5048 to operate at either 3.3 V or 5 V supplies.
Key Features & Benefits Applications
• Robotic joint position detection
• Industrial motor position control
• Medical robots and fitness equipment
• 360° contactless angle position sensor
• Standard SPI or high speed I²C interface and PWM
• Simple programmable zero position via SPI or I²C
command
• No programmer needed
• 14-bit full scale resolution
0.0219°/LSB
• Angle accuracy 0.05°after system linearization and
averaging
• Daisy chain capability
• Tolerant to air gap variations
magnetic field input range: 30mT – 70mT
• -40°C to +150°C ambient temperature range
• 3.3V / 5V compliant
• 14-pin TSSOP package (5x6.4mm)
Block Diagram
Revision 1.1 Page 1 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
Contents
GENERAL DESCRIPTION .................................................................................................................. 1
K
EY
F
EATURES
&
B
ENEFITS
.................................................................................................................. 1
A
PPLICATIONS
..................................................................................................................................... 1
B
LOCK
D
IAGRAM
................................................................................................................................. 1
1
PIN CONFIGURATION ................................................................................................................. 4
1.1
2
P
IN
D
ESCRIPTION
........................................................................................................................ 4
ELECTRICAL CHARACTERISTICS ............................................................................................ 5
2.1
2.2
2.3
2.4
2.5
A
BSOLUTE
M
AXIMUM
R
ATINGS
.................................................................................................... 5
O
PERATING
C
ONDITIONS
............................................................................................................. 6
DC/AC
C
HARACTERISTICS FOR DIGITAL INPUTS AND OUTPUTS
....................................................... 6
E
LECTRICAL
S
YSTEM
S
PECIFICATIONS
.......................................................................................... 7
G
LOBAL
T
IMING
C
ONDITIONS
...................................................................................................... 7
3
4
FUNCTIONAL DESCRIPTION ...................................................................................................... 8
OPERATION .................................................................................................................................. 8
4.1
SPI
I
NTERFACE
........................................................................................................................... 9
4.1.1
SPI Interface Signals (4-Wire Mode, Wire_mode = 1) ............................................................ 9
4.1.2
SPI Timing ......................................................................................................................... 10
4.1.3
SPI Connection to the Host UC ........................................................................................... 11
4.1.4
SPI Communication Command Package .............................................................................. 12
4.1.5
Read Package (Value Read from AS5048A) ......................................................................... 13
4.1.6
Write Data Package (Value Written to AS5048A) ................................................................. 13
4.1.7
Register Map SPI ............................................................................................................... 14
4.1.8
SPI Interface Commands .................................................................................................... 15
4.2
I²C
INTERFACE
.......................................................................................................................... 18
4.2.1
I²C Electrical Specification ................................................................................................ 18
4.2.2
I²C Timing ......................................................................................................................... 19
4.2.3
Register Table .................................................................................................................... 20
4.3
PWM
INTERFACE
...................................................................................................................... 21
5
PACKAGE DRAWINGS AND MARKINGS ................................................................................. 22
5.1.1
Assembly Lot Code ............................................................................................................. 22
6
APPLICATION INFORMATION ................................................................................................. 24
6.1
P
ROGRAMMING OF THE
AS5048 ................................................................................................. 24
6.1.1
Programming of the zero position ....................................................................................... 24
6.1.2
Programming sequence with verification ............................................................................. 24
6.2
D
IAGNOSTIC FUNCTIONS OF THE
AS5048 .................................................................................... 24
6.3
C
HOOSING THE
P
ROPER
M
AGNET
............................................................................................... 25
6.4
P
HYSICAL
P
LACEMENT OF THE
M
AGNET
..................................................................................... 26
Revision 1.1 Page 2 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
6.5
7
8
9
Datasheet
M
AGNET
P
LACEMENT
................................................................................................................ 26
ORDERING INFORMATION ...................................................................................................... 27
REVISION HISTORY .................................................................................................................. 27
COPYRIGHTS .............................................................................................................................. 28
10
DISCLAIMER .............................................................................................................................. 28
List of Figures
F
IGURE
1:
P
IN CONFIGURATION
TSSOP14 ................................................................................................. 4
F
IGURE
2:
C
ONNECTIONS FOR
5V
AND
3.3V
SUPPLY VOLTAGES
.................................................................. 8
F
IGURE
3
SPI
C
ONNECTION
AS5048A
WITH U
C ........................................................................................ 9
F
IGURE
4
SPI
C
OMMAND
/R
ESPONSE
D
ATA
F
LOW
...................................................................................... 9
F
IGURE
5
SPI
T
IMING
D
IAGRAM
............................................................................................................. 10
F
IGURE
6
S
INGLE
S
LAVE
M
ODE
.............................................................................................................. 11
F
IGURE
7
M
ULTIPLE
S
LAVE
,
N
+3
W
IRE
(S
EPARATE
C
HIP
S
ELECT
) ............................................................. 11
F
IGURE
8
D
AISY
C
HAIN
,
4
W
IRE
............................................................................................................ 12
F
IGURE
9
READ
C
OMMAND
................................................................................................................... 15
F
IGURE
10
WRITE
C
OMMAND
............................................................................................................... 15
F
IGURE
11
CLEAR
ERROR
FLAG
C
OMMAND
........................................................................................ 16
F
IGURE
12
NOP
C
OMMAND
................................................................................................................... 17
F
IGURE
13
PWM
F
ORMAT
...................................................................................................................... 21
F
IGURE
14
P
ACKAGE
M
ARKING
.............................................................................................................. 22
F
IGURE
15:
T
YPICAL MAGNET
(6
X
3
MM
)
AND MAGNETIC FIELD DISTRIBUTION
............................................ 25
F
IGURE
16:
D
EFINED CHIP CENTER AND MAGNET DISPLACEMENT RADIUS
.................................................. 26
F
IGURE
17:
V
ERTICAL PLACEMENT OF THE MAGNET
................................................................................. 26
List of Tables
T
ABLE
1:
P
IN DESCRIPTION
TSSOP14 ....................................................................................................... 4
T
ABLE
2
A
BSOLUTE
M
AXIMUM
R
ATINGS
.................................................................................................. 5
T
ABLE
3:
O
PERATING
C
ONDITION
............................................................................................................. 6
T
ABLE
4:DC/AC
CHARACTERISTICS
......................................................................................................... 6
T
ABLE
5
S
YSTEM SPECIFICATION
.............................................................................................................. 7
T
ABLE
6
G
LOBAL TIMING CONDITIONS
...................................................................................................... 7
T
ABLE
7
SPI
T
IMING
C
HARACTERISTICS
................................................................................................. 10
T
ABLE
8
SPI
C
OMMAND
P
ACKAGE
......................................................................................................... 12
T
ABLE
9
SPI
READ PACKAGE
.................................................................................................................. 13
T
ABLE
10
SPI
WRITE DATA PACKAGE
...................................................................................................... 13
T
ABLE
11
SPI
REGISTER MAP
................................................................................................................. 14
T
ABLE
12
C
LEAR
E
RROR
F
LAG
C
OMMAND
.............................................................................................. 16
T
ABLE
13
NOP
C
OMMAND
..................................................................................................................... 17
T
ABLE
14
I²C
E
LECTICAL
S
PECIFICATION
............................................................................................... 18
Revision 1.1 Page 3 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
T
ABLE
15
I²C
T
IMING
............................................................................................................................ 19
T
ABLE
16
R
EGISTER
M
AP
I2C ................................................................................................................ 20
T
ABLE
17
PWM
P
ERIOD AND RESOLUTION
.............................................................................................. 21
T
ABLE
18:
O
RDERING
I
NFORMATION
...................................................................................................... 27
1 Pin Configuration
SDA/CSn
114
PWM
SCL/CLK
2
A2/MISO
3
A1/MOSI
4
TEST
5
AS5048
13
GND
12
VDD3V
11
VDD5V
10
TEST
TEST
6
9
TEST
TEST
7
8
TEST
Figure 1: Pin configuration TSSOP14
1.1 Pin Description
Pin Symbol Type Description
1 SDA/CSn DI_ST SPI chip select - active low; shared with I2C
chip select pin
2 SCL/CLK DI_ST SPI clock input; shared with I2C clock input
3 A2/MISO DIO_ST SPI master in/slave out; shared with I2C
address selection pin 2
4 A1/MOSI DI_ST SPI master out/slave in; shared with I2C
address selection pin 1
5 TEST AIO Test pin, see Note
6 TEST AIO Test pin, see Note
7 TEST AIO Test pin, see Note
8 TEST AIO Test pin, see Note
9 TEST AIO Test pin, see Note
10 TEST AIO Test pin, see Note
11 VDD5V S Positive Supply Voltage, 3.0 to 5.5 V
12 VDD3V S
3.3V Regulator output; internally regulated from
VDD. Connect to VDD for 3V supply voltage.
10uF capacitor to GND required in 5V operation
mode
13 GND S Negative Supply Voltage (GND)
14 PWM DO Pulse Width Modulation output
Table 1: Pin description TSSOP14
PIN Types: S ... supply pad
AIO ... analog I/O
DI_ST … digital input with schmitt trigger
DO ... digital output – push-pull
DIO _ST ... digital I/O with schmitt trigger in the input path
Note: Pin 5 should be grounded to VSS. Pins 6, 7, 8, 9, 10 should be left open during the normal operation.
Revision 1.1
Page 4 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2
Electrical Characteristics
2.1 Absolute Maximum Ratings
Stresses beyond those listed under “Absolute Maximum Ratings“ may cause permanent damage to the device. These are stress ratings only. Functional operation of
the device at these or any other conditions beyond those indicated under “Operating Conditions” is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
Parameter
DC supply voltage at VDD pin
DC voltage at VDD3V pin
DC voltage at GND pin
Input pin voltage
Input current (latchup immunity)
Electrostatic discharge
Total power dissipation (all supplies and
outputs)
Storage temperature
Symbol
VDD5V
VDD3V
GND
V_in
I_scr
ESD
P_t
T_strg
Min
-0.3
-0.3
-0.3
-100
+/-2
-55
Max
7
5
0.3
VDD+0.3
100
150
150
Unit
V
V
V
V
mA
kV
mW
°C
(1)
Note
Norm: Jedec 78
Norm: MIL 883 E method 3015
The reflow peak soldering
temperature (body
temperature)specified is in
accordance with IPC/JEDEC J-
STD-020 “Moisture Solid State
Surface Mount Devices”. The lead
finish from Pb-free leaded
packages is matte tin (100% Sn)
Represents a maximum floor life
time of 168h
Package body temperature T_body 260 °C
Humidity non-condensing
Moisture Sensitive Level
H
MSL
5
3
85 %
Table 2 Absolute Maximum Ratings
Revision 1.1 Page 5 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2.2 Operating Conditions
All in this specification defined tolerances for external components need to be assured over the whole operation conditions
range and also over lifetime.
Parameter
Positive supply voltage
Positive core supply voltage
Negative supply voltage
Ambient temperature
Supply Current
Symbol
VDD5V
VDD3V
VDDCORE
GND
T_amb
I_sup
Min
4.5
3
3
0
-40
Max
5.5
3.6
3.6
0
150
15
Unit
V
V
V
V
°C
mA
Note
5V Operation via LDO
LDO output voltage
Only for 5V operation.
T_amb_max for 3V is 125°C
Table 3: Operating Condition
2.3 DC/AC Characteristics for digital inputs and outputs
Parameter Symbol Min
CMOS digital input with schmitt trigger: CSn, CLK, MOSI
High level input voltage V_IH 0.7 * VDD5V
Low level input voltage
Input leakage current
CMOS output: PWM, MISO
High level output voltage
Low level output voltage
Capacitive load
Output current
V_IL
l_LEAK
V_OH
V_OL
C_L
I_OUT
VDD5V-0.5
Typ
Max
0.3 * VDD5V
1
GND+0.4
50
4
Unit
V
V
µA
V
V
pF
mA
Note
Table 4:DC/AC characteristics
Revision 1.1 Page 6 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2.4 Electrical System Specifications
VDD5V = 5V, T
Ambient
= -40 to +150°C unless noted otherwise
Parameter
Magnetic input field
Output sampling rate
Output Resolution
Sensor output noise
System propagation delay
PWM frequency
Non-linearity optimum placement of
magnet
Non-linearity @displacement of
magnet
Non-linearity @displacement of
magnet and temperature -40 -150
degC
Symbol
Bz
f
sample
RES
Noise
t
prop
f
PWM
INL
OPT
Min
30
10.2
Typ
50
11.25
14
Max
70
12.4
Unit
mT
kHz
Bit
Note
90.7
0.907
100
1
0.06
110.2
1.102
±0.4
Deg
µs
kHz
Deg
2.73LSB@14bit, rms
value
Assuming 8 mm
diameter of magnet
Assuming 8 mm
diameter of magnet and
500 um displacement in
x and y
Assuming 8 mm
diameter of magnet and
500 um displacement in
x and y
INL
DIS
±0.7 Deg
INL
DIS+TEMP
±1.2 Deg
Table 5 System specification
2.5 Global Timing Conditions
Parameter
Internal Master Clock
Symbol
F
OSC
T
OSC
Min
4.05
Typ
4.5
1/F
OSC
Table 6 Global timing conditions
Max
4.95
Unit
Hz
Note
MHz ±10%
Revision 1.1 Page 7 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
3
Functional Description
The AS5048 is a magnetic Hall sensor system manufactured in a CMOS process. A lateral Hall sensor array is used to measure
the magnetic field components perpendicular to the surface of the chip. The AS5048 is uses self-calibration methods to
eliminate signal offset and sensitivity drifts.
The integrated Hall sensors are placed around the center of the device and deliver a voltage representation of the magnetic flux
Bz.
Through Sigma-Delta Analog-to-Digital Converter (ADC) and Digital Signal-Processing (DSP) algorithms, the AS5048 provides
accurate high-resolution absolute angular position information. This is accomplished by 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 that indicate movements of the magnet towards or away from
the device’s surface, in the z-axis.
A small diametrically magnetized (two-pole) standard magnet provides the angular position information. Depending on the
system requirements different magnet diameters are possible. Additional flexibility is given by the wide range of the magnetic
input range. The AS5048 can be combined with NeFeB, SmCo and alternative magnet hard ferrites. The AS5048
provides a 14-bit binary code representing the angular position of the magnet. The type of output is pre-programmed as SPI
version A or I2C version B. Simultaneously a PWM output signal is available in 12 bit format.
A simple programming of the zero position is possible over the interface. No additional programmer is needed. The AS5048
uses one time programmable (OTP) fuses for permanent programming of the user settings. The verification is possible over a
simple digital readout of the OTP content.
4 Operation
The AS5048 operates at 5V ±10%, using an internal Low-Dropout (LDO) voltage regulator. In addition a 3.3V operation is
possible. The VDD3V output is intended for internal use only. It must not be loaded with an external load.
5V Operation
10F
3.3V Operation
VDD3V
VDD3V
10uF
1uF
VDD5V
LDO
Internal
VDD3.3V
VDD5V
LDO
Internal
VDD3.3V
4.5 -5.5V
3.0-3.6V
GND
GND
Figure 2: Connections for 5V and 3.3V supply voltages
Note: The pin VDD3V must always be buffered by a 10 µF capacitor in 5V operation. It must not be left floating, as this may
cause unstable internal supply voltages which may lead to larger output jitter of the measured angle.
In 3V operation the VDD3V must be shorted to VDD5V.
Revision 1.1 Page 8 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
4.1 SPI Interface
The 16 bit SPI Interface enables read / write access to the register blocks and is compatible to a standard micro controller
interface. The SPI is active as soon as CSn is pulled low. The AS5048A then reads the digital value on the MOSI(master out
slave in) input with every falling edge of CLK and writes on its MISO (master in slave out) output with the rising edge. After 16
clock cycles CSn has to be set back to a high status in order to reset some parts of the interface core.
4.1.1 SPI Interface Signals (4-Wire Mode, Wire_mode = 1)
The AS5048A only supports slave operation mode. Therefore CLK for the communication as well as the CSn signal has to be
provided by the test equipment. The following picture shows a basic interconnection diagram with one master and an AS5048A
device and a principle schematic of the interface core.
Figure 4 SPI Command/Response Data Flow
Revision 1.1 Page 9 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
4.1.2 SPI Timing
Datasheet
t
CSn
CSn
(Input)
t
L
CLK
(Input)
t
clk
t
clkL
t
clkH
t
H
t
MISO
MISO
(Output)
data[15]data[14]data[0]
t
OZ
t
MOSI
MOSI
(Input)
data[15]data[14]data[0]
t
OZ
Figure 5 SPI Timing Diagram
Parameter
t
L
t
L
T
CLK
t
CLKL
t
CLKH
t
H
T
CSnH
T
CSnH
t
MOSI
t
MISO
Description
Time between CSn falling edge and CLK rising edge
Time between CSn falling edge and CLK rising edge
Serial clock period
Low period of serial clock
High period of serial clock
Time between last falling edge of CLK and rising edge of CSn
High time of CSn between two transmissions
High time of CSn between two transmissions
Data input valid to clock edge
CLK edge to data output valid
Table 7 SPI Timing Characteristics
Min
10 (2)
350 (1)
100
50
50
t
SCK
/ 2
10 (2)
350 (1)
20
Max
20
Unit
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Notes:
(1)
Synchronization with the internal clock
2024年5月11日发(作者:承星儿)
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
General Description
The AS5048 is an easy to use 360° angle position sensor with a 14-bit high resolution output. The maximum system
accuracy is 0.05° assuming linearization and averaging is done by the external microcontroller.
The IC measures the absolute position of the magnet’s rotation angle and consists of Hall sensors, analog digital
converter and digital signal processing. The zero position can be programmed via SPI or I²C command. Therefore no
programmer is needed anymore. This simplifies the assembly of the complete system because the zero position of
the magnet does not need to be mechanically aligned. This helps developers to shorten their developing time. The
sensor tolerates misalignment, air gap variations, temperature variations and as well external magnetic fields. This
robustness and wide temperature range (-40°C up to +150°C) of the AS5048 makes the IC ideal for rotation angle
sensing in harsh industrial and medical environments. Several AS5048 ICs can be connected in daisy chain for serial
data read out. The absolute position information of the magnet is directly accessible over a PWM output and can be
read out over a standard SPI or a high speed I²C interface. Version AS5048A comes with SPI and PWM Interface.
Version AS5048B is configured with the I²C interface and has also a PWM output. An internal voltage regulator
allows the AS5048 to operate at either 3.3 V or 5 V supplies.
Key Features & Benefits Applications
• Robotic joint position detection
• Industrial motor position control
• Medical robots and fitness equipment
• 360° contactless angle position sensor
• Standard SPI or high speed I²C interface and PWM
• Simple programmable zero position via SPI or I²C
command
• No programmer needed
• 14-bit full scale resolution
0.0219°/LSB
• Angle accuracy 0.05°after system linearization and
averaging
• Daisy chain capability
• Tolerant to air gap variations
magnetic field input range: 30mT – 70mT
• -40°C to +150°C ambient temperature range
• 3.3V / 5V compliant
• 14-pin TSSOP package (5x6.4mm)
Block Diagram
Revision 1.1 Page 1 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
Contents
GENERAL DESCRIPTION .................................................................................................................. 1
K
EY
F
EATURES
&
B
ENEFITS
.................................................................................................................. 1
A
PPLICATIONS
..................................................................................................................................... 1
B
LOCK
D
IAGRAM
................................................................................................................................. 1
1
PIN CONFIGURATION ................................................................................................................. 4
1.1
2
P
IN
D
ESCRIPTION
........................................................................................................................ 4
ELECTRICAL CHARACTERISTICS ............................................................................................ 5
2.1
2.2
2.3
2.4
2.5
A
BSOLUTE
M
AXIMUM
R
ATINGS
.................................................................................................... 5
O
PERATING
C
ONDITIONS
............................................................................................................. 6
DC/AC
C
HARACTERISTICS FOR DIGITAL INPUTS AND OUTPUTS
....................................................... 6
E
LECTRICAL
S
YSTEM
S
PECIFICATIONS
.......................................................................................... 7
G
LOBAL
T
IMING
C
ONDITIONS
...................................................................................................... 7
3
4
FUNCTIONAL DESCRIPTION ...................................................................................................... 8
OPERATION .................................................................................................................................. 8
4.1
SPI
I
NTERFACE
........................................................................................................................... 9
4.1.1
SPI Interface Signals (4-Wire Mode, Wire_mode = 1) ............................................................ 9
4.1.2
SPI Timing ......................................................................................................................... 10
4.1.3
SPI Connection to the Host UC ........................................................................................... 11
4.1.4
SPI Communication Command Package .............................................................................. 12
4.1.5
Read Package (Value Read from AS5048A) ......................................................................... 13
4.1.6
Write Data Package (Value Written to AS5048A) ................................................................. 13
4.1.7
Register Map SPI ............................................................................................................... 14
4.1.8
SPI Interface Commands .................................................................................................... 15
4.2
I²C
INTERFACE
.......................................................................................................................... 18
4.2.1
I²C Electrical Specification ................................................................................................ 18
4.2.2
I²C Timing ......................................................................................................................... 19
4.2.3
Register Table .................................................................................................................... 20
4.3
PWM
INTERFACE
...................................................................................................................... 21
5
PACKAGE DRAWINGS AND MARKINGS ................................................................................. 22
5.1.1
Assembly Lot Code ............................................................................................................. 22
6
APPLICATION INFORMATION ................................................................................................. 24
6.1
P
ROGRAMMING OF THE
AS5048 ................................................................................................. 24
6.1.1
Programming of the zero position ....................................................................................... 24
6.1.2
Programming sequence with verification ............................................................................. 24
6.2
D
IAGNOSTIC FUNCTIONS OF THE
AS5048 .................................................................................... 24
6.3
C
HOOSING THE
P
ROPER
M
AGNET
............................................................................................... 25
6.4
P
HYSICAL
P
LACEMENT OF THE
M
AGNET
..................................................................................... 26
Revision 1.1 Page 2 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
6.5
7
8
9
Datasheet
M
AGNET
P
LACEMENT
................................................................................................................ 26
ORDERING INFORMATION ...................................................................................................... 27
REVISION HISTORY .................................................................................................................. 27
COPYRIGHTS .............................................................................................................................. 28
10
DISCLAIMER .............................................................................................................................. 28
List of Figures
F
IGURE
1:
P
IN CONFIGURATION
TSSOP14 ................................................................................................. 4
F
IGURE
2:
C
ONNECTIONS FOR
5V
AND
3.3V
SUPPLY VOLTAGES
.................................................................. 8
F
IGURE
3
SPI
C
ONNECTION
AS5048A
WITH U
C ........................................................................................ 9
F
IGURE
4
SPI
C
OMMAND
/R
ESPONSE
D
ATA
F
LOW
...................................................................................... 9
F
IGURE
5
SPI
T
IMING
D
IAGRAM
............................................................................................................. 10
F
IGURE
6
S
INGLE
S
LAVE
M
ODE
.............................................................................................................. 11
F
IGURE
7
M
ULTIPLE
S
LAVE
,
N
+3
W
IRE
(S
EPARATE
C
HIP
S
ELECT
) ............................................................. 11
F
IGURE
8
D
AISY
C
HAIN
,
4
W
IRE
............................................................................................................ 12
F
IGURE
9
READ
C
OMMAND
................................................................................................................... 15
F
IGURE
10
WRITE
C
OMMAND
............................................................................................................... 15
F
IGURE
11
CLEAR
ERROR
FLAG
C
OMMAND
........................................................................................ 16
F
IGURE
12
NOP
C
OMMAND
................................................................................................................... 17
F
IGURE
13
PWM
F
ORMAT
...................................................................................................................... 21
F
IGURE
14
P
ACKAGE
M
ARKING
.............................................................................................................. 22
F
IGURE
15:
T
YPICAL MAGNET
(6
X
3
MM
)
AND MAGNETIC FIELD DISTRIBUTION
............................................ 25
F
IGURE
16:
D
EFINED CHIP CENTER AND MAGNET DISPLACEMENT RADIUS
.................................................. 26
F
IGURE
17:
V
ERTICAL PLACEMENT OF THE MAGNET
................................................................................. 26
List of Tables
T
ABLE
1:
P
IN DESCRIPTION
TSSOP14 ....................................................................................................... 4
T
ABLE
2
A
BSOLUTE
M
AXIMUM
R
ATINGS
.................................................................................................. 5
T
ABLE
3:
O
PERATING
C
ONDITION
............................................................................................................. 6
T
ABLE
4:DC/AC
CHARACTERISTICS
......................................................................................................... 6
T
ABLE
5
S
YSTEM SPECIFICATION
.............................................................................................................. 7
T
ABLE
6
G
LOBAL TIMING CONDITIONS
...................................................................................................... 7
T
ABLE
7
SPI
T
IMING
C
HARACTERISTICS
................................................................................................. 10
T
ABLE
8
SPI
C
OMMAND
P
ACKAGE
......................................................................................................... 12
T
ABLE
9
SPI
READ PACKAGE
.................................................................................................................. 13
T
ABLE
10
SPI
WRITE DATA PACKAGE
...................................................................................................... 13
T
ABLE
11
SPI
REGISTER MAP
................................................................................................................. 14
T
ABLE
12
C
LEAR
E
RROR
F
LAG
C
OMMAND
.............................................................................................. 16
T
ABLE
13
NOP
C
OMMAND
..................................................................................................................... 17
T
ABLE
14
I²C
E
LECTICAL
S
PECIFICATION
............................................................................................... 18
Revision 1.1 Page 3 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
T
ABLE
15
I²C
T
IMING
............................................................................................................................ 19
T
ABLE
16
R
EGISTER
M
AP
I2C ................................................................................................................ 20
T
ABLE
17
PWM
P
ERIOD AND RESOLUTION
.............................................................................................. 21
T
ABLE
18:
O
RDERING
I
NFORMATION
...................................................................................................... 27
1 Pin Configuration
SDA/CSn
114
PWM
SCL/CLK
2
A2/MISO
3
A1/MOSI
4
TEST
5
AS5048
13
GND
12
VDD3V
11
VDD5V
10
TEST
TEST
6
9
TEST
TEST
7
8
TEST
Figure 1: Pin configuration TSSOP14
1.1 Pin Description
Pin Symbol Type Description
1 SDA/CSn DI_ST SPI chip select - active low; shared with I2C
chip select pin
2 SCL/CLK DI_ST SPI clock input; shared with I2C clock input
3 A2/MISO DIO_ST SPI master in/slave out; shared with I2C
address selection pin 2
4 A1/MOSI DI_ST SPI master out/slave in; shared with I2C
address selection pin 1
5 TEST AIO Test pin, see Note
6 TEST AIO Test pin, see Note
7 TEST AIO Test pin, see Note
8 TEST AIO Test pin, see Note
9 TEST AIO Test pin, see Note
10 TEST AIO Test pin, see Note
11 VDD5V S Positive Supply Voltage, 3.0 to 5.5 V
12 VDD3V S
3.3V Regulator output; internally regulated from
VDD. Connect to VDD for 3V supply voltage.
10uF capacitor to GND required in 5V operation
mode
13 GND S Negative Supply Voltage (GND)
14 PWM DO Pulse Width Modulation output
Table 1: Pin description TSSOP14
PIN Types: S ... supply pad
AIO ... analog I/O
DI_ST … digital input with schmitt trigger
DO ... digital output – push-pull
DIO _ST ... digital I/O with schmitt trigger in the input path
Note: Pin 5 should be grounded to VSS. Pins 6, 7, 8, 9, 10 should be left open during the normal operation.
Revision 1.1
Page 4 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2
Electrical Characteristics
2.1 Absolute Maximum Ratings
Stresses beyond those listed under “Absolute Maximum Ratings“ may cause permanent damage to the device. These are stress ratings only. Functional operation of
the device at these or any other conditions beyond those indicated under “Operating Conditions” is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
Parameter
DC supply voltage at VDD pin
DC voltage at VDD3V pin
DC voltage at GND pin
Input pin voltage
Input current (latchup immunity)
Electrostatic discharge
Total power dissipation (all supplies and
outputs)
Storage temperature
Symbol
VDD5V
VDD3V
GND
V_in
I_scr
ESD
P_t
T_strg
Min
-0.3
-0.3
-0.3
-100
+/-2
-55
Max
7
5
0.3
VDD+0.3
100
150
150
Unit
V
V
V
V
mA
kV
mW
°C
(1)
Note
Norm: Jedec 78
Norm: MIL 883 E method 3015
The reflow peak soldering
temperature (body
temperature)specified is in
accordance with IPC/JEDEC J-
STD-020 “Moisture Solid State
Surface Mount Devices”. The lead
finish from Pb-free leaded
packages is matte tin (100% Sn)
Represents a maximum floor life
time of 168h
Package body temperature T_body 260 °C
Humidity non-condensing
Moisture Sensitive Level
H
MSL
5
3
85 %
Table 2 Absolute Maximum Ratings
Revision 1.1 Page 5 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2.2 Operating Conditions
All in this specification defined tolerances for external components need to be assured over the whole operation conditions
range and also over lifetime.
Parameter
Positive supply voltage
Positive core supply voltage
Negative supply voltage
Ambient temperature
Supply Current
Symbol
VDD5V
VDD3V
VDDCORE
GND
T_amb
I_sup
Min
4.5
3
3
0
-40
Max
5.5
3.6
3.6
0
150
15
Unit
V
V
V
V
°C
mA
Note
5V Operation via LDO
LDO output voltage
Only for 5V operation.
T_amb_max for 3V is 125°C
Table 3: Operating Condition
2.3 DC/AC Characteristics for digital inputs and outputs
Parameter Symbol Min
CMOS digital input with schmitt trigger: CSn, CLK, MOSI
High level input voltage V_IH 0.7 * VDD5V
Low level input voltage
Input leakage current
CMOS output: PWM, MISO
High level output voltage
Low level output voltage
Capacitive load
Output current
V_IL
l_LEAK
V_OH
V_OL
C_L
I_OUT
VDD5V-0.5
Typ
Max
0.3 * VDD5V
1
GND+0.4
50
4
Unit
V
V
µA
V
V
pF
mA
Note
Table 4:DC/AC characteristics
Revision 1.1 Page 6 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
2.4 Electrical System Specifications
VDD5V = 5V, T
Ambient
= -40 to +150°C unless noted otherwise
Parameter
Magnetic input field
Output sampling rate
Output Resolution
Sensor output noise
System propagation delay
PWM frequency
Non-linearity optimum placement of
magnet
Non-linearity @displacement of
magnet
Non-linearity @displacement of
magnet and temperature -40 -150
degC
Symbol
Bz
f
sample
RES
Noise
t
prop
f
PWM
INL
OPT
Min
30
10.2
Typ
50
11.25
14
Max
70
12.4
Unit
mT
kHz
Bit
Note
90.7
0.907
100
1
0.06
110.2
1.102
±0.4
Deg
µs
kHz
Deg
2.73LSB@14bit, rms
value
Assuming 8 mm
diameter of magnet
Assuming 8 mm
diameter of magnet and
500 um displacement in
x and y
Assuming 8 mm
diameter of magnet and
500 um displacement in
x and y
INL
DIS
±0.7 Deg
INL
DIS+TEMP
±1.2 Deg
Table 5 System specification
2.5 Global Timing Conditions
Parameter
Internal Master Clock
Symbol
F
OSC
T
OSC
Min
4.05
Typ
4.5
1/F
OSC
Table 6 Global timing conditions
Max
4.95
Unit
Hz
Note
MHz ±10%
Revision 1.1 Page 7 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
3
Functional Description
The AS5048 is a magnetic Hall sensor system manufactured in a CMOS process. A lateral Hall sensor array is used to measure
the magnetic field components perpendicular to the surface of the chip. The AS5048 is uses self-calibration methods to
eliminate signal offset and sensitivity drifts.
The integrated Hall sensors are placed around the center of the device and deliver a voltage representation of the magnetic flux
Bz.
Through Sigma-Delta Analog-to-Digital Converter (ADC) and Digital Signal-Processing (DSP) algorithms, the AS5048 provides
accurate high-resolution absolute angular position information. This is accomplished by 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 that indicate movements of the magnet towards or away from
the device’s surface, in the z-axis.
A small diametrically magnetized (two-pole) standard magnet provides the angular position information. Depending on the
system requirements different magnet diameters are possible. Additional flexibility is given by the wide range of the magnetic
input range. The AS5048 can be combined with NeFeB, SmCo and alternative magnet hard ferrites. The AS5048
provides a 14-bit binary code representing the angular position of the magnet. The type of output is pre-programmed as SPI
version A or I2C version B. Simultaneously a PWM output signal is available in 12 bit format.
A simple programming of the zero position is possible over the interface. No additional programmer is needed. The AS5048
uses one time programmable (OTP) fuses for permanent programming of the user settings. The verification is possible over a
simple digital readout of the OTP content.
4 Operation
The AS5048 operates at 5V ±10%, using an internal Low-Dropout (LDO) voltage regulator. In addition a 3.3V operation is
possible. The VDD3V output is intended for internal use only. It must not be loaded with an external load.
5V Operation
10F
3.3V Operation
VDD3V
VDD3V
10uF
1uF
VDD5V
LDO
Internal
VDD3.3V
VDD5V
LDO
Internal
VDD3.3V
4.5 -5.5V
3.0-3.6V
GND
GND
Figure 2: Connections for 5V and 3.3V supply voltages
Note: The pin VDD3V must always be buffered by a 10 µF capacitor in 5V operation. It must not be left floating, as this may
cause unstable internal supply voltages which may lead to larger output jitter of the measured angle.
In 3V operation the VDD3V must be shorted to VDD5V.
Revision 1.1 Page 8 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
Datasheet
4.1 SPI Interface
The 16 bit SPI Interface enables read / write access to the register blocks and is compatible to a standard micro controller
interface. The SPI is active as soon as CSn is pulled low. The AS5048A then reads the digital value on the MOSI(master out
slave in) input with every falling edge of CLK and writes on its MISO (master in slave out) output with the rising edge. After 16
clock cycles CSn has to be set back to a high status in order to reset some parts of the interface core.
4.1.1 SPI Interface Signals (4-Wire Mode, Wire_mode = 1)
The AS5048A only supports slave operation mode. Therefore CLK for the communication as well as the CSn signal has to be
provided by the test equipment. The following picture shows a basic interconnection diagram with one master and an AS5048A
device and a principle schematic of the interface core.
Figure 4 SPI Command/Response Data Flow
Revision 1.1 Page 9 of 28
AS5048A/AS5048B
Magnetic Rotary Encoder
14-bit Angular Position Sensor
4.1.2 SPI Timing
Datasheet
t
CSn
CSn
(Input)
t
L
CLK
(Input)
t
clk
t
clkL
t
clkH
t
H
t
MISO
MISO
(Output)
data[15]data[14]data[0]
t
OZ
t
MOSI
MOSI
(Input)
data[15]data[14]data[0]
t
OZ
Figure 5 SPI Timing Diagram
Parameter
t
L
t
L
T
CLK
t
CLKL
t
CLKH
t
H
T
CSnH
T
CSnH
t
MOSI
t
MISO
Description
Time between CSn falling edge and CLK rising edge
Time between CSn falling edge and CLK rising edge
Serial clock period
Low period of serial clock
High period of serial clock
Time between last falling edge of CLK and rising edge of CSn
High time of CSn between two transmissions
High time of CSn between two transmissions
Data input valid to clock edge
CLK edge to data output valid
Table 7 SPI Timing Characteristics
Min
10 (2)
350 (1)
100
50
50
t
SCK
/ 2
10 (2)
350 (1)
20
Max
20
Unit
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Ns
Notes:
(1)
Synchronization with the internal clock