background image

Revision 1.0, 29.January 2009 

Page 1 of 12 

www.austriamicrosystems.com 

1

 

General Overview 

The  AS5X40  is  a  contactless  magnetic  rotary  encoder  for  accurate  angular  measurement  over  a  full  turn  of  360°. 
It  is  a  system-on-chip,  combining  integrated  Hall  elements,  analog  front  end  and  digital  signal  processing  in  a  single 
device.  
To measure the angle, only a simple two-pole magnet, rotating over the center of the chip, is required. The magnet may 
be placed above or below the IC. 
The absolute angle measurement provides instant indication of the magnet’s angular position with a resolution of 0.35° 
= 1024 positions per revolution (AS5X40). This digital data is available as a serial bit stream and as a PWM signal. 
Furthermore, a user-programmable incremental output is available, making the chip suitable for replacement of various 
optical encoders. 
An internal voltage regulator allows the AS5X40 to operate at either 3.3 V or 5 V supplies.  

 

2

 

The AS5X40 Demoboard 

The AS5X40 demoboard is a complete rotary encoder system with built-in microcontroller, USB interface, graphical 
LCD display, incremental indicators, commutation indicators and PWM output LED. 
The board is USB powered or externally supplied with a 9V battery for standalone operation. 
 
 

 

 

 

 

 

Figure 1: AS5X40 Demoboard hardwar e with mounted magnet knob 

3

 

Operating the AS5X40 Demoboard 

The AS5X40 demoboard can be used in several ways: 

 

As standalone unit supplied by a 9V battery 

Connect a 9V battery to the battery connector on the top right side of the board. No other connections are required. 

 

As standalone unit supplied by an USB port 

Connect the demoboard to a PC using a USB/USB cable (included in demoboard shipment). The board is supplied by 
the 5V supply of the USB port. No other connections are required. 

 

As input device for the AS5000 Programmer GUI software 

This configuration uses the same USB hardware connection as above, but additionally the AS5000 Programmer GUI 
software is running. The LCD display will be turned off and the Angle/Multiturn/AGC will be displayed on the PC screen. 
Some extra features as pole pair, zero position or AGC programming can be achieved. The parameters will not be 
permanently programmed. All the parameters will be lost when the demoboard is shut down. For a permanent device 
programming, the “AS5000 Programmer” hardware should be used. 

AS5040 / AS5140 Demoboard 

OPERATION MANUAL

 

Application note 

9V battery connector 

(standalone only) 

USB cable to the PC 

SiLabs C8051F320 

microcontroller 

Onboard AS5x40 output signals connector and indicators: 

 

Quadrature A/B  

and Index output signal   

J6: External Encoder 

SSI Connector 

 

External (left) – Onboard 

(right) encoder selection 

switch SW1  

Knob with D5x2.5mm  

diametral magnet, 

2mm over the AS5X40 

LCD display (for standalone mode) 

Summary of Contents for AS5040

Page 1: ...with mounted magnet knob 3 Operating the AS5X40 Demoboard The AS5X40 demoboard can be used in several ways As standalone unit supplied by a 9V battery Connect a 9V battery to the battery connector on the top right side of the board No other connections are required As standalone unit supplied by an USB port Connect the demoboard to a PC using a USB USB cable included in demoboard shipment The boar...

Page 2: ... becomes longer and the OFF pulse becomes shorter Likewise the PWM output can be used as an analog output proportional to the angle when the PWM signal is filtered by a RC or active lowpass filter The PWM signal 0 3V3 can be directly taken from the connector J4 3 1 3 Incremental quadrature AB Index LED The phase shift between channel A and B indicates the direction of the magnet movement Channel A...

Page 3: ...ly to J6 In this configuration the data of the serial interface are displayed on the GUI or the LCD In standalone mode regardless to the demoboard type AS5040 or AS5140 AS5040 and AS5140 can be attached to J6 and evaluated See figure 3 If the GUI is used for operation additional devices AS5043 AS5143 AS5045 and AS5145 can be connected to J6 and evaluated In that case the correct encoder must be se...

Page 4: ... GUI 1 check on your PC if Service Pack 2 is installed 2 install the mentioned NET package to your computer 3 execute setup exe 4 Finally start the GUI using the shortcut in the start menu or desktop 4 2 The Home tab Figure 4 shows the main window of the GUI On the top left corner board information s as firmware FW version and demoboard name declaration can be found By default the GUI is in the au...

Page 5: ... into the Zero Position register Clicking on Reset writes the value 0 to the Zero Position register The Magnetic Range Warning is continuously read from the RD_ANGLE serial command Green lamp Magnet in range Orange lamp Magnet too far or too close MagINC and MagDEC are set The Status bits information are taken from the serial stream The Read Interval can be modified from 10 ms fastest to 1 s slowe...

Page 6: ... The button Write should be clicked to write the parameter into the AS5X40 The Read button reads back the OTP register and updates the Field parameter as well as the OTP bits window Figure 6 OTP tab Field Zero Position To zero position value like on the SSI tab The zero position value can be changed by checking the Z 0 9 bits or changing the Value field with a decimal number Field Pulses per Revol...

Page 7: ...n DS1 LED3 R6 1k GND J4 PWM R1 10k GND C3 100n GND 3V 3V GND 3V GND C16 1u 16V C15 1u 16V C14 1u 16V C13 1u 16V C12 1u 16V GND C8 1u 16V C10 1u 16V C11 1u 16V GND C9 1u 16V R2 nc C6 100n C7 100n 3V GND C2CK C2D C1 100n C5 1u GND P0 1 1 P0 0 2 P2 7 11 P2 6 12 P2 5 13 P2 4 14 P2 3 15 P2 2 16 P2 1 17 P2 0 18 P1 7 19 P1 6 20 P1 5 21 P1 4 22 P1 3 23 P1 2 24 P1 1 25 P1 0 26 P0 7 27 P0 6 28 P0 5 29 P0 4 ...

Page 8: ...AS5X40 Demoboard OPERATIONAL MANUAL Revision 1 0 29 Jan 2009 www austriamicrosystems com Page 8 of 12 Figure 9 AS5x40 Blockdiagramm ...

Page 9: ...e Indicators and Connectors 2 3 1 1 Graphic LCD display 2 3 1 2 PWM LED 2 3 1 3 Incremental quadrature AB Index LED 2 3 1 4 MagINCn and MagDECn 2 3 1 5 Encoder selection switch 3 4 AS5000 Programmer GUI software 4 4 1 Installing the GUI on the PC 4 4 2 The Home tab 4 4 3 The SSI tab 5 4 4 The OTP tab 6 5 AS5X40 Demoboard Schematics Blockdiagramm 7 Index 9 Revision History 10 Contact 11 Copyright 1...

Page 10: ...AS5X40 Demoboard OPERATIONAL MANUAL Revision 1 0 29 Jan 2009 www austriamicrosystems com Page 10 of 12 Revision History Revision Date Description R1 0 March 16 2009 First version ...

Page 11: ...G40 4ET United Kingdom Phone 44 118 973 1797 Fax 44 118 973 5117 austriamicrosystems AG Klaavuntie 9 G 55 FI 00910 Helsinki Finland Phone 358 9 72688 170 Fax 358 9 72688 171 austriamicrosystems AG Bivägen 3B S 19163 Sollentuna Sweden Phone 46 8 6231 710 austriamicrosystems USA Inc 8601 Six Forks Road Suite 400 Raleigh NC 27615 USA Phone 1 919 676 5292 Fax 1 509 696 2713 austriamicrosystems USA Inc...

Page 12: ...use in normal commercial applications Copyright 2009 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 austr...

Reviews: