Home

AS5050/AS5055-AB User Manual

image

Contents

1. 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 AS5050 AS5055 Adapter board 2 1 Board description BIG 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 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 gt W rw AS5050 AS5055 gt fi encoder Er 4 x 2 6mm mounting holes Figure 1 AS5050 Adapterboard Revision 1 1 May 2010
2. 0 lt clear error register when using SPI void spiReadData ul6 dat 16 bit data buffer for SPI communication 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 amp 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 ul6 angle dat gt gt 2 if dat gt gt 1 amp 0x1 agcreg gt gt 1 amp Oxl error flag set need to reset it dat SPI CMD READ SPI REG CLRERR dat spiCalcEvenParity dat spiTransfer u8 amp dat sizeof ul6 else age agcreg gt gt 2 amp 0x3f AGC value 0 63 value dat gt gt 2 amp Ox3fff Angle value 0 4095 for AS50055 angle value 360 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 Encod
3. NT signal can be attached o the microcontroller to indicate that a new angle position has been calculated Page 4 of 10 www austriamicrosystems com AS5050 A55055 Magnetic Rotary Encoder Adapterboard Operation Manual 4 3 Multi devices SPI Daisy chain mode 1 873 6V F Regulated 27 36V Bower Supply ANIJ Opi G Zz UD INI b eeeeee GND aaaf O danj O Revision 1 1 May 2010 BG 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 that 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 th
4. Page 1 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder Bl 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 AS5050 AB PCB Int EN 4x2 6mm Diametral CO N Mag 11mm 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 Bl austriamicrosystems Adapterboard Operation Manual 3 AS5050 AS5055 and adapter board pinout SPOU aI MOSI VDD MISO VDDp SCK 3 10 En INT ss 4 selt o Test coi Pin Ping 7 Symbol AS5050 Type B B oard AS5055 oard J1 2 9 VDD J1 3 GND JP2 1 INT EN DO OD Close enable INT output p g Pin 1 is the AS505x En_INT input Can be used for interrupt daisy chain see chapter 4 3 Table 1 Pin description
5. 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 Bl austriamicrosystems 4 1 One device SPI mode unidirectional 3 wire 1 873 6V Regulated 27 36V Bower Supply Z 9 A e 4 2 One device SPI mode bidirectional 4 wire Z a 6 8 9 6 1 873 6V A i Regulated 27 36V Bower Supply i GND GND 8 I 6 Revision 1 1 May 2010 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 SFFFh This value must be read with a period of 600us 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 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 I
6. ccsscsssscssssssssssscsessssssssecsssecsesecessesessesesacsesessesassusesaesesacsesassesesaesesausesassesasaesasansasenss 8 6 1 A55050 AB 1 0 schematics ccssccnsisicsscacessxetsevnadenarsnesetssieissucesaccstdveeadencrsinedetevesicasedenasetdvesa nususundehavshvanddsatdahaveed eeente 8 6 2 SE Ree ane ee ea cee ee eee cee eee a ee rer 8 Table of contents vanevenazannncacsoanunnestncuneaiceneeeresanseranionaisueataceneauangauotitaseareanstgesutns aseneaennenntgentciosaunscosacsindeaterenennienaacnenneatinnstacinaee 9 SJT SEN 10 DIOTAN eI E 10 C ntactiniormatl ol EEE EEE EN 10 Revision 1 1 May 2010 Page 9 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder Bl austriamicrosystems Adapterboard Operation Manual Copyrights Copyright O 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 free
7. dom 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 current 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 Di
8. e 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 Eig 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 el KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK Reads out chip data via SPI interface This function 16 used to read out cordic value From chips supporting SPI interface DE er sa Ga G G Va Ol ER Es Er Ga GE EG Er Er Gr GE KG GE RO GE i GE Gr VG Gr le EEG Gr T y define SPI_CMD_READ 0x8000 lt flag indicating read attempt when using SPI 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 0x670
9. er Bl austriamicrosystems Adapterboard Operation Manual Fe KKKKKKKKKKKKKKKKKKKKKKKKTKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKTKKKKKTKKKK TK 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 o return Even parity KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKEKK 7 static u8 spiCalcEvenParity ushort value u8 cnt 0 u8 i for i 0 i lt 16 i if value amp 0x1 CHEF value gt gt 1 return cnt amp Oxl Revision 1 1 May 2010 Page 7 of 10 www austriamicrosystems com AS5050 AS5055 Magnetic Rotary Encoder Bl 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 NOQ UNIO Header 8 JP2 Extem INT enable Cosed Interrupt output enabled default w z 2 STE Open Secondary device INT output on pin 1 N p daisy chain On AS5050 AS5055 AB version 1 0 U1 pin 16 is connected to VSS inducing a hi
10. gher 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 10 0 0 90 pB 28 000 N y O K q v Int EN 3W 4W www austriamicrosystems com Ui L I LI m oe austriamicrosystems mee H55050 AB 1 0 AS5055 AB 1 0 m N x O m _ 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 Bl austriamicrosystems Adapterboard Operation Manual Table of contents 1 VDD General DES AP Naa GANG aeaiiai siii 1 2 MERE Adapter Doar eee 1 2 1 PIN 1 2 2 Mounting the S050 adapter board EE NE nnna 2 3 AS5050 AS5055 and adapter board PinOut cccccsscessssessssscsesssscsesessseessssesesseessesesessesassesessusesausesassesassusesauesassesasenes 3 4 Operation USE CASES aS AGN 4 4 1 One device SPI mode unidirectional 3 Wire eeseccecsecssecsseecerecereceeecerecreceeceeecanecanscauseaeseaeseaneeaesenneeneeeneeenteenens 4 4 2 One device SPI mode bidirectional 4 Wire eceeeececccsccsescesccceeceenecceneeeeeceneesneseneesensseaeeseaeeeaeessaeeennesensetsneeesens 4 4 3 Multi devices SPI Daisy Chain MOdE c cccccsscecsssssssssssssessssscsssssscssessesscsssesessceesesacsesesesaceesesavseeesevacaesesavasensevaseeenss 5 ED PEMA COON EEE EE NE EE EE EE 6 6 AS5050 adapter board hardware cc
11. stributors and Representatives please visit http www austriamicrosystems com Revision 1 1 May 2010 Page 10 of 10 www austriamicrosystems com

Download Pdf Manuals

image

Related Search

Related Contents

GUÍA DEL USUARIO Detector de temperatura de punto de rocío  Tag Reference Manual - Pro  901T User Manual    Test d`ovulation  KIT DE PANEL SOLAR  Télécharge le programme des vacances d`Octobre 2015  volume 1 - Novo Degase - Governo do Estado do Rio de Janeiro  GSM/GPRS/GPS Tracker User Manual    

Copyright © All rights reserved.
Failed to retrieve file