Datasheet docs

{ "name": "ams OSRAM", "mpn": "AS5048A-HTSP-500" }

AS5048A-HTSP-500 Magnetic Rotary Encoder

ams OSRAM AS5048A SPI/PWM 14-bit contactless magnetic rotary position sensor in the TSSOP-14 HTSP package, represented by the AS5048A-HTSP-500 orderable variant.

Sensor

Product Document

AS5048A/AS5048B

Magnetic Rotary Encoder (14-Bit Angular Position Sensor)

General Description

The AS5048 is an easy to use 360° angle position sensor with a 14-bit high resolution output.

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 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. AS5048A has a SPI interface, AS5048B I²C interface. Both devices offer a PWM output.

The zero position can be programmed via SPI or I²C command. This simplifies the assembly of the complete system because the zero position of the magnet does not need to be mechanically aligned. 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. An internal voltage regulator allows the AS5048 to operate at either 3.3V or 5V supplies.

Ordering Information and Content Guide appear at end of datasheet.

Key Benefits & Features

The benefits and features of AS5048A/AS5048B, Magnetic Rotary Encoder (14-Bit Angular Position Sensor) are listed below:

Figure 1: Added Value of Using AS5048

BenefitsFeatures
No external programmer neededStandard SPI or $I^{2}C$ interface and PWM
High precision14-bit resolution (0.0219°/LSB)
Easy to useZero position programmable via SPI or $I^{2}C$
Low material costs (no shielding)Immune to external magnetic stray fields

• Contactless rotary position sensor over $3 6 0 ^ { \circ }$

• Temperature range: $\scriptscriptstyle - 4 0 ^ { \circ } \mathsf { C }$ to $1 5 0 ^ { \circ } \mathsf C$

• 3.3V / 5V compliant

• Package: 14-pin TSSOP (5 x 6.4mm)

Applications

The applications of AS5048 include:

• Robotic joint position detection

• Industrial motor position control

• Medical robots and fitness equipment

Block Diagram

The functional blocks of this device are shown below:

Figure 2:
AS5048A Block Diagram

Figure 3: AS5048B Block Diagram

CSn114PWM
CLK213GND
MISO312VDD3V
MOSI411VDD5V
TEST510TEST
TEST69TEST
TEST78TEST

Figure 4:TSSOP14 Pin Configurations
Figure 5:
TSSOP14 Pin Descriptions for AS5048A

PinAS5048APin TypeDescription
1CSnDigital input with Schmitt triggerSPI chip select - active low
2CLKSPI clock input
3MISODigital I/O with Schmitt trigger in the input pathSPI master in/slave out
4MOSIDigital input with Schmitt triggerSPI master out/slave in
5TESTAnalog I/OTest pin should be connected to GND.
6TESTAnalog I/OTest pins should be left open during normal operation.
7TEST
8TEST
9TEST
10TEST
11VDD5VSupply padPositive Supply Voltage, 3.0 to 5.5 V
12VDD3V3.3V Regulator output; internally regulated from VDD. Connect to VDD for 3V supply voltage. 10μF capacitor to GND required in 5V operation mode
13GNDNegative Supply Voltage (GND)
14PWMDigital output – push-pullPulse Width Modulation output

Figure 6:
TSSOP14 Pin Description for AS5048B

PinAS5048BTypeDescription
1SDADigital I/O with open drain outputData pin $I^{2}C$ interface
2SCLDigital input with Schmitt trigger $I^{2}C$ clock input
3A2 $I^{2}C$ address selection pin 3
4A1 $I^{2}C$ address selection pin 4
5TESTAnalog I/OTest pin should be connected to GND.
6TESTAnalog I/OTest pins should be left open during normal operation.
7TEST
8TEST
9TEST
10TEST
11VDD5VSupply padPositive Supply Voltage, 3.0 to 5.5 V
12VDD3V3.3V Regulator output; internally regulated from VDD. Connect to VDD for 3V supply voltage. 10μF capacitor to GND required in 5V operation mode
13GNDNegative Supply Voltage (GND)
14PWMDigital output – push-pullPulse Width Modulation output

Absolute Maximum Ratings

Figure 7: 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.

SymbolParameterMinMaxUnitNote
Electrical Parameters
VDD5VDC supply voltage at VDD pin-0.37V
VDD3VDC voltage at VDD3V pin-0.35V
GNDDC voltage at GND pin-0.30.3V
$V_{IN}$ Input pin voltageVDD+0.3V
$I_{SCR}$ Input current (latchup immunity)-100100mAJedec 78
Electrostatic Discharge
ESDElectrostatic discharge±2kVMIL 883 E method 3015
Power Dissipation
$P_T$ Total power dissipation(all supplies and outputs)150mW
Temperature Ranges and Storage Conditions
$T_{STRG}$ Storage temperature-55150°C
$T_{BODY}$ Package body temperature260°CThe 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)
$RH_{NC}$ Relative humidity non-condensing585%
MSLMoisture sensitivity level3Represents a maximum floor life time of 168h

Electrical Characteristics

All in this specification defined tolerances for external components need to be assured over the whole operation conditions range and also over lifetime.

Operating Conditions

Figure 9: DC/AC Characteristics
Figure 8: Operating Conditions

SymbolParameterMinMaxUnitNote
VDD5VPositive supply voltage4.55.5V5V Operation via LDO
VDD3V33.6VLDO output voltage
VDDCOREPositive core supply voltage33.6V
$T_{AMB}$ Ambient temperature-40150°COnly for 5V operation.T_amb_max for 3V is 125°C
$I_{SUP}$ Supply current15mA

DC/AC Characteristics for Digital Inputs and Outputs

SymbolParameterMinMaxUnit
CMOS Digital Input with Schmitt Trigger: CSn, CLK, MOSI and SCL, A1, A2
$V_{IH}$ High level input voltage0.7 * VDDCOREV
$V_{IL}$ Low level input voltage0.3 * VDDCOREV
$I_{LEAK}$ Input leakage current1μA
CMOS Output: PWM, MISO, SDA
$V_{OH}$ High level output voltageVDDCORE - 0.5V
$V_{OL}$ Low level output voltageGND+0.4V
$C_L$ Capacitive load50pF
$I_{OUT}$ Output current4mA

Electrical System Specifications

VDD5V = 5V, $\Gamma _ { \tt A M B } = - 4 0$ to $1 5 0 ^ { \circ } \mathsf C$ unless noted otherwise.

Figure 10: System Specification

SymbolParameterConditionsMinTypMaxUnit
BzMagnetic input field305070mT
$f_{\text{sample}}$ Output sampling rate10.211.2512.4kHz
RESOutput resolution14Bit
NoiseSensor output noise2.73LSB@14bit, rms value0.06deg
$t_{\text{prop}}$ System propagation delay90.7100110.2μs
$f_{\text{PWM}}$ PWM frequency0.90711.102kHz
INLOPT@25°CNon-linearity, optimum placement of the magnet±0.8deg
INLOPT+TEMPNon-linearity optimum placement of the magnet over the full temperature range±1deg
INLDIS+TEMPNon-linearity @ displacement of magnet and temperature -40°C to 150°CAssuming N35H magnet (D=8mm, H=3mm) 500μm displacement in x and y z-distance @ 2000μm±1.2deg
$t_{\text{startup}}$ Startup time10ms

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 executed by a Coordinate Rotation Digital Computer (CORDIC) which 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 materials e.g. 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 I²C 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.

Supply Voltage Configuration

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.

Figure 11:
Connections for 5V and 3.3V Supply Voltages

Note(s):

  1. 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. The ambient temperature ${ \mathsf T } _ { \mathsf { A M B } }$ is limited to 125°C in this mode.

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.

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 12: SPI Connection AS5048A with μC

Because the interface has to decode the sent command before it can react and provide data the response of the chip to a specific command applied at a time T can be accessed in the next transmission cycle ending at T + TCOM. The data are sent and read with MSB first. Every time the chip is accessed it is sending and receiving data.

Figure 13:
SPI Command/Response Data Flow

Figure 14: SPI Timing Diagram
SPI Timing

Figure 15:

SPI Timing Characteristics

ParameterDescriptionMinMaxUnit
$t_{L}$ Time between CSn falling edge and CLK rising edge350ns
$T_{CLK}$ Serial clock period100ns
$t_{CLKL}$ Low period of serial clock50ns
$t_{CLKH}$ High period of serial clock50ns
$t_{H}$ Time between last falling edge of CLK and rising edge of CSn50ns
$T_{CSnH}$ High time of CSn between two transmissions350ns
$t_{MOSI}$ Data input valid to clock edge20ns
$t_{MISO}$ CLK edge to data output valid20ns

SPI Connection to the Host μC

Single Slave Mode
Figure 16: Single Slave Mode

Single Slave Mode: This figure shows the SPI connection to the host μC using Single Slave Mode.
3 Wire Mode (read only)

Figure 17: Multiple Slave, n+3 Wire (Separate ChipSelect)

Multiple Slave, n+3 Wire (Separate ChipSelect): This figure shows the SPI connection to the host μC using 3 Wire mode.

Figure 18: Daisy Chain, 4 Wire
Daisy Chain, 4 Wire

Daisy Chain, 4 Wire: This figure shows the SPI connection to the host μC using Daisy Chain, 4 wire mode.

SPI Communication Command Package

Every command sent to the AS5048A is represented with the following layout.

Figure 19:

SPI Command Package

Command Package
BitMSB1413121110987654321LSB
PARRWnAddress<13:0>
Bit Definition & Description
PARParity bit (EVEN)
RWnIndicates read(1) or write(0) command
Address14 bit address code

Read Package (Value Read from AS5048A)

The read frame always contains two alarm bits, the parity and error flags and the addressed data of the previous read command.

Figure 20:

SPI Read Package

Read Package
BitMSB1413121110987654321LSB
PAREFData<13:0>
Bit Definition & Description
PARParity bit (EVEN)
EFError flag indicating a transmission error in a previous host transmission
Data14 bit addressed data

Write Data Package (Value Written to AS5048A)

The write frame is compatible to the read frame and contains two additional bits, parity flag and R flag.

If the previous command was a write command a second package has to be transmitted.

Figure 21:

SPI Write Data Package

Data Package
BitMSB1413121110987654321LSB
PARRData <13:0>
Bit Definition & Description
PARParity bit (EVEN)
RHas to be 0
Data14 bit data to write to former selected address

Register Description

Figure 22: SPI Register Map

