deckle studio
Open the editor
Behavioural mixed-signal modelAS5047P-ATSMas5047p

AS5047P (14-bit magnetic angle encoder, SPI)

ams AS5047P: absolute on-axis magnetic rotary encoder, 14 bit (0.022°) over SPI (mode 1, up to 10 MHz, 16-bit frames with even parity; the answer to a read comes with the next frame). Read ANGLECOM (0x3FFF, command word 0xFFFF). A diametral magnet on the shaft end, 0.5–2.5 mm above the chip. 3.3 V: VDD and VDD3V3 together, 1 µF + 100 nF; 5 V: VDD 5 V, 1 µF at VDD3V3. In the simulation it reads the rotor angle of the motor named in "Motor" (divided by the gear ratio for an output-side encoder).

CSnCLKMISOMOSIVDDVDD3V3ABI/PWMUVW/PWMGNDTESTAS5047P-ATSM
Schematic symbol

Key data

Category
ICs
Simulation model
Behavioural mixed-signal model
Manufacturer part number
AS5047P-ATSM
Reference prefix
U
Pins
14
Land pattern
TSSOP-14_4.4x5mm_P0.65mm

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
as5047p
Supply pins
11 / 13

Pins 14

PinNameUse
1CSnInput pinLogic input: never leave open (tie unused inputs to VCC or GND)
2CLKInput pinLogic input: never leave open (tie unused inputs to VCC or GND)
3MISOOutput pinLogic output: drives the next input; do not tie outputs together
4MOSIInput pinLogic input: never leave open (tie unused inputs to VCC or GND)
11VDDSupply pinSupply input: decouple with 100 nF close to the pin
12VDD3V3Supply pinSupply input: decouple with 100 nF close to the pin
7AOutput pinLogic output: drives the next input; do not tie outputs together
6BOutput pinLogic output: drives the next input; do not tie outputs together
14I/PWMOutput pinLogic output: drives the next input; do not tie outputs together
10UOutput pinLogic output: drives the next input; do not tie outputs together
9VOutput pinLogic output: drives the next input; do not tie outputs together
8W/PWMOutput pinLogic output: drives the next input; do not tie outputs together
13GNDGround pinGround
5TESTGround pinGround

Parameters 3

Motormotor
Default–

Reference of the motor whose shaft carries the magnet (e.g. M1); empty = the first PMSM motor

Gear ratioratio
Default1

Motor turns per encoder turn: 1 on the rotor, the gearbox ratio for an output-side encoder

Magnet offsetoffset
Default0 °

Angle the encoder reads with the rotor at 0°

PCB

Verified land patternTSSOP-14_4.4x5mm_P0.65mm
PackageLand patternStatusSource
TSSOP-14 · AS5047P-ATSMTSSOP-14_4.4x5mm_P0.65mmVerified land patternKiCad Package_SO:TSSOP-14_4.4x5mm_P0.65mm; AS5047P datasheet v2-00 pin assignment: 1 CSn, 2 CLK, 3 MISO, 4 MOSI, 5 TEST, 6 B, 7 A, 8 W/PWM, 9 V, 10 U, 11 VDD, 12 VDD3V3, 13 GND, 14 I/PWM
  • 5 To GND
  • 11 3.3 V (tied to VDD3V3) or 5 V, with 1 µF + 100 nF
  • 12 1 µF; to VDD in 3.3 V operation