Chapter 11 describes the PS/2 keyboard and mouse operation and presents interface examples for integrating designs on an FPGA board. Keyboard scan code tables, mouse data packets, commands, status codes, and the serial communications protocol are included. VHDL code for a keyboard and mouse interface is also presented.
The PS/2 interface was originally developed for the IBM PC/AT’s mouse and keyboard in 1984. The Altera FPGA boards support the use of either a mouse or keyboard using a PS/2 connector on the board (not both at the same time). This provides only the basic electrical connections from the PS/2 cable and the FPGA chip. It is necessary to design a hardware interface using logic in the FPGA chip to communicate with a keyboard or a mouse. Serial-to-parallel conversion using a shift register is required in the interface hardware.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
(2008). Interfacing to the PS/2 Keyboard and Mouse. In: Rapid Prototyping of Digital Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-72671-7_11
Download citation
DOI: https://doi.org/10.1007/978-0-387-72671-7_11
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-72670-0
Online ISBN: 978-0-387-72671-7
eBook Packages: EngineeringEngineering (R0)