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

Three-wire SPI · read angle only

This example uses the 3.3 V supply configuration. Tie the encoder MOSI pin to the common 3.3 V rail. With MOSI held high, each 16-clock frame sends 0xFFFF. Connect the host over CSn, CLK and MISO.

  • +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
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.
  • Begin checking angle data on the second frame. Each reply corresponds to the preceding frame. Check parity and the error flag while rotating the magnet.

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

TSSOP-14 wiring map

External wiring example · Three-wire SPI · read angle only

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

3 · MISO

Output · Outputs

Serial data from sensor to host. The output high level is referenced to VDDCORE in both supply modes.

Wiring requirements

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

  • Either supply mode. The guaranteed output high is at least VDDCORE − 0.5 V. Use a receiver that accepts that level or add level translation.

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.