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.
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.
Active-low SPI chip select. Return it high after every 16 clocks to reset the frame logic.
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.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| 1 | CSn Input | Input | Active-low SPI chip select. Return it high after every 16 clocks to reset the frame logic. |
| 2 | CLK Input | Input | SPI mode 1 clock. The encoder updates MISO on rising edges and samples MOSI on falling edges. |
| 3 | MISO Output | Output | Serial data from sensor to host. The output high level is referenced to VDDCORE in both supply modes. |
| 4 | MOSI Input | Input | Serial data from host to sensor in four-wire SPI. Hold high at a compatible logic level for three-wire angle reads. |
| 5 | TEST Tie to ground | Tie to ground | This test pin must connect to ground. |
| 6 | TEST Leave open | Leave open | Leave this test contact open in normal operation. |
| 7 | TEST Leave open | Leave open | Leave this test contact open in normal operation. |
| 8 | TEST Leave open | Leave open | Leave this test contact open in normal operation. |
| 9 | TEST Leave open | Leave open | Leave this test contact open in normal operation. |
| 10 | TEST Leave open | Leave open | Leave this test contact open in normal operation. |
| 11 | VDD5V Supply input | Supply 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. |
| 12 | VDD3V Supply or regulator output | Supply 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. |
| 13 | GND Supply return | Supply return | Connect to the common ground plane or bench return. |
| 14 | PWM Push-pull output | Push-pull output | Pulse-width-modulated angle output referenced to VDDCORE. Leave open if unused. |
| Parameter | Limit | Conditions and source |
|---|---|---|
| Supply configurations3.0–3.6 V or 4.5–5.5 V | 3.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 16383 | 14 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 × VDDCORE | VIH ≥ 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 V | VOH ≥ 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 maximum | 10 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 parity | 16 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. |
This map covers the SPI AS5048A. The I²C AS5048B has different functions on pins 1–4.