Address hexNameAccess TypeBitSymbolDefaultDescription
Control and Error Registers
x0000NOPR13NOP0No operation dummy information
:
0
x0001Clear Error FlagR13Not usedn.a.Error register. All errors are cleared by access
:
3
2Parity Error0
1Command Invalid
0Framing Error
x0003Programming ControlR/W13Not used0Programming control register. Programming must be enabled before burning the fuse(s). After programming is a verification mandatory. See programming procedure.
:
7
6Verify
5Not used
4
3Burn
2Reserved
1
0Programming Enable
Programmable Customer Settings
x0016OTP Register Zero Position HiR/W + Program13Not used0Zero Position value high byte
:
8
7Zero Position <13>0
:::
0Zero Position <6>0
x0017OTP Register Zero Position Low 6 LSBsR/W + Program13Not used0Zero Position remaining 6 lower LSB's
:
6
5Zero Position <5>0
:::
0Zero Position <0>0
Readout Registers
x3FFDDiagnostics + Automatic Gain Control (AGC)R13Not usedn.a.Diagnostics flags
12
11Comp High0
10Comp Low0
9COF0
8OCF1
7AGC value<7>1Automatic Gain Control value.0 decimal represents high magnetic field, 255 decimal represents low magnetic field
:::
0AGC value<0>0
x3FFEMagnitudeR13Magnitude<13>0Magnitude output value of the CORDIC
:::
0Magnitude<0>0
x3FFFAngleR13Angle <13>0Angle output value including zero position correction
:::
0Angle<0>0

READ Command

For a single READ command two transmission sequences are necessary. The first package written to the AS5048 contains the READ command (MSB-1 high) and the address the chip has to access, the second package transmitted to the AS5048 device can be any command the chip has to process next. The content of the desired register is available in the MISO register of the master device at the end of the second transmission cycle.

Figure 23: READ Command

WRITE Command

A single WRITE command takes two transmission cycles. With a NOP command after the WRITE command you can verify the sent data with three transmission cycles because the data will be send back during the following command.

Figure 24: WRITE Command

CLEAR ERROR FLAG Command

The CLEAR ERROR FLAG command is implemented as READ command. This command clears the ERROR FLAG which is contained in every READ frame. Before the ERROR FLAG is cleared the error register content comes back with the information which error type was occurred. On the next new READ register the ERROR FLAG is cleared.

Figure 26:
Figure 25: CLEAR ERROR FLAG Command

The package necessary to perform a CLEAR ERROR FLAG is built up as follows.

Clear Error Flag Command

CLEAR ERROR FLAG Command
BitMSB1413121110987654321LSB
PAR100000000000001

Possible conditions which force the ERROR FLAG to be set:

• Wrong parity

• Wrong number of clocks (no full transmission cycle or too many clocks)

• Invalid command

• Frame error

Note(s): If the error flag is set to high because of a communication problem the flag remains set until it will be cleared by the CLERAR ERROR FLAG command.

NOP Command

The NOP command represents a dummy write to the AS5048.

Figure 27: NOP Command


The NOP command frame looks like follows.

Figure 28: NOP Command

NOP Command
BitMSB1413121110987654321LSB
0000000000000000

The chip’s response on this command is 0x0000

I²C Interface

The AS5048B supports 2-wire high-speed I²C protocol in device mode. The host MCU (master) has to initiate the data transfers. The 7-bit device address of the slave depends on the state of the OTP I²C register 21 (0x15) bit 0… 4 + 2 I²C address selection pin 3 and 4.

Supported modes:

• Random/Sequential Read

• Byte/Page Write

• Standard : 0 to 100kHz clock frequency (slave mode)

• Fast Mode : 0 to 400kHz clock frequency (slave mode)

• High Speed: 0 to 3.4MHz clock frequency (slave mode)

The SDA signal is bidirectional and is used to read and write the serial data. The SCL signal is the clock generated by the host MCU, to synchronize the SDA data in read and write mode. The maximum I²C clock frequency is 3.4MHz, data are triggered on the rising edge of SCL.

I²C Electrical Specification

Figure 29:
I²C Electrical Specification

SymbolParameterConditionFS-mode+HS-mode $C_B$ =100pFHS-mode $C_B$ =400pFUnit
MinMaxMinMaxMinMax
$V_{IL}$ LOW-Level Input Voltage-0.5 $0.3V_{DDCORE}$ -0.5 $0.3V_{DDCORE}$ -0.5 $0.3V_{DDCORE}$ V
$V_{IH}$ HIGH-Level Input Voltage $0.7V_{DDCORE}$ $V_{DDCORE} + 0.5$ $0.7V_{DDCORE}$ $V_{DDCORE} + 0.5$ $0.7V_{DDCORE}$ $V_{DDCORE} + 0.5$ V
$V_{hys}$ Hysteresis of Schmitt Trigger Inputs $V_{DDCORE}<2V$ $0.1V_{DDCORE}$ -- $0.1V_{DDCORE}$ -- $0.1V_{DDCORE}$ --V
$V_{OL}$ LOW-Level Output Voltage (open-drain or open-collector) at 3mA Sink Current $V_{DDCORE}<2V$ -- $0.2V_{DDCORE}$ -- $0.2V_{DDCORE}$ -- $0.2V_{DDCORE}$ V
$I_{OL}$ LOW-Level Output Current $V_{OL}=0.4V$ 20--------mA
$I_{CS}$ Pull-up current of SCLH current source----312312mA
$t_{SP}$ Pulse Width of Spikes that must be suppressed by the Input Filter-- $50^{(1)}$ --10--10ns
$I_i$ Input Current at each I/O PinInput Voltage between-10 $+10^{(2)}$ --10--10μA
$C_B$ Total Capacitive Load for each Bus Line--550--100--400pF
$C_{I/O}$ I/O Capacitance (SDA,SCL)--10--10--10pF

