Spark Logic

AS5048A magnetic rotary encoder pinout

The AS5048A reads the absolute angle of a rotating diametrically magnetized magnet. It reports 14-bit angular position over SPI and provides a separate PWM output.

TSSOP-14

14 contacts Current package

ams OSRAM·

TSSOP-14 pinout

TSSOP-14 · Face the package marking. Start at the pin-1 index and follow the numbered leads.
Selected pin details

1 · CSn

Input · Control

Active-low SPI chip select. Return it high after every 16 clocks to reset the frame logic.

Wiring requirements

  • Each SPI frame. Wait at least 350 ns after CSn falls before the first rising clock edge. Raise CSn at least 50 ns after the final falling edge and keep it high for at least 350 ns between frames.

  • Three-wire angle reads. Hold MOSI high locally. The host uses CSn, CLK and MISO, and receives the angle reply in the following frame.

ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.

Electrical limits · Link to this pin

Four-wire SPI · 3.3 V supply

  • +3.3 V
    • Host 3.3 V
    • C1.1
    • C2.1
  • Ground
    • Host ground
    • C1.2
    • C2.2
  • Chip select
    • →
    • Host CS
  • Serial clock
    • →
    • Host SCK
  • Encoder to host
    • →
    • Host MISO
  • Host to encoder
    • →
    • Host MOSI
C1 100 nF between +3.3 V and Ground+3.3 VC1 100 nFGround
C2 10 µF between +3.3 V and Ground+3.3 VC2 10 µFGround

Connection guide

All 14 pins

PinSignalDirectionFunction
1CSn InputInput Active-low SPI chip select. Return it high after every 16 clocks to reset the frame logic.
2CLK InputInput SPI mode 1 clock. The encoder updates MISO on rising edges and samples MOSI on falling edges.
3MISO OutputOutput Serial data from sensor to host. The output high level is referenced to VDDCORE in both supply modes.
4MOSI InputInput Serial data from host to sensor in four-wire SPI. Hold high at a compatible logic level for three-wire angle reads.
5TEST Tie to groundTie to ground This test pin must connect to ground.
6TEST Leave openLeave open Leave this test contact open in normal operation.
7TEST Leave openLeave open Leave this test contact open in normal operation.
8TEST Leave openLeave open Leave this test contact open in normal operation.
9TEST Leave openLeave open Leave this test contact open in normal operation.
10TEST Leave openLeave open Leave this test contact open in normal operation.
11VDD5V Supply inputSupply input Apply 3.0–3.6 V with VDD3V tied to VDD5V, or 4.5–5.5 V with the two pins separate. Fit 100 nF to GND in either mode.
12VDD3V Supply or regulator outputSupply or regulator output Tie to VDD5V for 3.3 V operation. In 5 V operation, fit the specified 10 µF capacitor and attach no external load.
13GND Supply returnSupply return Connect to the common ground plane or bench return.
14PWM Push-pull outputPush-pull output Pulse-width-modulated angle output referenced to VDDCORE. Leave open if unused.

Signal assignments

SPI

Four-wire register access or three-wire angle reads with MOSI held high. Each frame is 16 bits with even parity. The reply arrives in the following frame.

PWM

Angle can also be measured from the PWM timing without using the serial interface.

Electrical limits

ParameterLimitConditions and source
Supply configurations3.0–3.6 V or 4.5–5.5 V3.0–3.6 V or 4.5–5.5 V Select the wiring for VDD3V according to the supply configuration. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
Angle code14 bits · 0 to 1638314 bits · 0 to 16383 One turn is 360°, so one ideal code step is approximately 0.022°. Refer to the accuracy specifications for angle error. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
Digital inputsVIH ≥ 0.7 × VDDCORE · VIL ≤ 0.3 × VDDCOREVIH ≥ 0.7 × VDDCORE · VIL ≤ 0.3 × VDDCORE CSn, CLK and MOSI thresholds. VDDCORE is 3.0–3.6 V in the operating range. Use compatible host levels. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
Digital outputsVOH ≥ VDDCORE − 0.5 V · VOL ≤ 0.4 VVOH ≥ VDDCORE − 0.5 V · VOL ≤ 0.4 V MISO and PWM in either supply mode. The worst-case guaranteed high is 2.5 V. Figure 9 lists 50 pF maximum capacitive load and 4 mA maximum output current. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
SPI clock10 MHz maximum10 MHz maximum Minimum CLK high and low times are 50 ns each. Allow 20 ns for MOSI setup and up to 20 ns for MISO to become valid. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
SPI transfer16 bits · even parity16 bits · even parity Read the response and error flag on the frame after the command. ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.

Models and documents

This map covers the SPI AS5048A. The I²C AS5048B has different functions on pins 1–4.

AS5048A
SPI and PWM version.