Ps/2 mouse/keyboard port, Chapter 8: ps/2 mouse/keyboard port, Chapter 8, “ps/2 mouse/keyboard port – Digilent 410-087P-KIT User Manual
Page 61: Chapter 8
![background image](/manuals/672890/61/background.png)
Spartan-3E Starter Kit Board User Guide
61
UG230 (v1.0) March 9, 2006
R
Chapter 8
PS/2 Mouse/Keyboard Port
The Spartan-3E Starter Kit board includes a PS/2 mouse/keyboard port and the standard
6-pin mini-DIN connector, labeled J14 on the board.
shows the PS/2 connector,
shows the signals on the connector. Only pins 1 and 5 of the connector attach
to the FPGA.
Both a PC mouse and keyboard use the two-wire PS/2 serial bus to communicate with a
host device, the Spartan-3E FPGA in this case. The PS/2 bus includes both clock and data.
Both a mouse and keyboard drive the bus with identical signal timings and both use 11-bit
words that include a start, stop and odd parity bit. However, the data packets are
Figure 8-1:
PS/2 Connector Location and Signals
Table 8-1:
PS/2 Connector Pinout
PS/2 DIN Pin
Signal
FPGA Pin
1 DATA
(PS2_DATA)
G13
2
Reserved
G13
3
GND
GND
4
+5V
—
5
CLK (PS2_CLK)
G14
6
Reserved
G13
1
5
3
2
4
6
270
Ω
270
Ω
PS2_DATA: (G13)
PS2_CLK: (G14)
UG230_c8_01_021806