Note(s):

  1. Input filters on the SDA and SCL inputs suppress noise spikes of less than 50 ns.
  2. I/O pins of Fast-mode and Fast-mode Plus devices must not obstruct the SDA and SCL lines if VDD is switched OFF.

I²C Timing

Figure 30:

I²C Timing

SymbolParameterConditionFS-modeHS-mode $C_B$ =100pFHS-mode $C_B$ =400pF (5)Unit
MinMaxMinMaxMinMax
$f_{SCLK}$ SCL clock Frequency--400--3400--1700kHz
$t_{BUF}$ Bus Free Time; time between STOP and START Condition500--500--500--ns
$t_{HD;STA}$ Hold Time;(Repeated) START Condition (1)260--160--160--ns
$t_{LOW}$ LOW Period of SCL Clock500--160--320--ns
$t_{HIGH}$ HIGH Period of SCL Clock260--60--120--ns
$t_{SU;STA}$ Setup Time for a Repeated START condition260--160--160--ns
$t_{HD;DAT}$ Data Hold Time (2)04500700150ns
$t_{SU;DAT}$ Data Setup Time (3)50--10--10--ns
$t_R$ Rise Time of SDA and SCL Signals20+0.1 $C_b$ 120--------ns
$t_F$ Fall time of SDA and SCL signals $20+0.1C_b$ $120^{(4)}$ --------ns
$t_{rCL}$ Rise time of SCLH signalExt. pull-up source of 3mA----10402080ns
$t_{rCL1}$ Rise time of SCLH signal after repeated START condition and after an acknowledge bitExt. pull-up source of 3mA----108020160ns
$t_{fCL}$ Output rise time of SCLH signalExt. pull-up source of 3mA----10402080ns
$t_{rDA}$ Output rise time of SDAH signal----108020160ns
$t_{fDA}$ Output rise time of SDAH signal----108020160ns
$t_{SU;STO}$ Setup Time for STOP Condition260--160--160--ns
$V_{nL}$ Noise margin at LOW level $0.1V_{DDp}$ -- $0.1V_{DDp}$ -- $0.1V_{DDp}$ --V
$V_{nH}$ Noise margin at HIGH level $0.2V_{DDp}$ -- $0.2V_{DDp}$ -- $0.2V_{DDp}$ --V

Note(s):

  1. After this time the first clock is generated.

  2. A device must internally provide a minimum hold time (120ns / max 250ns for Fast-mode Plus, 80ns / max 150ns for High-speed mode) for the SDA signal (referred to the $\mathsf { V } _ { \mathsf { I H m i n } }$ of the SCL) to bridge the undefined region of the falling edge of SCL.

  3. A fast-mode device can be used in standard-mode system, but the requirement t = 250ns must then e met. This is automatically the case if the device does not stretch the LOW period of the SCL signal. If such a device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line t + T = 1000 + 250 = 1250ns before the SCL line is released.

  4. In Fast-mode Plus, fall time is specified the same for both output stage and bus timing. If series resistors are used this has to be considered for bus timing.

  5. For capacitive bus loads between 100pF and 400pF, the timing parameters must be linearly interpolated

Register Table

The following registers / functions are accessible over the serial I²C interface.

Figure 31:Register Map I²C

Address hexNameAccess TypeBitSymbolDefaultDescription
Control OTP
x03Programming ControlR/W7Not used0Programming control register. Programming must be enabled before burning the fuse(s). After programming is an verification mandatory. See programming procedure.
6Verify
5Not used
4
3Burn
2Reserved
1
0Programming Enable
Programmable Customer Settings
x15I2C slave addressR/W7Not usedn.a.I2C slave address slave address consist of 5 bits (MSBs) and the hardware setting of Pins A1 and A2 I2C address &lt;4&gt; is the inversion defined as '1'
:
5
4I2C address&lt;4&gt;internally inverted
:::
0I2C address&lt;0&gt;0
x16OTP Register Zero Position HiR/W + Program7Zero Position &lt;13&gt;0Zero Position value high byte
:::
0Zero Position &lt;6&gt;0
x17OTP Register Zero Position Low 6 LSBsR/W + Program7Not usedn.a.Zero Position remaining 6 lower LSB's
6
5Zero Position &lt;5&gt;0
:::
0Zero Position &lt;0&gt;0
Readout Registers
xFAAutomatic Gain ControlR7AGC value&lt;7&gt;1Automatic Gain Control value.0 decimal represents high magnetic field 255 decimal represents low magnetic field
:::
0AGC value&lt;0&gt;0
xFBDiagnosticsR7Not usedn.a.Diagnostic flags
:
4
3Comp High0
2Comp Low0
1COF0
0OCF1
xFCMagnitudeR7Magnitude&lt;13&gt;0Magnitude output value of the CORDIC
:::
0Magnitude&lt;6&gt;0
xFDR7Not usedn.a.
6
5Magnitude&lt;5&gt;0
:::
0Magnitude&lt;0&gt;0
xFEAngleR7Angle&lt;13&gt;0Angle output value including zero position correction
:::
0Angle&lt;6&gt;0
xFFR7Not usedn.a.
6
5Angle&lt;5&gt;0
:::
0Angle&lt;0&gt;0

I²C Slave address
Figure 32: Slave Address Construction

Note(s):

  1. It's important to use a STOP condition only after a complete read or write sequence.

The slave address consists of the hardware setting on pins A1, A2. The MSB of the slave address (yellow) is internally inverted. This means that by default the resulting data is ‘1’. A read of the I²C slave address register 21 will return a ‘0’ at the MSB.

PWM Interface

The AS5048 provides a pulse width modulated output (PWM), whose duty cycle is proportional to the measured angle. The PWM frequency is internally trimmed to an accuracy of ±10% over full temperature range. This tolerance can be cancelled by measuring the complete duty cycle.

The PWM signal consists of different sections:

• Init: 12 clocks → PWM = ‘high’

• Error_n: 4 clocks → PWM = ‘not(system_error)’

• Data: 4095 clocks → PWM = ‘angle_zero’ / ‘low’ (in case of error)

• Exit: 8 clocks → PWM = ‘low’

In case of an error the data section is set to zero.

Figure 33: PWM Format


Figure 34:

PWM Period and Resolution

ParameterSymbolValueUnit
PWM FrequencyF_PWM1KHz
PWM Pulse periodT_PWM4119bit

Application Information

Programming of the AS5048

Programming of the Zero Position: The absolute angle position can be permanent programmed over the interface. This could be useful for random placement of the magnet on the rotation axis. A readout at the mechanical zero position can be performed and written back into the IC. With permanent programming the position is non-reversible stored in the IC. This programming can be performed only once.

To simplify the calculation of the zero position it is only needed to write the value in the IC which was read out before from the angle register.

Programming Sequence with Verification: To program the zero position is needed to perform following sequence:

  1. Write 0 into OTP zero position register to clear

  2. Read angle information

  3. Write previous read angle position into OTP zero position register

Now the zero position is set.

If you want to burn it to the OTP register send:

  1. Set the Programming Enable bit in the OTP control register

  2. Set the Burn bit to start the automatic programming procedure

  3. Read angle information (equals to 0)

  4. Set the Verify bit to load the OTP data again into the internal registers

  5. Read angle information (equals to 0)

The programming can either be performed in 5V operation using the internal LDO, or in 3V operation but using a minimum supply voltage of 3.3V. In case of 3V operation, also a 10μF capacitor is required on the VDD3 pin.

Programming the I²C Slave address: For informations of programming the I²C Slave address please refer to our application note covering this topic.

Diagnostic Functions of the AS5048

The AS5048 provides diagnostics functions of the IC and also diagnostic functions of the magnetic input field

Following diagnostic flags are available:

See Figure 22 register address x3FFD (AS5048A) or Figure 31 register address 251 dec (AS5048B)

• OCF (Offset Compensation Finished), logic high indicates the finished Offset Compensation Algorithm. After power up the flag remains always to logic high.

• COF (CORDIC Overflow), logic high indicates an out of range error in the CORDIC part. When this bit is set, the angle and magnitude data is invalid. The absolute output maintains the last valid angular value.

• COMP low, indicates a high magnetic field. It is recommended to monitor in addition the magnitude value.

• COMP high, indicated a weak magnetic field. It is recommended to monitor the magnitude value.

Choosing the Proper Magnet

The AS5048 works with a variety of different magnets in size and shape. A typical magnet could be 6-8 mm in diameter and ≥2.5mm in height The magnetic field strength perpendicular to the die surface has to be in the range of ±30mT … ±70mT (peak).

The magnet’s field strength should be verified using a gauss-meter. The magnetic flux $\mathsf { B } _ { Z }$ at a given distance, along a concentric circle with a radius of 1.1mm (R1), should be in the range of ±30mT… ±70mT.

Figure 35:
Typical Magnet and Magnetic Flux Distribution

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 36:
Defined Chip Center and Magnet Displacement Radius

Magnet Placement

The magnet’s center axis should be aligned within a displacement radius $\mathsf { R _ { d } }$ of 0.25 mm (larger magnets allow more displacement e.g. 0.5 mm) 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 The typical distance $" z "$ between the magnet and the package surface is 0.5mm to 2.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 indication flags.

Figure 37:
Vertical Placement of the Magnet

Mechanical Data

The internal Hall elements are placed in the center of the package on a circle with a radius of 1.1 mm.

Figure 38: Hall Element Positions

Note(s):

  1. All dimensions in mm.

  2. Die thickness 203μm nom.

  3. Adhesive thickness 30 ± 15μm.

  4. Leadframe downset $1 5 2 \pm 2 5 { \mu \mathrm { m } } .$

  5. Leadframe thickness 125 ± 8 μm.

Package type: TSSOP14

Figure 39: Package Markings for AS5048A & AS5048B

AS5048A YYWWMZZ amu

AS5048B YYWWMZZ amu

Figure 40: Package Code YYWWMZZ

