Operation Manual

User Manual – AS5013 Demo Kit
AS5013
Two-dimensional Magnetic Position
Sensor with Digital Coordinates
output
www.ams.com
Revision 2.1 / 2013/01/08
AS5013 – Demo Kit User Manual
Table of Contents
1.
General Description ............................................................................................................... 2
2.
Package and Board Description ............................................................................................ 2
3.
How to get the kit running ...................................................................................................... 4
4.
Schematics ............................................................................................................................ 7
5.
Layout .................................................................................................................................... 9
6.
Ordering Information ............................................................................................................ 10
Copyright ..................................................................................................................................... 11
Disclaimer ................................................................................................................................... 11
www.ams.com
Revision 2.1 / 08/01/13
page 1/12
AS5013 – Demo Kit User Manual
1. General Description
The AS5013 is a complete Hall Sensor IC for smart navigation key applications to meet the low
power requirements and host SW integration challenges for products suc h as cell phones and
smart handheld devices. Due to the on chip processing engine, system designers are not tasked
with integrating complex SW algorithms on their host processor thus leading to rapid
development cycles.
The AS5013 single-chip IC includes 5 integrated Hall sensing elements for detecting up to ±2mm
lateral displacement, high resolution ADC, XY coordinate and motion detection engine combined
with a smart power management controller.
The X and Y positions coordinates and magnetic field information for each Hall sensor element
are transmitted over a 2-wire I²C interface to the host processor.
The AS5013 is available in a small 16-pin 4x4mm QFN package and specified over an operating
temperature of -20 to +80°C.
2. Package and Board Description
Demo Kit Contents
The demo kit includes following items listed below in .
Table 1:
Demo Kit Contents
Pos
Item
Comment
1
AS5013 Demo board
AS5013 Demo in gamepad-shape
2
USB 2.0 cable
3
USB Stick with Software
Board Descriptions
The AS5013 demo board consists of an EasyPoint™ module from Speedtech and an USB
interface PCB. The whole system is USB powered.
Once plugged on a PC running Windows, the AS5013 demo board works like a standard threebuttons analog HID joystick, and can be used by any game or application supporting two-axis
analog joysticks under Microsoft Windows.
www.ams.com
Revision 2.1 / 08/01/13
page 2/12
AS5013 – Demo Kit User Manual
Figure 1:
AS5013-DB-2 Demo board
USB plug (to PC)
EasyPoint
Vertical mode LED
TM
Module
Horizontal mode-, Hall Push-, Center- LED
Direction Switch
Joystick button 
,  ,
EasyPoint™ module
Moving the EasyPoint
TM
knob acts like an analog joystick, sending progressive XY coordinates
to Windows via USB.
Button EP (EasyPoint™ module push)
The EasyPoint™ module push button is used in different ways:

Mode 0 (default): Button EP emulates the standard HID button I (simultaneously with
Button ). Thus when using the AS501x evaluation software, button EP emulates the
left mouse button

Mode 1: Button EP is disabled. Button  is still active as standard HID button I.
Buttons
, , :
Those switches are standard HID gamepad buttons I, II and III. When using the AS501x
evaluation software, button  emulates the left mouse button, and button  emulates the right
mouse button.
www.ams.com
Revision 2.1 / 08/01/13
page 3/12
AS5013 – Demo Kit User Manual
Direction Switch
The demo board can be used as a standard game pad when held horizontally, or as a remote
control or mobile phone when held vertically. Select the orientation by changing the position of
switch SW1. The actual position is indicated by the LEDs DS1 (Vertical) or DS2 (Horizontal).
Figure 2:
Direction Switch options
UP
UP
3
UP
LEFT
UP
2
RIGHT
LEFT
RIGHT
1
DOWN
DOWN
DIRECTION
DIRECTION
Horizontal:
Game pad mode
1
2
Vertical:
Remote control mode
3
When the position SW1 is changed, a zero position calibration is performed: a new zero position
will be set, the actual mechanical position of the knob is considered as the coordinate (0,0). This
procedure is necessary to compensate an inaccurate centering of the module’s knob. The
automatic centering calibration is performed each time the demo board is powered on as well.
Center LED and Hall Push LED
The Center LED is ON when the knob coordinate is exactly (0,0) . This coordinate is after
calibration. The Hall Push LED is ON when the EP button of the module is pushed and detected
via the hall sensors only. This function doesn’t use the dome switch contact of the module, but
the magnetic field change on the vertical direction. The Hall push LED is enabled in mode 0, 1
and 2 only. See next chapter for information about the demo board modes.
3. How to get the kit running
First Steps
1. Install the Evaluation Software. The Evaluation Software is located on the USB Stick or
can be downloaded from the ams homepage. For detailed instructions refer to the
Evaluation Software Manual.
www.ams.com
Revision 2.1 / 08/01/13
page 4/12
AS5013 – Demo Kit User Manual
Software and manual download: http://www.ams.com/eng/Products/MagneticEncoders/EasyPoint-Joystick-Encoder
2. Connect the demo board to the PC using the USB cable
3. Start the Mouse Emulator and try the different Plug-Ins. For detailed instructions refer to
the Evaluation Software Manual.
Advanced Steps and Information
The demo board is listed as a composite HID device in the Windows Device Manager:

