austriamicrosystems AG
is now
ams AG
The technical content of this austriamicrosystems application note is still valid.
Contact information:
Headquarters:
ams AG
Tobelbaderstrasse 30
8141 Unterpremstaetten, Austria
Tel: +43 (0) 3136 500 0
e-Mail:
ams_sales@ams.com
Please visit our website at
www.ams.com
AS5040 8-bit Programmable Magnetic Rotary Encoder
AS5050 / AS5055
Programmable Magnetic Rotary Encoder
AS5050-AB-v1.1
Adapterboard
OPERATION MANUAL
The absolute angle measurement provides instant indication
of the magnet’s angular position with a resolution of:
-
AS5050: 0.35° = 1024 positions per revolution
-
AS5055: 0.09° = 4096 positions per revolution
The AS5055 is available in a small QFN 16-pin 4x4x0.85mm
package and specified over an operating temperature of -20
to +85°C.
1 VDD General Description
The AS5050/AS5055 is is a single-chip magnetic rotary
encoder IC with low voltage and low power features.
It includes 4 integrated Hall elements, a high resolution ADC
and a smart power management controller.
The angle position, alarm bits and magnetic field information
are transmitted over a standard 3-wire or 4-wire SPI interface
to the host processor.
2 The AS5050/AS5055 Adapter board
2.1
Board description
The AS5050/AS5055 adapter board is a simple circuit allowing test and evaluation of the AS5050/AS5055 rotary encoder quickly
without building a test fixture or PCB.
The PCB can be attached to a microcontroller or to the AS5050/AS5055-DB Demoboard as external device.
J1 connector
Power supply
SPI
3 wire – 4 wire
SPI
communication
selection
INT/ output EN input
ch
ni
c
Te
Revision 1.1, May 2010
www.austriamicrosystems.com
am
al
co s
A
nt G
en
ts
til
lv
AS5050/AS5055
encoder
Figure 1: AS5050 Adapterboard
al
id
4 x 2.6mm
mounting holes
Page 1 of 10
AS5050 / AS5055 Magnetic Rotary Encoder
Adapterboard Operation Manual
2.2
Mounting the AS5050 adapter board
Bearing
Casing
Rotating shaft and magnet holder
Not ferromagnetic (plastic, brass, copper,
stainless steel, aluminum…)
Spacer
M2~M2.5 Screw + nut
AS5050-AB PCB
Te
A diametric magnet must be placed over on under the AS5050/AS5055 encoder, and should be centered on the middle of the
package with a tolerance of 0.5mm.
The airgap between the magnet and the encoder casing should be maintained in the range 0.5mm~2mm.
The magnet holder must not be ferromagnetic. Materials as brass, copper, aluminum, stainless steel are the best choices to make
this part.
Revision 1.1, May 2010
www.austriamicrosystems.com
ch
ni
c
am
al
co s
A
nt G
en
ts
til
lv
Figure 2: AS5050 adapter board mounting and dimension
Page 2 of 10
al
id
AS5050 / AS5055 Magnetic Rotary Encoder
Adapterboard Operation Manual
3 AS5050/AS5055 and adapter board pinout
MISO
MOSI
AS505x
Figure 3: AS5050/AS5055 adapter board connectors and encoder pinout
Pin#
Board
Pin#
AS5050/
AS5055
Symbol
Board
J1 - 1
J1 - 2
J1 - 3
J1 - 4
J1 - 5
J1 - 6
J1 - 7
J1 - 8
JP1
JP2
7
9
10
11
15
16
8
8
7
1
VDDp
VDD
INT/
GND
MOSI
MISO
SCK
SS/
Wire_Mode
INT_EN/
Pin types: DO_OD
DO
DI_PD
DI_PU
digital output open drain
digital output
digital input pull-down
digital input pull-up
Te
Revision 1.1, May 2010
www.austriamicrosystems.com
ch
ni
c
am
al
co s
A
nt G
en
ts
til
lv
Type
Description
S
S
S
Peripheral power supply, 1.8V ~ VDD
Analog and digital power supply, 3.0 ~ 3.6V
Supply ground
DIO
DI
DO
Interrupt output. Active LOW, when conversion is finished
SPI bus data input
SPI bus data output
DI_PD
DI_PD
S
SPI Clock Schmitt trigger
SPI Slave Select, active LOW
3 wire mode or 4 wire mode SPI communication
Close: enable INT/ output
DO_OD
Pin 1 is the AS505x En_INT/ input. Can be used for interrupt daisy chain (see chapter 4.3)
Table 1: Pin description
S
DI
DO_T
ST
supply pin
digital input
digital output / tri-state
Schmitt-Trigger input
al
id
Page 3 of 10
SS/
J1
SCK
JP2
GND
VDD
INT/
VDDp
JP1
Int-EN/
3W – 4W
AS5050 / AS5055 Magnetic Rotary Encoder
Adapterboard Operation Manual
4 Operation use cases
4.1
One device SPI mode, unidirectional – 3 wire
The AS5050-AB can be directly connected to an industry
standard SPI port of a microcontroller. The minimum
connection requirement for unidirectional communication
(angle + alarm values reading) between the
microcontroller and the AS5050/AS5055 are MISO, SCK,
SS/.
The angle will be read at each 16-bit SPI transfer. See
AS5050/AS5055 datasheet register table, register
3FFFh.
This value must be read with a period of 600µs or more
in order to get a new angle position.
4.2
One device SPI mode,
bidirectional – 4 wire
Te
Revision 1.1, May 2010
www.austriamicrosystems.com
ch
ni
c
am
al
co s
A
nt G
en
ts
til
lv
The INT/ signal can be attached o the microcontroller to
indicate that a new angle position has been calculated.
If other registers than only angle value have to be read,
or in order to write registers into the AS5050/AS5055, the
signal MOSI is necessary.
The INT/ signal can be attached o the microcontroller to
indicate that a new angle position has been calculated.
al
id
Page 4 of 10