Home
AS5050/AS5055-AB User Manual
Contents
1. JP2 Extem INT enable Gosed Interrupt output enabled default ES S d een E Open Secondary device INT output on pin 1 N ad daisy chain On AS5050 AS5055 AB version 1 0 U1 pin 16 is connected to VSS inducing a higher current consumption of the IC This has been fixed on v1 1 or higher Figure 4 AS5050 AB 1 1 adapterboard schematics 6 2 AS5050 AB 1 1 PCB layout 1B 0 CRAM 28 000 a N E CH K a v Int EN 3W 4W www austriamicrosystems com U1 L I LI m ER oo austriamicrosystems mee A55050 AB 1 0 ASS055 AB 1 0 m N x O m ken O N Figure 5 AS5050 AB 1 0 adapter board layout Revision 1 1 May 2010 Page 8 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual WW Table of contents 1 VDD General DES CNB TOM acsicsciessinssasisncssseintusssbaetaacieditasdaniistaisindientedalalsisesacdiciundaadedasiaedeiasdabesiahuncdahdadoninaaiaondatdiasndnadisandaiaedons 1 2 TMEASS050 AG 9055 Deg 1 2 1 Boa dae ele e EE 1 2 2 Mounting the PSO adapter board EE 2 3 AS5050 AS5055 and adapter board pmout 3 E ge CET 4 4 1 One device SPI mode unidirectional 3 wire 4 4 2 One device SPI mode bidirectional 4 wire 4 4 3 Multi devices SPI Daisy chain mode ENNEN 5 E PEMA COON eet ee ee eee ee ee E 6 6 AS50050 adapter board hardware s e snnnnsnensiann
2. 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 AS5050 AS5055 Programmable Magnetic Rotary Encoder 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 AS 5050 AS5055 Adapter board 2 1 Board description BZ austriamicros Stems 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 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 mi
3. 4095 Angle value in degree 0 359 9 alarmLo dat gt gt 14 amp 0x1 alarmHi dat gt gt 15 amp 0x1 Revision 1 1 May 2010 Page 6 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual Fel RREKRKRKRKRKRKRRKRKRRKRKKRKRRKRKRRKRKRKRAKRKRKRRKRKRKRKRKRKKRRKRKRRKKR KARR KRRKRKRKRKRKRRRKRKRKRKRKRKRKRRKR RRR KKK KR KEKE Calculate even parity of a 16 bit unsigned integer This function is used by the SPI interface to calculate the even parity of the data which will be sent via SPI to the encoder param in value 16 bit unsigned integer whose parity shall be calculated FF HF 2 return Even parity KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKEKK WI static u8 spiCalcEvenParity ushort value u8 cnt 0 u8 i for i 0 i lt 16 i if value amp 0x1 EE value gt gt 1 return cnt amp 0x1 Revision 1 1 May 2010 Page 7 of 10 www auStriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual 6 AS5050 adapter board hardware 6 1 AS5050 AB 1 1 schematics JP1 SPI wire mode 1 2 4 wires SPI 2 3 3 wres SPI Int_INT Int_INT ra A L RAANG Header 8
4. AS5055 and adapter board pinout epou au MOSI VDD MISO VDDp SCK 3 10 En_INT emt 4 emm 2 Test coi Pin Ping 7 Symbol AS5050 Type B B oard AS5055 oard J1 2 9 VDD J1 3 GND JP2 INT EM DO OD Close enable INT output p 7 Pin 1 is the AS505x En_INT input Can be used for interrupt daisy chain see chapter 4 3 Table 1 Pin description Pin types DO OD digital output open drain S supply pin DO digital output DI digital input DI_PD digital input pull down DO_T digital output tri state DI_PU digital input pull up ST Schmitt Trigger input Revision 1 1 May 2010 Page 3 of 10 www austriamicrosystems com 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 between the microcontroller and the AS5050 AS5055 are MISO SCK SS Veto The angle will be read at each 16 bit SPI transfer See Regulated or Z 9 o a A i 6 t 4 2 One device SPI mode bidirectional 4 wire 1 873 6V Regulated 27 36V Bower Supply hb cl UN Revision 1 1 May 2010 www auStriamicrosystems com angle 36V Power Supply AS5050 AS5055 datasheet SFFFh EZ austriamicrosystems register Th
5. 00 lt flag indicating read attempt when using SPD interface define SPI_REG_ DATA 0x7ffe lt data register when using SPI define SPI_REG_AGC Ox7ff0 lt agc register when using SPI define SPI REG CLRERR 0x6700 lt clear error register when using SPI void spiReadData ul6 dat 16 bit data buM er for SPI contin i Gammon ushort angle agcreg ubyte agc ushort value bit alarmHi alarmLo Send READ AGC command Received data is thrown away this data comes from the precedent command unknown dat SPI_CMD_READ SPI_REG AGC dat spiCalcEvenParity dat spiTransfer u8 dat sizeof ul6 Send READ ANGLE command Received data is the AGC value from the precedent command dat SPI_CMD_READ SPI_REG_DATA dat spiCalcEvenParity dat spiTransfer u8 amp dat sizeof ul6 agcreg dat Send NOP command Received data is the ANGLE value from the precedent command dat 0x0000 NOP command spiTransfer u8 amp dat sizeof ul angle dat gt gt 2 if dat gt gt 1 amp 0x1 agecreg gt gt 1 amp Oxl1 error flag set need to reset it dat SPB CMD READ SPI_REG _CLRERR dat spiCalcEvenParity dat spiTransfer u8 dat sizeof ul6 else age agcreg gt gt 2 amp Ox3f AGC value 0 63 value dat gt gt 2 amp Ox3fff Angle value 0 4095 for AS50055 angle value 360
6. AS5055A DK AB AS5055 AB
7. crocontroller 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 E Jr a rw AS5050 AS5055 gt Io sal encoder A jc i KA 4x 2 6mm mounting holes Figure 1 AS5050 Adapterboard Revision 1 1 May 2010 Page 1 of 10 www auStriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder Eig austriamicrosystems Adapterboard Operation Manual 2 2 Mounting the AS5050 adapter board Rotating shaft and magnet holder a Not ferromagnetic plastic brass copper Bearing stainless steel aluminum Casing Spacer M2 M2 5 Screw nut ay a S T A i 3 W AVN WW RE gp wm 4x2 6mm Diametral 4 Ge Magnet fN WD dA dh WD Y E TN 18mm Figure 2 AS5050 adapter board mounting and dimension 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 Page 2 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual 3 AS5050
8. hat point all the n x encoders have received the READ command FFFFh MCU sets SS 0 MCU shifts n x 16 bit e g NOP command 0000h MCU sets SS 1 At that point the n x 16 bit received on MISO are the n x angle values If an interrupt is needed the signal INT can be daisy chained as shown on the diagram on the left The final INT signal connected to the MCU will go LOW only if all the n x encoders INT 0 The n x 16 bit angle readout can be performed here Page 5 of 10 www auStriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual 5 Firmware coding The following source code fits the 4 Wire application chapter 4 2 The function void spiReadData reads writes 3 values from the AS5050 AS5055 Send command READ AGC Receive value unknown Send command READ Angle Receive value AGC Send command NOP no operation Receive value ANGLE Ifa READ ANGLE only is necessary in a loop the procedure can be reduced to one line Send command READ Angle Receive value Angle T 1 The function static u8 spiCalcEvenParity ushort value S optional it calculates the parity bit of the 16 bit SPI stream ag KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK KKK kk kk kk kk Ak kk kk kk kk Reads out chip data via SPI interface This fu nction Ze used to read out cordic value irom chips supporting SPI interface EE S define SPI_CMD_READ 0x80
9. is value must be read with a period of 600uUs or more in order to get a new angle position The INT signal can be attached o the microcontroller to indicate that a new angle position has been calculated lf 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 Page 4 of 10 AS5050 AS5055 Magnetic Rotary Encoder Adapterboard Operation Manual 4 3 Multi devices SPI Daisy chain mode 1 873 6V F Regulated 27 36V Bower Supply UNI Opi G Z LI INI EE ONG aan dand Gj Revision 1 1 May 2010 EZ austriamicrosystems The AS5050 AS5055 can be daisy chained using 4 wires only for SPI communication In this configuration with n x encoders the sequence will be processed as follow MCU sets SS 0 MCU shifts n x 16 bit e g READ command FFFFh through the chain MCU sets SS 1 At t
10. nsnsnsrnannnnrsnnnnrnnnnrsnnnnannnnrnnnnnunnnnnnnnnnannnnnnnnnnnnnennnnnnnunnnnnnnnnnnnnnnnnnn nannan ne 8 6 1 AS5050 AB 1 0 Eu MEN WO 8 6 2 AS5050 AB 1 0 PCB AV OU E e AOP 8 E lee tcl Cott en et eT in ee 9 ele d ir Mbps dE 10 EEE ee ll EEN 10 Contact Information NNEN less ffe EE 10 Revision 1 1 May 2010 Page 9 of 10 www auStriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder EZ austriamicrosystems Adapterboard Operation Manual Copyrights Copyright 1997 2010 austriamicrosystems AG Schloss Premstaetten 8141 Unterpremstaetten Austria Europe 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 All products and companies mentioned are trademarks or registered trademarks of their respective companies Disclaimer Devices sold by austriamicrosystems AG are covered by the warranty and patent indemnification provisions appearing in its Term of Sale austriamicrosystems AG 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 AG 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 AG for curre
11. nt information This product is intended for use in normal commercial applications Applications requiring extended temperature range unusual environmental requirements or high reliability applications such as military medical life support or lifesustaining equipment are specifically not recommended without additional processing by austriamicrosystems AG for each application The information furnished here by austriamicrosystems AG is believed to be correct and accurate However austriamicrosystems AG 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 AG rendering of technical or other services Contact Information Headquarters austriamicrosystems AG A 8141 Schloss Premstaetten Austria Tel 43 0 3136 500 0 Fax 43 0 3136 525 01 For Sales Offices Distributors and Representatives please visit http www austriamicrosystems com Revision 1 1 May 2010 Page 10 of 10 www auStriamicrosystems com Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information ams
Download Pdf Manuals
Related Search
Related Contents
Manual de instruções KDV-7241 - Kenwood ・42N ・55N 安全上のこ注意 (必ずお守りください〉 A注意控訴協需品管 オルソキシレン 1769-IN049A-EN-P Copyright © All rights reserved.
Failed to retrieve file