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 packageFour-wire SPI · 3.3 V supply
RequiredTie 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
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
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
1 · CSn
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.
- Chip select
- →
- Host CS
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.
- AS5048A manufacturer documentation· ams DS000298 v1-11, Figures 4–5 and 8–9, 11, 14–16 and 23.