Windows detects as a standard HID-compliant game controller. This part doesn’t
need any driver.

Windows detects as well an HID-compliant device. This part doesn’t need any driver.
Figure 3:
Windows Device Manager
HID compliant device
controller
HID game controller
Demoboard modes
The AS5013 Demoboard can be configured in different ways without any software.
Mode 0: Without pressing any key, power up the demoboard with the USB cable. HID
Joystick button I is controlled by the EP button (from the EasyPoint™ module) and
Button .
Mode 1: Push and hold Button  and power up the demoboard with the USB cable.
The LED “Center” blinks 4 times. HID Joystick button I is controlled by the Button 
only. EP button is disabled
Mode 2: Push and hold Button  and power up the demoboard with the USB cable.
The LED “Hall Push” blinks 4 times. HID Joystick button I is controlled by the Button ,
and by the “Hall Push” function. EP button is disabled.
www.ams.com
Revision 2.1 / 08/01/13
page 5/12
AS5013 – Demo Kit User Manual
The “Hall Push” is an algorithm running in the demoboard MCU, reading the five Ha ll
Element C1..C5, and determines if the EP button has been pushed, without any
electrical contact. The restriction of this mode is that the detection is working when the
EasyPoint™ module button is pushed on the center position area.
Mode 3: Push and hold Button  and power up the demoboard with the USB cable.
The LED “Center” and “Hall Push” blink 4 times simultaneously.
This mode is similar to Mode 0, but the I²C communication between the MCU and
AS5013 is restricted to XY coordinate exchange only. The Hall Push function is totally
disabled.
This mode is used for debug mode, if timing analysis, with e.g. an oscilloscope, is
required, and simplifies the readout of signal and timing interpretation.
Firmware update mode: Push and hold Button    simultaneously and power up
the demo board with the USB cable.
All the LEDs are ON. The AS5013 is in “Bootloader mode”. This mode is used to update
the firmware of the demo board if a new file is available on the ams website:
Firmware update:
To update the firmware, just open the AS501X Evaluation Software 4.1.6 or newer and connect
the demoboard with the USB cable while pressing all three buttons as shown below. A window to
choose the firmware file will pop up automatically.
Figure 4:
Firmware Update Instructions
www.ams.com
Revision 2.1 / 08/01/13
page 6/12
AS5013 – Demo Kit User Manual
4. Schematics
Figure 5:
AS5013_DB_2.1 Schematics
Vusb
LED_R DS1
Vertical mode
R1
7
C1
10u
RegIn
P2.7
P2.6
P2.5
P2.4
P2.3
P2.2
P2.1
P2.0
3.3V
6
GND
VDD
C2
1u
3
GND
GND
J2
ISP
J3
9
10
1
2
3.3V
3
4
Header 4 GND
RST/C2CK
P3.0/C2D
Vusb
8
5
4
1
2
3
4
5
6
USB_mini
USB
GND
VBUS
DD+
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
750R
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
1
2
S1
R2
RESETn
LEDv
LEDh
LED_R DS2
Horizontal mode
750R
R5
R6
ButtonDOMEnR7
Button3n
R8
Button2n
R9
Button1n
R10
R11
INTn
R12
DIR
SCL
SDA
NSS
MOSI
MISO
SCK
750R
LED_G DS4
Center (0,0)
750R
nc
GND Vusb
nc
100k
100k
100k
100k
100k
100k
3.3V
R13
R14
GND
11
3.3V
C4
470n
GND
8
CLR
CLKI
VCC
9
CLKO
10
CLKO
QD
QE
QF
QG
QH
QI
QJ
QL
QM
QN
GND
GND M74HC4060M1R
7
5
4
6
14
13
15
1
2
3
R20
2.2k
C3
470p
GND
GND
R21
GND
2.7k
GND
1
2
23
32
3
22
24
25
26
29
31
3.3V
27
C5
1u
30
0
CLK
SDI
SDO
LD
MODE
XERR
GSCLK
TEST
Iref
PD
OEN
VCC
GND
EPAD
OUT0
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
OUT9
OUT10
OUT11
OUT12
OUT13
OUT14
OUT15
4
5
6
7
8
9
10
11
14
15
16
17
18
19
20
21
PS/2
GND
EasyPoint Module
3.3V
SDA
SCL
RESETn
INTn
ButtonDOMEn
DS6
LED_G
DS8
2
1
4
3
6
5
8
7
10 9
12 11
14 13
16 15
VUSB Header 8X2
GND
3.3V
3.3V
SDA GND
SCL
RESETn
INTn
ButtonDOMEn
R17
3.3V nc
R18
I²C addr = 0x400R
1
2
3
4
5
6
7
8
9
U2
VDDp
VDD
GND
SDA
SCL
RESET/
INT/
SWITCH/
ADDR
GND
NxxP11x
GND
GND
LED_G
DS9
U3
SCK
MOSI
MISO
NSS
3.3V
MCLSS22
1
2
3
4
Header 4
Vusb
nc
nc
GND
LED_G
DS7
R19
4.7k
16
GND
6
J1
J4
3.3V R15 4.7k
R16 4.7k
C8051F320
U4
4
5
DS5
12
2
LED_Y DS3
Hall Push
R4
PS2_DATA
PS2_CLK
1
DIR
3
R3
0
U1
Vusb
SW1
LED_G
Button1n 1
2
3
4
LED_G DS10
DS11
LED_G
LED_G
DS13
LED_G
DS15
DS12
LED_G
DS14
GND Switch_SKHC
SW2
2
Button2n 1
LED_G
LED_G
1
2
3
4
LED_G
3
DS17
SW3
Button3n
4
DS16
LED_G
DS18
GND Switch_SKHC
GND Switch_SKHC
AS1112
GND
DS19
LED_G
LED_G
DS20
LED_G
LG1
AMS
AMS Logo
The microcontroller C8051C320 (U1) from SiLabs includes an on-chip USB interface. The
firmware is stored in its internal flash memory (16kB).
The whole power supply is taken from the USB bus by the microcontroller, and converts it
internally to 3.3V. No external LDO is required. The AS5013 is directly powered (VDD and
VDDp) by this 3.3V supply.
Connector J4 is used if an external MCU has to be connected to the AS5013 of the demo board,
instead of the C8051F320. In that case, cut the PCB tracks (bottom side) to disconnect the
N40P112 module from the MCU.
www.ams.com
Revision 2.1 / 08/01/13
page 7/12
AS5013 – Demo Kit User Manual
Figure 6:
Disconnecting the Module from the MCU
Cut tracks along the yellow line
Connector J1 is not used and connector J2 is used for ISP programming of the microcontroller
only. All the switches (dome switch: Button EP, Button I, Button II, Button III) are connected
directly to the microcontroller. The unique I²C serial bus (SCL, SDA) controlled by the C8051
microcontroller is used for the EasyPoint
TM
module (AS5013). The interrupt output INTn is
connected directly to the MCU interrupt input.
www.ams.com
Revision 2.1 / 08/01/13
page 8/12
AS5013 – Demo Kit User Manual
5. Layout
Figure 7:
PCB Top and Bottom View
PCB Top view
www.ams.com
PCB Bottom view
Revision 2.1 / 08/01/13
page 9/12
AS5013 – Demo Kit User Manual
6. Ordering Information
Table 2:
Ordering Information
Ordering Code
Description
comments
AS5013-DB-2
AS5013 Demo Kit
AS5013 Demo board in gamepad-shape
www.ams.com
Revision 2.1 / 08/01/13
page 10/12
AS5013 – Demo Kit User Manual
Copyright
Copyright © 1997-2012, 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.
All products and companies mentioned are trademarks or registered trademarks of their respective companies.
Disclaimer
Devices sold by ams AG are covered by the warranty and patent indemnification provisions appearing in its
Term of Sale. ams 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. ams
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 ams 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 life sustaining equipment are specifically not recommended without additional
processing by ams AG for each application. For shipments of less than 100 parts the manufacturing flow might
show deviations from the standard production flow, such as test flow or test location.
The information furnished here by ams AG is believed to be correct and accurate. However, 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 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.
Contact Information
Headquarters
ams AG
Tobelbader Strasse 30
8141 Unterpremstaetten
Austria
T. +43 (0) 3136 500 0
For Sales Offices, Distributors and Representatives, please visit:
http://www.ams.com/contact
www.ams.com
Revision 2.1 / 08/01/13
page 11/12