Datasheet

PmodJSTK2™ Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 2 of 9
2 Specifications
Note¹: Data in the Typical Column uses V
CC
at 3.3V unless otherwise noted
Note²: Normal operation with the RGB LED Off and no buttons pressed
Note³: Normal operation with the RGB LED set to white and both buttons pressed
3 Interfacing with the Pmod
The PmodJSTK2 communicates with the host board via the SPI protocol. With the PmodJSTK2, there are two types
of data packet protocols: the standard data packet of 5 bytes and an extended data packet with 6 or 7 bytes in
total. With the standard 5 byte protocol, users may use the old code from the PmodJSTK without any syntax errors.
The 5 byte packet structure is provided in the image below:
As noted in the standard data packet structure, users may either send a zero and a series of 4 dummy bytes to
receive the standard 5 bytes of data or they may send a single command byte with up to 4 parameters in the four
following bytes to set the internal values such as the joystick calibration or on-board RGB LED.
The extended data protocol allows for additional data to be obtained from the device during a communication
session after the standard 5 bytes of information such as normalized 8-bit positional data for each axis. Users may
also obtain the current calibration values and the status of the module through this method.
Parameter
Min
Typical
1
Max
Units
Recommended Operating Voltage
3.1
3.3
3.5
V
Maximum Supply Voltage
-
-
5.5
V
Power Supply Current
2
-
4.85
-
mA
Power Supply Current
3
-
17.6
-
mA
Parameter
Value
Units
Maximum Joystick Angle
25
Degrees
Communication Protocol
SPI