User manual

Multimedia Expansion Board User’s Guide
DS61160A-page 24 © 2010 Microchip Technology Inc.
2.5 JOYSTICK AND FIRE BUTTON
The Multimedia Expansion Board provides a four direction joystick with a fire button
(Figure 2-9). The directional joystick and fire button can be used to interact with and
provide feedback to an application. The joystick (S2) is also connected to the fire button
(S1), as shown in Figure 2-10, which allows the user to press either the fire button or
the joystick to register a fire command.
FIGURE 2-9: JOYSTICK (S2 SWITCH)
FIGURE 2-10: FIRE BUTTON (S1 SWITCH)
FIGURE 2-11: JOYSTICK AND FIRE BUTTON CONNECTION SCHEMATIC
TABLE 2-4: JOYSTICK AND FIRE BUTTON CONNECTIONS
Joystick and Fire Button Pin Description Expansion Connector Pin
Up RB1/CN3
Down RB3/CN5
Left RB0/CN2
Right RB4/CN6
Fire RB15/CN12
AN1/CN3/RB1 AN4/CN5/RB4
AN0/CN2/RB0 AN3/CN4/RB3
AN15/CN12/RB15
AN15/CN12/RB15
UP
FIRE
LEFT
FIRE
RIGHT
DOWN