YYWWMZZ
Last two digits of the manufacturing yearManufacturing weekPlant identifierLetters for free traceability

Figure 41:14-Lead Thin Shrink Small Outline Package TSSOP-14

SymbolMinNomMax
A--1.20
A10.05-0.15
A20.801.001.05
b0.19-0.30
c0.09-0.20
D4.905.005.10
E-6.40 BSC-
E14.304.404.50
e-0.65 BSC-
L0.450.600.75
L1-1.00 REF-
SymbolMinNomMax
R0.09--
R10.09--
S0.20--
θ10°-8°
θ2-12 REF-
θ3-12 REF-
aaa-0.10-
bbb-0.10-
ccc-0.05-
ddd-0.20-
N14

VIEW C

  1. Dimensioning & toleranceing confirm to ASME Y14.5M-1994.

Note(s):

  1. All dimensions are in millimeters. Angles are in degrees.

Ordering & Contact Information

The devices are available as standard products.

Figure 42: Ordering Information

Ordering CodePackageDescriptionDelivery Form
AS5048A-HTSPTSSOP 1414 –Bit Programmable Magnetic Rotary Encoder with SPI-InterfaceTape &amp; Reel
AS5048B-HTSPTSSOP 1414 –Bit Programmable Magnetic Rotary Encoder with I2C-InterfaceTape &amp; 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

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.

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.

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.

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.

Document Status

Document StatusProduct StatusDefinition
Product PreviewPre-DevelopmentInformation 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
Preliminary DatasheetPre-ProductionInformation 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
DatasheetProductionInformation 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
Datasheet (discontinued)DiscontinuedInformation 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

Revision Information

Changes from 1-09 (2016-Nov-15) to current revision 1-11 (2018-Jan-29)Page
1-09 (2016-Nov-15) to 1-10 (2018-Jan-25)
Updated Figure 54
1-10 (2018-Jan-25) to 1-11 (2018-Jan-29)
Updated Figure 65

Note(s):

  1. Correction of typographical errors is not explicitly mentioned.

  2. Page and figure numbers for the previous version may differ from page and figure numbers in the current revision

Content Guide

1 General Description 1 Key Benefits & Features 2 Applications 2 Block Diagram 4 Pin Assignments 6 Absolute Maximum Ratings 7 Electrical Characteristics 7 Operating Conditions 7 DC/AC Characteristics for Digital Inputs and Outputs 8 Electrical System Specifications 9 Functional Description 10 Operation 10 Supply Voltage Configuration 10 SPI Interface 10 SPI Interface Signals (4-Wire Mode, Wire_mode = 1) 12 SPI Timing 13 SPI Connection to the Host μC 13 Single Slave Mode 13 3 Wire Mode (read only) 14 Daisy Chain, 4 Wire 14 SPI Communication Command Package 15 Read Package (Value Read from AS5048A) 15 Write Data Package (Value Written to AS5048A) 16 Register Description 18 SPI Interface Commands 18 READ Command 18 WRITE Command 19 CLEAR ERROR FLAG Command 20 NOP Command 21 I²C Interface 21 I²C Electrical Specification 22 I²C Timing 24 Register Table 26 I²C Slave address 27 PWM Interface

28 Application Information 28 Programming of the AS5048 29 Diagnostic Functions of the AS5048 30 Choosing the Proper Magnet 31 Physical Placement of the Magnet 31 Magnet Placement 32 Mechanical Data

33 Package Drawings & Markings 35 Ordering & Contact Information 36 RoHS Compliant & ams Green Statement 37 Copyrights & Disclaimer 38 Document Status 39 Revision Information

Extracted Images

Figures and diagrams from the PDF

Preview the extracted datasheet assets and open any image in a separate tab for closer inspection.

0dd841478a1030eb04f7cdf4eee1dd7a2d29897f980b7861cfa4307430723762.jpg

0dd841478a1030eb04f7cdf4eee1dd7a2d29897f980b7861cfa4307430723762.jpg

c06d7fd736f2faa83a4e5e76d13e9a8e560b126e319bfa1f6cc14b6a4eab9582.jpg

c06d7fd736f2faa83a4e5e76d13e9a8e560b126e319bfa1f6cc14b6a4eab9582.jpg

a74d10aa0cf63f674f3fd407f774ad03edd71a19ddb2a5cdc8526ec7afb48864.jpg

a74d10aa0cf63f674f3fd407f774ad03edd71a19ddb2a5cdc8526ec7afb48864.jpg

2f31d4fc1251d137a97fb2560a67a15fc8bee642bda2b010a85ebf1918c0d477.jpg

2f31d4fc1251d137a97fb2560a67a15fc8bee642bda2b010a85ebf1918c0d477.jpg

40b1fbd4a0c0501fbca870c0b08de2007e04bccafa63719bc7162dda482cec40.jpg

40b1fbd4a0c0501fbca870c0b08de2007e04bccafa63719bc7162dda482cec40.jpg

9e1c58135d229e29a381bf2576c7bbe9f2f8f71ddb13d8e226a7d7b5b1abfa69.jpg

9e1c58135d229e29a381bf2576c7bbe9f2f8f71ddb13d8e226a7d7b5b1abfa69.jpg

b02273b314110ae300e455d6d9015ff98059914db58c3b2a0130ba87368ac162.jpg

