Operation Manual

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: [email protected]
Please visit our website at www.ams.com
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
AS5043
10 BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
ADAPTER PCB OPERATION MANUAL
1 The AS5043 adapter PCB:
am
lc s
on A
te G
nt
st
il
lv
al
id
The AS5043 adapter PCB is a simple circuit allowing customers to test and evaluate the AS5043 rotary encoder
rapidly without having to build their own test fixture or PCB.
The PCB can be used as standalone unit or plugged onto the AS5043 demo board as external encoder.
For Standalone operation, it can be supplied with 3.3V, 5V or 7,5...12V DC supply voltages.
ca
Figure 1: AS5043 Adapter PCB: top and bottom view
Te
ch
ni
Features:
ƒ 100mil connector for direct connection to AS5043 demo board
ƒ Provision for a 600mil DIP socket
ƒ Hole in PCB to center a 6mm magnet at the bottom of the IC
ƒ LED for MagRng output
ƒ On-board 5V linear voltage regulator for 7,5…12V supplies
ƒ 9V battery connector for standalone operation
ƒ Dimensions: 35mm x 37mm (1.38 x 1.46 inch)
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 1 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
4 Pin Description
Pin
Symbol
Type
Description
1
MagRngn
DO_OD
Magnet Field Magnitude RaNGe warning;
active low, indicates that the magnetic
field strength is outside of the
recommended limits.
2
Mode
DI_PD,
ST
Mode input. Select between low noise
(open, low) and high speed (high) mode.
Internal pull-down resistor
3
CSn
DI_PU,
ST
Chip Select, active low; Schmitt-Trigger
input, internal pull-up resistor (~50kΩ)
4
CLK
DI,ST
Clock Input of Synchronous Serial
Interface; Schmitt-Trigger input
5
NC
-
must be left unconnected
al
id
The AS5043 is a system-on-chip, combining
integrated Hall elements, analog front end and
digital signal processing in a single device. It
provides incremental output signals and the
absolute angular position of a magnet that is placed
either above or below the device.
The AS5043 can be configured to specific customer
requirements by programming the integrated OTP
(one time programmable) register. An internal
voltage regulator allows the AS5043 to operate at
either 3.3 V or 5 V supplies.
6
DO
DO_T
Data Output of Synchronous Serial
Interface
7
VSS
S
Negative Supply Voltage (GND)
DI_PD
OTP Programming Input and Data Input
for Daisy Chain mode. Internal pull-down
resistor (~74kΩ).
Should be connected to VSS if not used
Prog_DI
am
lc s
on A
te G
nt
st
il
8
lv
2 General Description
9
DACref
AI
DAC Reference voltage input for external
reference
10
DACout
AO
DAC output (unbuffered, Ri ~8kΩ)
11
FB
Feedback, OPAMP inverting input
Must be left unconnected
12
Vout
AI
AO
13
NC
-
14
NC
-
Must be left unconnected
Figure 2: Typical arrangement AS5043 and magnet
3 Pin Configuration
OPAMP output
15
VDD3V3
S
3V-Regulator Output for internal core,
regulated from VDD5V.Connect to
VDD5V for 3V supply voltage. Do not
load externally.
16
VDD5V
S
Positive Supply Voltage, 3.0 to 5.5 V
ni
ca
AS5043
Table 1: Pin description SSOP16
Te
ch
Figure 3: Pin configuration SSOP16
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 2 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
5 Principle of Operation
1
Circle of Hall elements
on chip: 2.2mm diameter
2.433 mm
Defined
center
2.433 mm
Area of allowed magnet
misalignment: 0.5mm diameter
The AS5043 chip consists of a ring of hall
elements, placed at the center of the IC at a
circle diameter of 2.2mm (86.6mil).
The hall elements pick up the field of a magnet,
placed atop this hall array circle. This
information is digitized and fed into a digital
signal processor (DSP), which calculates the
angle of the magnet with a resolution of 0.0879
degrees or 4096 positions per revolution (10bit)
at a sampling rate of 96µs (10kHz; Default) or
384µs (2.6kHz).
The digital angle information is available in
several formats: as serial 10-bit data stream, as
pulse-width modulated (PWM) signal or as
quadrature incremental signal
am
lc s
on A
te G
nt
st
il
Figure 4:Tolerances of magnet placement
5.1
al
id
3.9 mm
lv
3.9 mm
Magnet considerations
A magnet, having one north / one south pole in the horizontal axis is placed right above the ring of hall elements
(see Figure 2). The magnet does not necessarily need to be circular, it can be rectangular as well, as long as the
north and south pole are arranged horizontally over the center of the hall array ring.
The magnetic field strength along this ring should be in the range of ±45….75 milliTesla (mT).
5.1.1
Magnet size
The size of the magnet should be at least the size of the hall array ring (2.2mm). Smaller magnets are more critical
in terms of misalignment due to the non-linear magnetic field distribution along the circumference of the magnet.
The recommended magnet diameter is 4….6mm
5.1.2
Magnet distance and material
To achieve the required field strength at a reasonable distance (~0.5…5mm), it is recommended to use rare-earth
magnets, such as Samarium-Cobalt (SmCo) or Neodyne-Iron-Boron (NdFeB) magnets.
5.1.3
Magnet misalignment
Non-linearity errors
ch
5.1.4
ni
ca
In theory, the magnet misalignment is not critical for this type of angular measurement. In practice however,
magnets are not perfectly linear. The magnetic field strength does not increase linearly with the radius. As you get
towards the boundary of the magnet, the magnetic field comes to a maximum and then weakens as you move
further away from the center. Therefore, a magnet should be chosen, that is still in the linear range at a <3mm
diameter.
Te
A non-linear magnetic field results in a non-sinusoidal representation of the magnet, which in turn causes nonlinearities in the calculated angle (calculated angle differs from actual angle).
With a perfectly centered magnet, the maximum error is <±0,5 degrees. This error is caused by internal mismatch
and gain errors.
With the recommended 4mm magnet (Bomatec BMN-35H), the maximum error of <±1.4degrees (including
internal errors and temperature related errors) can be achieved while the magnet is off-center by a radius of
<0.25mm (see
Figure 4).
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 3 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
am
lc s
on A
te G
nt
st
il
lv
al
id
6 AS5043 Adapter PCB Schematic:
Figure 5: AS5043 Adapter PCB schematic
For normal operation, the only required external components are the buffer cap at VDD3V3 (C4) and the pull-down
resistor for CSn (R7; 0Ω….4k7).
The PCB operates at several power supply levels:
Power Supply options:
ext. voltage regulator
IC2 or IC3
not required *)
VDD5V and VDD3V3
VDD5V
not required *)
ext. voltage regulator
3.3V type, e.g. LE33C
(pin 1, J2)
(ST Micro)
7,5…20V
ext. voltage regulator
5.0V type
(pin 1, J2)
e.g. 75L05
*) if already installed, external voltage regulator can be left installed.
digital I/O
level
3.0….3.6V
4.5….5.5V
3.3V
5.0V
remark
short VDD5V and
VDD3V3
short VDD5V and
VDD3V3
PCB delivery status
Te
ch
ni
4,5….5,5V
7,5…20V
apply at
ca
Supply
voltage
3,0….3,6V
Figure 6: how to connect various power supply levels to the adapter PCB
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 4 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
Output modes:
• Absolute angle information
To access the 10-bit absolute angle information, an external microcontroller must be connected as
shown in Figure 5. Make sure that the controller is able to drive the CSn pin with the connected pulldown
resistor (R7). If necessary, remove this resistor.
The clock rate can be as high as 1MHz. There is no minimum clock rate. Data can also be clocked
manually.
The digital I/O's of the AS5043 are buffered by VDD5V, therefore the digital I/O's of the controller should
be at the same voltage level (see power supply options table).
Analog output
No additional components are required. The voltage at the Vout pin (pins 3 of J1) indicates the position
of the encoder. (see datasheet).
al
id
•
am
lc s
on A
te G
nt
st
il
lv
Programming (zapping) the Chip.
For programming the AS5043, 3 digital signals are required: CSn, Prog and CLK (see datasheet). For permanent
writing, VPROG must be elevated to 7.5V during the programming cycle.
For immediate programming, this PCB can be connected directly to the AS5043 demo board (available
separately), where all the programming timings are generated by the onboard microcontroller.
AS5043 adapter PCB layout and component placement:
The PCB has several connection options. All required
pins are accessible via the two 100mil- connectors J1
and J2.
These connectors are 600mil apart, which allows them to
be soldered to a wide 16-pin DIL IC socket for easier
access or ribbon cable connection.
Furthermore, J2 (pins 3..9) fit to the AS5043 demo board
and allow this PCB to be used as external encoder.
The hole in the PCB underneath the chip allows
centering of a 6mm diameter magnet.
AS5043 adapter board: top view
Te
ch
ni
ca
A Vout Led and voltage regulators are optional.
Minimum required components are C4 (1µF) and the
CSN pull-down R7 (0…4k7).
Layout: Bottom View
Revision A.02, 04. Jul 06
Layout: Bottom Components
www.austriamicrosystems.com
Page 5 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
AS5043 adapter PCB dimensions:
1.46
(37.0)
al
id
1.30
(33.1)
Ø 0.24
(6.1)
lv
0.78
(19.75)
0
am
lc s
on A
te G
nt
st
il
Ø 0.12 (3.0)
(4 places)
0.12
(3.1)
1.26
(32.1)
0.53
(13.35)
1.38
(34.95)
0.11
(2.74)
0
All Dimensions in inch (mm)
Figure 7: AS5043 adapter board dimensions.
7 Supporting tools
ca
austriamicrosystems provides the following tools for developments using the AS5043 rotary encoder IC:
AS5043 Demoboard (see Figure 8)
AS5043 Demoboard Operation Manual
AS5043 Demoboard Software
AS5043 Adapter PCB (see Figure 1)
Te
ch
ni
These supporting tools are available at local distributors
http://www.austriamicrosystems.com/06contactcenter/sales_start.htm
or can be ordered online:
http://www.austriamicrosystems.com/03products/products_detail/AS5043/description_AS5043.htm
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 6 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
8 AS5043 Demoboard
The AS5043 Demoboard is a complete rotary encoder system with built-in microcontroller, USB interface , 4-digit
7-segment display and a LED displaying the magnitude range.
It also supports external AS5043 applications, such as the AS5043 adapter PCB or in-system AS5043 customer
applications that can be connected to the demoboard and displayed, modified and permanently programmed
using the AS5043 Demoboard Software.
The AS5043 demoboard can be used in several ways:
as standalone unit supplied by a 9V-battery
al
id
8.1.1
Connect a 7,5V..12V supply to pins "GND" and "+9V" at the right side of the board. No other connections are
required
8.1.2
as standalone unit supplied by an USB port
8.1.3
as input device for the AS5043 demoboard software
lv
Connect the demoboard to a PC using a USB cable (included in demoboard shipment). The board is supplied by
the 5V supply of the USB port. No other connections are required
Figure 8: AS5043 demoboard and Adapter PCB
Te
ch
ni
ca
am
lc s
on A
te G
nt
st
il
This configuration uses the same hardware connection as 8.1.2, but additionally the AS5043 demoboard software
is running. All indicators on the demoboard will be displayed on the PC screen as well.
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 7 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
9 AS5043 Demoboard Software
The AS5043 Demoboard Software can be downloaded for free from the Internet at:
http://www.austriamicrosystems.com/03products/products_detail/AS5043/download_AS5043.htm?#software
It has several indicators and extra features, such as:
al
id
Displaying the absolute angle as 10bit-word (0..1023), as absolute degrees (0..360) and as rotary dial
Displaying the analog voltage output
Displaying the status and diagnostic bits (magnitude ranges) of the AS5043
Programming the zero position (OTP)
Programming clockwise or counterclockwise operation
Putting the AS5043 in alignment mode to aid centering the magnet over the IC.
ca
am
lc s
on A
te G
nt
st
il
lv
ƒ
ƒ
ƒ
ƒ
ƒ
ƒ
Further information on the AS5043 Demoboard Software is available in the AS5043 Demoboard Operation Manual
(see: 7 Supporting tools)
Connecting the AS5043 adapter PCB to the demoboard
ni
9.1
Te
ch
The AS5043 Adapter PCB is intended as a standalone device that allows easy and quick testing of the AS5043
without the need of having to make your own PCB.
It allows access to each IC pin via a standard 100mil pitch, 600mil Dual-In-Line connector, has LEDs on all digital
outputs and comes with an onboard 5V linear voltage regulator (78L05) and a battery clip to supply the board from
a 9V battery.
The 8-pin female connector is designed to fit directly onto the AS5043 Demoboard and use the Adapter PCB as
external encoder (software setting: Encoder = external).
The demoboard however, runs at 3.3V supply voltage. The Adapter PCB is configured for 5V supply voltage.
Connecting both boards without modifications will not harm any of the boards, but may lead to data transmission
errors due to the different digital levels, especially when an extension cable is used between demoboard and
Adapter PCB.
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 8 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
If you use the Adapter PCB as external encoder for the AS5043 demoboard with an extension cable or experience
data transmission errors, it is requested to configure the Adapter PCB for 3.3V supply voltage.
9.1.1
Modifications to operate the adapter board at 3.3V
Perform the following modifications:
• disconnect the 5V supply between Demoboard and Adapter PCB: remove or cut off pin "+5VUSB" at the
bottom of the AS5043 demoboard
connect pins "3V3" and "5V" on the Adapter PCB. Ideally, connect the pins right at the bottom of the
7pin female connector with a piece of wire or solder joint.
•
you may also remove the 78L05 voltage regulator from the Adapter PCB to prevent accidental damage
of the IC when an input voltage is applied to the regulator (and the 5V output is fed to the VDD3V3
supply pin)
am
lc s
on A
te G
nt
st
il
lv
al
id
•
Te
USB
ch
ni
ca
Figure 9: Configuring the Adapter PCB for 3.3V operation (See Figure 10)
Figure 10: Connecting an external AS5043 application to the demoboard (See Figure 9)
* If longer cables are used, a pull-down resistor at the DO line of 22k - 56k Ohms is recommended to discharge
the signal between data transmissions and no static voltage is built up.
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 9 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
9.2
Reading the Adapter PCB with the AS5043 Demoboard Software:
Further information on the AS5043 Demoboard Software is available in the AS5043 Demoboard Operation Manual
(see: 7 Supporting tools)
The AS5043 Adapter PCB can be read as “external encoder” in the same way as the internal encoder. Switching
from internal to external encoder can be done on the bottom left corner of the demoboard software screen:
Encoder = onboard / external. Additionally, when Encoder = external is selected, the buttons "Permanent write"
and "Read" are enabled in the "Zero Position" and "Incremental Mode" screens to allow OTP programming of the
external encoder
al
id
Changing the Zero Position:
The programming options zero position and CCW operation can be modified at any time during normal operation.
Permanently programming these registers will set the default setting after power-up. Programmed settings can
again be modified during normal operation but will be reset to default when the power supply is disconnected.
am
lc s
on A
te G
nt
st
il
lv
OTP programming of the external AS5043 encoder:
To program the external AS5043 encoder, a programming voltage of 7.5 to 8V DC (130mA) must be applied to
pins Vzapp and GND of the 3-pin connector at the right hand side of the demoboard. A 10µF buffer cap is
recommended for this voltage (see Figure 10).
Programming is not recommended with long wires between demoboard and external encoder, as the inductance
of the cable may generate high voltage spikes, that can cause wrong programming or even harm the IC. The
maximum wire length between the demoboard connector and the PROG pin of the external encoder should be
50mm (2”). Additionally, a 10nF ceramic capacitor should be connected close to pin PROG and VSS.
.
An OTP (one time programming) cycle is automatically initiated, when button "Permanent write" is pressed.
The default (non-programmed) logic state is "0" , consequently the programmed logic state is "1".
It is possible to write "1"s into the OTP register at subsequent programming cycles. However, a programmed "1"
cannot be cleared any more after programming.
Te
ch
ni
ca
Note that the chip will not be programmed, as long as no programming voltage is applied to Vzapp, although
the software will issue a warning message that the chip will be permanently programmed.
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 10 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
10 Contact
Headquarters
austriamicrosystems AG
A 8141 Schloss Premstätten, Austria
Phone: +43 3136 500 0
Fax:
+43 3136 525 01
[email protected]
www.austriamicrosystems.com
Sales Offices
austriamicrosystems Germany GmbH
8601 Six Forks Road
D-81539 München, Germany
Phone:
+49 89 69 36 43 0
Fax:
+49 89 69 36 43 66
Suite 400
Raleigh, NC 27615, USA
austriamicrosystems Italy S.r.l.
Via A. Volta, 18
Fax:
+39 02 4585 773
Suite 116
San Jose, CA 95117, USA
F-94300 Vincennes, France
Phone:
+33 1 43 74 00 90
Fax:
+33 1 43 74 20 98
+41 55 220 9008
Fax:
+41 55 220 9001
Tsim Sha Tsui East, Kowloon, Hong Kong
ni
austriamicrosystems AG
Klaavuntie 9 G 55
FI 00910 Helsinki, Finland
+358 9 72688 170
ch
Phone:
Fax:
+358 9 72688 171
Te
austriamicrosystems AG
Bivägen 3B
S 19163 Sollentuna, Sweden
Phone:
+46 8 6231 710
Revision A.02, 04. Jul 06
+852 2268 6799
Higashi-Gotanda, Shinagawa-ku
Tokyo 141-0022, Japan
ca
+44 118 973 1797
+44 118 973 5117
+852 2268 6899
Fax:
AIOS Gotanda Annex 5th Fl., 1-7-11,
Berkshire RG40 4ET, United Kingdom
Fax:
Phone:
austriamicrosystems AG
Finchampstead, Wokingham
Phone:
+1 509 696 2713
East Wing, 66 Mody Road
austriamicrosystems UK, Ltd.
88, Barkham Ride,
+1 408 345 1790
Fax:
Suite 811, Tsimshatsui Centre
CH 8640 Rapperswil, Switzerland
Phone:
Phone:
austriamicrosystems AG
austriamicrosystems Switzerland AG
Rietstrasse 4
+1 509 696 2713
4030 Moorpark Ave
austriamicrosystems France S.A.R.L.
124, Avenue de Paris
+1 919 676 5292
Fax:
am
lc s
on A
te G
nt
st
il
+39 02 4586 4364
Phone:
austriamicrosystems USA, Inc.
I-20094 Corsico (MI), Italy
Phone:
al
id
austriamicrosystems USA, Inc.
Tegernseer Landstrasse 85
lv
10.1
Phone:
+81 3 5792 4975
Fax:
+81 3 5792 4976
austriamicrosystems AG
#805, Dong Kyung Bldg.,
824-19, Yeok Sam Dong,
Kang Nam Gu, Seoul
Korea 135-080
Phone:
+82 2 557 8776
Fax:
+82 2 569 9823
austriamicrosystems AG
Singapore Representative Office
83 Clemenceau Avenue, #02-01 UE Square
239920, Singapore
Phone:
+65 68 30 83 05
Fax:
+65 62 34 31 20
www.austriamicrosystems.com
Page 11 of 12
AS5043 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Adapter PCB Operation Manual
11 Revision History
Revision
Date
A01
A02
Description
Jan.16, 2006
Creation
Apr. 06. 2006
Updates of SW images
Jul. 04. 2006
Figure 7: AS5043 adapter board dimensions.
al
id
12 Copyright
lv
Devices sold by austriamicrosystems are covered by the warranty and patent indemnification provisions appearing in its
Term of Sale. austriamicrosystems makes no warranty, express, statutory, implied, or by description regarding the
information set forth herein or regarding the freedom of the described devices from patent infringement.
austriamicrosystems reserves the right to change specifications and prices at any time and without notice. Therefore,
prior to designing this product into a system, it is necessary to check with austriamicrosystems for current information.
This product is intended for use in normal commercial applications.
am
lc s
on A
te G
nt
st
il
Copyright © 2006 austriamicrosystems. Trademarks registered ®. All rights reserved. The material herein may not be
reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. To
the best of its knowledge, austriamicrosystems asserts that the information contained in this publication is accurate and
correct. However, austriamicrosystems shall not be liable to recipient or any third party for any damages, including but
not limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special,
incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use
of the technical data herein. No obligation or liability to recipient or any third party shall arise or flow out of
austriamicrosystems rendering of technical or other services.
Te
ch
ni
ca
a leap ahead
Revision A.02, 04. Jul 06
www.austriamicrosystems.com
Page 12 of 12