Application Note DN[Document ID] AS5x6y Evaluation Software Manual ams Application Note [v1-00] 2014-Sep-01 Page 1 Document Feedback AS5x6y Evaluation Software Manual Content Guide 1 General Description ............................................................................................................. 3 2 AS5x6y Evaluation Software Installation ............................................................................. 3 3 Programming Options .......................................................................................................... 3 4 AS5x6y Evaluation Software ................................................................................................ 4 4.1 Hardware Setup ................................................................................................................... 4 4.2 Device Selection .................................................................................................................. 5 4.3 Programming Procedure ...................................................................................................... 6 5 Connecting to the SD4Y Relay Board ................................................................................ 13 6 Contact Information ............................................................................................................ 14 7 Copyrights & Disclaimer ..................................................................................................... 15 Revision History Revision Date Owner Description 1.0 01.10.2014 mzie Initial version 1.1 23.05.216 mzie Updated to Revision 1.5 ams Application Note [v1-00] 2014-Sep-01 Page 2 Document Feedback AS5x6y 1 Evaluation Software Manual General Description This application note describes the usage of the AS5x6y Evaluation Software for programming the AS5161, AS5162, AS5261 and AS5262 magnetic position sensors. 2 AS5x6y Evaluation Software Installation First download and install the latest version of the AS5x6y Evaluation Software from our webpage at www.ams.com. The software is written in LabVIEW. To be able to run the software properly the latest NI LabVIEW Run-Time Engine and NI VISA Run-Time Engine have to be installed on the computer. This can be downloaded for free from the National Instruments webpage at www.ni.com. After running these installers it should be possible to run the software without any errors. 3 Programming Options Either the AS5xxx-EK-PB (UART) Programmer or the SD4Y Production Programmer can be used. When using the SD4Y programmer additionally the UPROG Relay Board has to be used. Figure 1: UPROG Relay Board ams Application Note [v1-00] 2014-Sep-01 Page 3 Document Feedback AS5x6y 4 4.1 Evaluation Software Manual AS5x6y Evaluation Software Hardware Setup 1. Start the AS5x6y Evaluation Software. Figure 2: Starting screen 2. Depending on the Programming Hardware please select the proper one from the dropdown menu and follow the instructions. A. When using the UART Programmer please choose the right COM Port and enter the Baude Rate (typically 9600 baude) B. When using the SD4Y Programmer choose the right COM Port and press the Connect Button. When successfully connected to SD4Y the current Firmware appears. ams Application Note [v1-00] 2014-Sep-01 Page 4 Document Feedback AS5x6y 4.2 Evaluation Software Manual Device Selection 1. Change to Device Selection tab. Figure 3: Device Selection 2. From the drop down menu select the device you want to program. ams Application Note [v1-00] 2014-Sep-01 Page 5 Document Feedback AS5x6y 4.3 Evaluation Software Manual Programming Procedure 1. Go to “AS5x6y Bottom Die” tab Figure 4: AS5x6y Bottom Die 2. Enter start angle T1. Either manually enter the position or move the magnet to initial position and click the “GET” button. 3. Enter final angle T2. Either manually enter the position or move the magnet to the final position and click the “GET” button. ams Application Note [v1-00] 2014-Sep-01 Page 6 Document Feedback AS5x6y Evaluation Software Manual 4. In section “Slope Parameters” enter the characteristic of your output. 5. Enter T1Y in Volt. T1Y is the output voltage at the initial magnet position T1. 6. Enter T2Y in Volt. T2Y is the output voltage at the final magnet position T2. 7. Enter CLL in Volt. Clamping Level Low is the output voltage for the lower failure band. 8. Enter CLH in Volt. Clamping Level High is the output voltage for the higher failure band. 9. Enter the required quadrant mode. There is the choice of 4 quadrant modes with following limitations: 1 quadrant: full 360° 2 quadrants: max. 180° / quadrant 3 quadrants: max. 120° / quadrant 4 quadrants: max. 90° / quadrant 10. Enter VDD Ratio. If the supply voltage at programming deviates from 5V this parameter has to be set. Enter this parameter as a ratio of 5V / VDD_Prog. When there is no deviation from 5V use 1,00. 11. Click „Calculate“. The DLL will calculate the programming data in the background and the graph will show a preview of the programmed output slope. ams Application Note [v1-00] 2014-Sep-01 Page 7 Document Feedback AS5x6y Evaluation Software Manual 12. When using AS5161 or AS5261 (PWM) please move to step 22. 13. Click “Enable DAC Calibration” 14. Click the “Start DAC Calibration” button. 15. Connect a digital voltmeter to the OUT pin and press OK. 16. Measure T1 value with voltmeter, write into the box and press enter. ams Application Note [v1-00] 2014-Sep-01 Page 8 Document Feedback AS5x6y Evaluation Software Manual 17. A pop-up window appears. Press OK and the device will be reset. 18. Measure T2 value with voltmeter and write value into the box. 19. A pop-up window appears. Press OK and the device will be reset. 20. Press again “Calculate” and the “Programming Data” will slightly be corrected. ams Application Note [v1-00] 2014-Sep-01 Page 9 Document Feedback AS5x6y Evaluation Software Manual Figure 5: Output graph preview 21. When using AS5261 or AS5262 dual-die device repeat the steps 1 to 20 again for the Top Die. 22. Go to “Programming” tab. Figure 6: Programming tab 23. In this tab some more settings like “Customer ID”, “Filter Configuration” and “Airgap Selection” can be done. ams Application Note [v1-00] 2014-Sep-01 Page 10 Document Feedback AS5x6y Evaluation Software Manual 24. Select the wanted “Filter Configuration” from the drop down menu. 25. Select wanted “Airgap Selection” from the drop down menu. This sets your magnetic input range from 30 – 70 mT in “Normal Range” and from 10 – 90 mT in “Extended Range”. Extended Range also means increased sensor output noise. 26. When using AS5161 or AS5261 also select the PWM frequency from the drop down menu. 27. At this point the device can either be switched to “Pass2Function” mode or you can burn the OTP fuses. When using the “Pass2Function” mode the device is only programmed temporarily until it is reset again. When clicking the “FUSE” Button the OTP fuses are burned and the device is permanently programmed. For permanent programming go to step 33. 28. To set the device to “Pass2Function” mode, DO NOT set the “Customer Lock” bit. 29. Click “Write” Button. 30. Click “Read” Button. ams Application Note [v1-00] 2014-Sep-01 Page 11 Document Feedback AS5x6y Evaluation Software Manual 31. Check if Write/Read checksum is correct. 32. Click “Pass2Function” button. The device switches from communication mode to functional mode. Caution! – Permanent programming beyond this point 33. For permanently programming of OTP fuses set the “Customer Lock” bit. 34. Click “Write” Button. 35. Click “Read” Button 36. Check if Write/Read checksum is correct. 37. Click “FUSE” button. 38. A pop-up window will appear. 39. If you press OK the OTP fuses of the device will be burned and successful burning will be indicated in the “Programming Info” Box. This box will also show if there was an error during the burn process. ams Application Note [v1-00] 2014-Sep-01 Page 12 Document Feedback AS5x6y 5 Evaluation Software Manual Connecting to the SD4Y Relay Board VDD GND OUT GND SD4Y ams Application Note [v1-00] 2014-Sep-01 Digital Voltmeter Digital Voltmeter OUT VDD GND Top Die OUT VDD GND Bottom Die Page 13 Document Feedback AS5x6y 6 Evaluation Software Manual Contact Information Buy our products or get free samples online at: www.ams.com/ICdirect Technical Support is available at: www.ams.com/Technical-Support Provide feedback about this document at: www.ams.com/Document-Feedback For further information and requests, e-mail us at: [email protected] For sales offices, distributors and representatives, please visit: www.ams.com/contact Headquarters ams AG Tobelbaderstrasse 30 8141 Unterpremstaetten Austria, Europe Tel: +43 (0) 3136 500 0 Website: www.ams.com ams Application Note [v1-00] 2014-Sep-01 Page 14 Document Feedback AS5x6y 7 Evaluation Software Manual Copyrights & Disclaimer Copyright ams AG, Tobelbader Strasse 30, 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. Information in this document is believed to be accurate and reliable. However, ams AG does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. Applications that are described herein are for illustrative purposes only. ams AG makes no representation or warranty that such applications will be appropriate for the specified use without further testing or modification. ams AG takes no responsibility for the design, operation and testing of the applications and end-products as well as assistance with the applications or end-product designs when using ams AG products. ams AG is not liable for the suitability and fit of ams AG products in applications and end-products planned. ams 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 or applications described herein. No obligation or liability to recipient or any third party shall arise or flow out of ams AG rendering of technical or other services. ams AG reserves the right to change information in this document at any time and without notice. ams Application Note [v1-00] 2014-Sep-01 Page 15 Document Feedback