b02273b314110ae300e455d6d9015ff98059914db58c3b2a0130ba87368ac162.jpg

1ec6a2074219201443ded0e7bc047adfe1acbf227cf1d0285f0074f3a21ced45.jpg

1ec6a2074219201443ded0e7bc047adfe1acbf227cf1d0285f0074f3a21ced45.jpg

671ef951e7d0f88b10d9b1cc6ec543539bfc5867a24690ab95acc785948daf2e.jpg

671ef951e7d0f88b10d9b1cc6ec543539bfc5867a24690ab95acc785948daf2e.jpg

5b708301e5f3faf45a10b8a5004b57050b2b304368b7e4e2505913e4ad898e42.jpg

5b708301e5f3faf45a10b8a5004b57050b2b304368b7e4e2505913e4ad898e42.jpg

2282b97b2a3af6ff0a2ec9a947d0a186d2b866cecc867445c13eada6ded7cd75.jpg

2282b97b2a3af6ff0a2ec9a947d0a186d2b866cecc867445c13eada6ded7cd75.jpg

670f38ddc3a9990f3432bb903ad60b4b89f27f38fe020d079bdadb0d0a67f1e7.jpg

670f38ddc3a9990f3432bb903ad60b4b89f27f38fe020d079bdadb0d0a67f1e7.jpg

6f7bd47c7879fcf4b692315d346a853aa3a182010332b807ce00970eed41f572.jpg

6f7bd47c7879fcf4b692315d346a853aa3a182010332b807ce00970eed41f572.jpg

bc1ba23afca819981e1a11bba9d6185e12995d9525c4168780f941fa5ed9026c.jpg

bc1ba23afca819981e1a11bba9d6185e12995d9525c4168780f941fa5ed9026c.jpg

6bb2312913ba127e1520014dcc76461505d8d70796459a0bd50271a142582f9f.jpg

6bb2312913ba127e1520014dcc76461505d8d70796459a0bd50271a142582f9f.jpg

a88aa5f1bf98d8295017727ec90fbad0c76d64be8f725fb0b696956551ac493e.jpg

a88aa5f1bf98d8295017727ec90fbad0c76d64be8f725fb0b696956551ac493e.jpg

6fff9016f8379ef518dce3b8bde5c7ac53429e258ddf14598e5eb4bb45329ec3.jpg

6fff9016f8379ef518dce3b8bde5c7ac53429e258ddf14598e5eb4bb45329ec3.jpg

096d3ce7172b2efbd503cab05eca7ff1eec6bc5ecb967e9f77739cfa9fefe05c.jpg

096d3ce7172b2efbd503cab05eca7ff1eec6bc5ecb967e9f77739cfa9fefe05c.jpg

cb4fd0debd779eec4f541b9173ab1bee7861e819df5fca0f50029172612d3d3e.jpg

cb4fd0debd779eec4f541b9173ab1bee7861e819df5fca0f50029172612d3d3e.jpg

89b50a4c6f7089282c46f2c3277600fcb62d7320be44236762943480b10586ab.jpg

89b50a4c6f7089282c46f2c3277600fcb62d7320be44236762943480b10586ab.jpg

608ab5e8d157960b10951ce17ba51a17ff6d7eda358f08662c3da0c71e93bcee.jpg

608ab5e8d157960b10951ce17ba51a17ff6d7eda358f08662c3da0c71e93bcee.jpg

1b08683079093c511cc73232ff233ad2b9cd7eb9dd76884b29d8de432cd3f929.jpg

1b08683079093c511cc73232ff233ad2b9cd7eb9dd76884b29d8de432cd3f929.jpg

7bbaebb12b96c6d279493cae30baeb8782a4bb2f75bcfb633e7445eb3e82eb08.jpg

7bbaebb12b96c6d279493cae30baeb8782a4bb2f75bcfb633e7445eb3e82eb08.jpg

e6e9a1d5d7ac8599975f70632b2a26c0e21d3b89bdcae177eeac1179b98a7c4c.jpg

e6e9a1d5d7ac8599975f70632b2a26c0e21d3b89bdcae177eeac1179b98a7c4c.jpg

fce7458b5c90ac01bcd83c6901c9a5bd1f6ee49ad23b1c36f81874b0b5bfc6e4.jpg

fce7458b5c90ac01bcd83c6901c9a5bd1f6ee49ad23b1c36f81874b0b5bfc6e4.jpg

e8ef65dc7423e5c9a9c1d84407e84731d16982dfbe0cf909b887349baabf6593.jpg

e8ef65dc7423e5c9a9c1d84407e84731d16982dfbe0cf909b887349baabf6593.jpg

bfc6f7c9e19dc74c7b9af1306a98ad64a8c6ec3ed43d1f071fc139273fa03595.jpg

bfc6f7c9e19dc74c7b9af1306a98ad64a8c6ec3ed43d1f071fc139273fa03595.jpg

9e047e5795aa513840d3329051fa79fade7ddde40a137afd10b84728aa132a79.jpg

9e047e5795aa513840d3329051fa79fade7ddde40a137afd10b84728aa132a79.jpg

4fc9ce772154068ab8e00171f9f2b6a1253ee5cc6abb144ea5dc144295b74542.jpg

4fc9ce772154068ab8e00171f9f2b6a1253ee5cc6abb144ea5dc144295b74542.jpg

