Digital Signal Processing Reference
In-Depth Information
11.13 For Additional Information
The IBM PS/2 Hardware Interface Technical Reference Manual, IBM
Corporation, 1988 contains the original PS/2 information on the keyboard and
mouse in the Keyboard and Auxiliary Device Controller Chapter. Scan codes
for the alternate scan code set normally used by the PC can be found on the
web and in many PC reference manuals.
11.14 Laboratory Exercises
1. Write a VHDL module to read a keyboard scan code and display the entire scan code
string in hexadecimal on the VGA display using the VGA_SYNC and CHAR_ROM
FPGAcores. It will require the use of the read and scan ready handshake lines and a small
RAM to hold the scan code bytes.
2. After reading the section on the PS/2 mouse, design an interface that can also send
commands to the keyboard. Demonstrate that the design works correctly by changing the
status of the keyboard LEDs after reading the new settings from switches.
3. Develop a keyboard module that uses the alternate scan code set used by the PC.
4. Write the keyboard module in another HDL such as Verilog.
5. Use the keyboard as a new input device for a video game, the ΜP1 computer, or another
application.
6. Generate a video display that has a moving cursor controlled by the mouse using the
Mouse and VGA_Sync FPGAcores. Use the mouse buttons to change the color of the
cursor.
7. Use the mouse as input to a video etch-a-sketch. Use a monochrome 128 by 128 1-bit
pixel RAM with the VGA_Sync core in your video design. Display a cursor. To draw a
line, the left mouse button should be held down.
8. Use the mouse as an input device in another design with video output or a simple video
game such as pong, breakout, or Tetris.
9. Write a mouse driver in Verilog. Use the mouse information provided in sections 11.2
and 11.3.
Search WWH ::




Custom Search