Joystick

The EVK1100 provides a joystick to design Human to Machine Interface for software developments.



Pinout

The joystick inputs are low level active1. The pinout is as follows:

Joystick Pin Joystick Direction GPIO Name Alternate function used
Joy_A LEFT PA 25 SCAN_0
Joy_B UP PA 26 SCAN_1
Joy_C DOWN PA 27 SCAN_2
Joy_D RIGHT PA 28 SCAN_3
EXTINT PUSH PA 20 EXTINT_8
Figure 1. Hardware Schematic

Using Interrupts

In order to use the joystick, two ways are available:

Using GPIO interrupts need to:

1 The PVR register value is 0 when the joystick is set in a direction and/or pressed, and 1 otherwise
2 This mode should be the better for the joystick