d67c1553b5f1d51669dc90caffc5b932b05766f882881ad1ebb4a42f158f2662.jpg

d67c1553b5f1d51669dc90caffc5b932b05766f882881ad1ebb4a42f158f2662.jpg

e3af3ceedfcce74003aa9a3ce61ed3197b7ca51ac1323cbc7cd6952d2b108113.jpg

e3af3ceedfcce74003aa9a3ce61ed3197b7ca51ac1323cbc7cd6952d2b108113.jpg

d54b32f841cb24ab2da0eed1ce63117076755700c1ee412b35a96c3c3c46d9ea.jpg

d54b32f841cb24ab2da0eed1ce63117076755700c1ee412b35a96c3c3c46d9ea.jpg

4a657a92199cc9b1ca139315fb345dcf3961fd8cfc251dc720e0ea33eee2b0cb.jpg

4a657a92199cc9b1ca139315fb345dcf3961fd8cfc251dc720e0ea33eee2b0cb.jpg

636e58204a36911c2ce55a9124d05b1e6897aacf282aaf3629b0c4d209c6ea12.jpg

636e58204a36911c2ce55a9124d05b1e6897aacf282aaf3629b0c4d209c6ea12.jpg

a45e4064283c3f94d2a447016583a51f9466ef9ecceaacaf73a031ea84750120.jpg

a45e4064283c3f94d2a447016583a51f9466ef9ecceaacaf73a031ea84750120.jpg

9065e06aa89aebfeb59e68d4c15a76025c30379288410b913012d128be64c4b5.jpg

9065e06aa89aebfeb59e68d4c15a76025c30379288410b913012d128be64c4b5.jpg

0d0d4f94725541745c1f547b697023081b396f2226f78728db99f29a3c8a3e93.jpg

0d0d4f94725541745c1f547b697023081b396f2226f78728db99f29a3c8a3e93.jpg

66fb67f682eb6a04d4ff4cd6494133c65cd0c3cfae3e1a233dda8f663b4ee319.jpg

66fb67f682eb6a04d4ff4cd6494133c65cd0c3cfae3e1a233dda8f663b4ee319.jpg

a06a4358bb5825365ce554f5ecd6b3c8d6068e015f0b5f7cede280fadf514e15.jpg

a06a4358bb5825365ce554f5ecd6b3c8d6068e015f0b5f7cede280fadf514e15.jpg

96f378d83b5575e2336715a05978b2366851eae722d6879678e1095490f6c7ba.jpg

96f378d83b5575e2336715a05978b2366851eae722d6879678e1095490f6c7ba.jpg

d93626299992484fa168a4f98c75f0e47072036dafa4a54be209dd0c749270d1.jpg

d93626299992484fa168a4f98c75f0e47072036dafa4a54be209dd0c749270d1.jpg

398db4216ee007ba9c5e160271131b90d4561c4305fc3eb392e322f3f307c237.jpg

398db4216ee007ba9c5e160271131b90d4561c4305fc3eb392e322f3f307c237.jpg

9705e3edffd476b76fc29cbd1c8cb684700ffd128a6b25af1e77f5b3c1fe3381.jpg

9705e3edffd476b76fc29cbd1c8cb684700ffd128a6b25af1e77f5b3c1fe3381.jpg

559d7649c6cf6958bcd42c7f85fe6a48b85b8065ac7e3f4a9f476fe985e21e08.jpg

559d7649c6cf6958bcd42c7f85fe6a48b85b8065ac7e3f4a9f476fe985e21e08.jpg

b035e0053912d56983959e3b7b4fd86ddacc5c490ed6c91f9ebbdb5aa291cd51.jpg

b035e0053912d56983959e3b7b4fd86ddacc5c490ed6c91f9ebbdb5aa291cd51.jpg

c0953f2689af8c5b6767169ce652b819d6a30b10165fe89bb065684560def15f.jpg

c0953f2689af8c5b6767169ce652b819d6a30b10165fe89bb065684560def15f.jpg

6de34efc7138b8f8f40d4e5b1a9750a8f4632ef139da132d5a5569955f2f5934.jpg

6de34efc7138b8f8f40d4e5b1a9750a8f4632ef139da132d5a5569955f2f5934.jpg

4f10497e2463e0f8499b3dbbbb37ae844a6dba940e3699d524c00897bd3cdffc.jpg

4f10497e2463e0f8499b3dbbbb37ae844a6dba940e3699d524c00897bd3cdffc.jpg

bd0695a5315df5f16e4b9f1c4055574da26991816753d3a6da334357e89389b6.jpg

bd0695a5315df5f16e4b9f1c4055574da26991816753d3a6da334357e89389b6.jpg

9952ca49b02334483e0af7f2a76c2c2698ee3c6ef989e3bded6dc1f4c5aed6de.jpg

9952ca49b02334483e0af7f2a76c2c2698ee3c6ef989e3bded6dc1f4c5aed6de.jpg

55e781a31e0acf31fc07f99593ebc423e727881ffe63a7e54729dc3fcb48d29f.jpg

55e781a31e0acf31fc07f99593ebc423e727881ffe63a7e54729dc3fcb48d29f.jpg

Agent APIs

Use this datasheet from any agent

Send the page, markdown, chunks, or search endpoint to ChatGPT, Claude, embedr-app, or your own tooling.