Copyright © 2003 Avnet, Inc. AVNET and the AV logo are registered trademarks of Avnet, Inc. All other trademarks are property of their respective owners.
Avnet Electronics Marketing
20 of 33
Rev 1.0 04/17/2006
Released
Literature # ADS-005104
2.8 PS2 Keyboard & Mouse Ports
The Spartan-3 Dev Board includes two standard 6-pin Mini-Din (PS2)
connectors labeled JS1 and JS2. This two-wire interface will provide connection to PS2 Mice or Keyboards. Since this is a two wire
interface, only pins Data (pin-1) and Clk (pin-5) are connected to the FPGA. The following table provides the pinout for JS1 & JS2.
Pin
Function
*HDR Equivalent Net
FPGA Pin#
JS1 – pin 1
Data
HDR_IO(37)
AA24
JS1 – pin 5
CLK
HDR_IO(38)
AF24
JS2 – pin 1
Data
HDR_IO(39)
AB25
JS2 – pin 5
CLK
HDR_IO(40)
AB26
* Note: PS2 signals are connected to the FPGA by way of a bus switch (JP20 ON). This allows the re-use of header signals. If you
wish to use the 50-pin header J17, you may disable the bus switches by removing JP20. Removing JP20 will disconnect the PS2
connectors from the FPGA.
PS2 Mouse/Keyboard protocol information may be found at:
http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm
2.9 Dip & Push-Button Switches
An eight-position dipswitch (SPST) has been installed on the board and attached to the FPGA. These switches provide digital inputs to
user logic as needed. The signals are pulled low (0) by 10K ohm resistors when the switch is open and tied to 2.5V (1) when the switch
is closed.
Switch #
Signal Name
FPGA pin#
S1-1 SWITCH0
F1
S1-2 SWITCH1
F2
S1-3 SWITCH2
F3
S1-4 SWITCH3
G4
S1-5 SWITCH4
F4
S1-6 SWITCH5
G5
S1-7 SWITCH6
H6
S1-8 SWITCH7
H13
Table 15 - Dipswitch FPGA Pin-out
Two momentary closure push buttons have been installed on the board and attached to the FPGA. These buttons can be programmed
by the user and are ideal for logic reset and similar functions. Pull down resistors hold the signals low (0) until the switch closure pulls it
high (1).
Silkscreen Part #
Signal Name
FPGA pin#
SW2 SWITCH_PB1
H14
SW3 SWITCH_PB2
H15
Table 16 - Pushbutton FPGA Pin-out
5
3
1
2
4
6
5
3
1
2
4
6
CLK
DATA