background image

Revision 1.3, 22-Jul-2009 

Page 1 of 12 

www.austriamicrosystems.com 

1

 

General Overview 

The AS5045/AS5145A/B 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.0879° = 4096 positions per revolution. This digital data is available as a serial bit stream and as a PWM signal. 
An internal voltage regulator allows the AS5045/AS5145A/B to operate at either 3.3 V or 5 V supplies  
 

Note:

 

AS5145A/B are pre-programmed versions of AS5145. It provides 10bit (A) or 12bit (B) incremental output

 

2

 

The AS5045/AS5145A/B Demoboard 

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

 

 

 

Figure 1: AS5x45 Demoboar d hardware with mounted magnet knob 

 

3

 

Operating the AS5045/AS5145A/B Demoboard 

The AS5x45 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 

AS5045 / AS5145 Demoboard 

9V battery connector 

(standalone only) 

USB cable to the PC 

SiLabs C8051F320 

microcontroller 

Onboard AS5x45 output signals connector and indicators 

MagINCn, MagDECn (J7) and PWM (J4) only are available with AS5045 and AS5145 

Knob with D5x2.5mm  

diametral magnet, 

2mm over the AS5x45 

LCD display (for standalone mode) 

External (left) – Onboard (right) 

encoder selection switch SW1  

J6: External Encoder 

SSI Connector 

Operation Manual 

ams 

AG 

Technical 

content 

still 

valid

Summary of Contents for AS5145A

Page 1: ...cal 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 ...

Page 2: ...USB interface graphical LCD display and PWM output LED The board is USB powered or externally supplied with a 9V battery for standalone operation Figure 1 AS5x45 Demoboard hardware with mounted magnet knob 3 Operating the AS5045 AS5145A B Demoboard The AS5x45 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 r...

Page 3: ...width that is proportional to the angle of the magnet The pulse width varies from 1µs to 4096µs with a repetition rate of 244Hz Viewing the PWM signal on the LED results in brightness that is proportional to the angle of the magnet When the angle of the magnet is at 0 the LED is almost dark as it is 1µs on and 4095µs off Turning the knob clockwise towards higher angles increases the brightness of ...

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

Page 5: ...entioned 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 3 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 auto detection mode Any connected austriamicrosystems demoboard and prog...

Page 6: ...Magnet in range Orange lamp Magnet too far or too close MagINC and MagDEC are set Red lamp Magnet too far or too close angle value is invalid and LIN bit is set The red lamp is available only when OTP MagCompEN 1 available from the OTP tab The Status bits information is taken from the serial stream The Read Interval can be modified from 10 ms fastest to 1 s slowest Magnet angle value 0 to 359 9 Ma...

Page 7: ...parameter in Value Each time a field s value has been changed the corresponding OTP bits will be automatically checked in the right window The button Write should be clicked to write the parameter into the AS5x45 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 ...

Page 8: ...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 30 P0 3 31 P0 2 32 GND 3 D 4 D 5 VDD 6 RegIn 7 VBUS 8 RST C2CK 9 P3 0 C2D 10 U1 C8051F320 C24 1u 5V C22 2...

Page 9: ...5145A B Demoboard OPERATIONAL MANUAL Revision 1 3 22 Jul 2009 www austriamicrosystems com Page 8 of 12 AS5145 Ixx only Figure 9 AS5x45 Blockdiagramm a m s A G T e c h n i c a l c o n t e n t s t i l l v a l i d ...

Page 10: ...B Demoboard 2 3 1 Graphic LCD display 2 3 2 PWM LED 2 3 3 MagINc and MagDECn 3 3 4 Encoder selection switch 4 4 AS5000 Programmer GUI software 5 4 1 Installing the GUI on the PC 5 4 2 The Home tab 5 4 3 The SSI tab 7 4 4 The OTP tab 9 5 AS5045 AS5145A B Demoboard Schematics Blockdiagramm 10 Index 13 Revision History 14 Contact 15 Copyright 17 a m s A G T e c h n i c a l c o n t e n t s t i l l v a...

Page 11: ...osystems com Page 10 of 12 Revision History Revision Date Description 1 0 March 09 2009 First version 1 1 March 25 2009 Minor corrections 1 2 July 16 2009 Add AS5145A B I10 and AS5145A B I12 1 3 July 22 2009 Minor corrections a m s A G T e c h n i c a l c o n t e n t s t i l l v a l i d ...

Page 12: ...ne 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 4030 Moorpark Ave Suite 1...

Page 13: ...pplications 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 austriamicrosystems shall not b...

Reviews: