Spark Logic

AS5048A magnetic rotary encoder connection guide

AS5048A magnetic rotary encoder (TSSOP-14) connection guide. Four-wire SPI · 3.3 V supply. Four-wire SPI · 5 V supply.

TSSOP-14

14 contacts Current package

ams OSRAM·

Four-wire SPI · 3.3 V supply

Required

Tie VDD5V and VDD3V together on the 3.3 V rail. Fit both bypass capacitors and ground test pin 5. Center a diametrically magnetized magnet over the sensor.

  • +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

Bench checks

  • Start at 1 MHz in SPI mode 1, most significant bit first. Raise CSn after each 16-clock frame and keep it high for at least 350 ns before the next frame.
  • Send 0xFFFF to read address 0x3FFF and clock the reply in the next frame. Check response parity and the error flag, then rotate the magnet and verify that the code wraps once per turn.

ams DS000298 v1-11, Figures 11 and 14–16.

Connection scenarios

Four-wire SPI · 5 V supply

Feed 4.5–5.5 V into VDD5V with its own 100 nF bypass. Fit 10 µF from VDD3V to ground and leave it free of external loads. Share ground with the host. The SPI signals use VDDCORE logic levels even with the 5 V supply.

  • +5 V
    • 5 V supply
    • C1.1
  • Internal regulator output
    • C2.1
  • Ground
    • Host ground
    • Supply return
    • 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 +5 V and Ground+5 VC1 100 nFGround
C2 10 µF between Internal regulator output and GroundInternal regulator outputC2 10 µFGround

Bench checks

  • Start at 1 MHz in SPI mode 1, most significant bit first. Raise CSn after each 16-clock frame and keep it high for at least 350 ns before the next frame.
  • Send 0xFFFF to read address 0x3FFF and clock the reply in the next frame. Check response parity and the error flag, then rotate the magnet and verify that the code wraps once per turn.

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

TSSOP-14 wiring map

External wiring example · Four-wire SPI · 5 V supply

Highlighted contacts are used in the required step or selected circuit. Select a contact to highlight its wiring nets.

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

2 · CLK

Input · Clock inputs / oscillator

SPI mode 1 clock. The encoder updates MISO on rising edges and samples MOSI on falling edges.

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.

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

Connected nets

Electrical limits · Pin in the reference

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.