This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > FPGA Technical Tutorials > Design Recipes for FPGAs Using Verilog and VHDL > PS/2 Mouse Interface > PS/2 Operation Modes

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

PS/2 Operation Modes

FONT SIZE : AAA

The PS/2 mouse operates in four basic modes. On power up the mouse goes into a reset mode and this can also be initiated by a reset command from the host, which is defined as 0xFF. 

After reset has been completed, the mouse automatically goes into a stream mode in which the data is streamed back from the mouse to the host. These two modes are the most commonly used modes of operation for most applications, but there are two other modes used, which are remote and wrap. These are mostly useful in testing that the interface is operating correctly. 

In the reset mode the mouse itself will reset and carry out some basic self checks. The default settings are then defined for the mouse to operate with, which are a sample period of 10ms, a basic resolution of 4 counts per mm, a 1 to 1 scaling and the data reporting option is disabled. The mouse sends a device ID of 0x00 to the host to let it know that it is not a keyboard or more complex mouse, just a basic PS/2 mouse. 

Once the mouse is running it goes into stream mode and the mouse will send packets to the host at the defined sample rate of activity, such as mouse movement or button presses. The mouse ONLY sends data when activity is present, otherwise it will do nothing. 

If the mouse is asked by the host to go into remote mode, then the mouse only sends data when requested by the host, and finally in wrap mode, the mouse sends back every command to the host (apart from the reset and reset wrap commands). 

  • XCV300-5FGG456C

    Manufacturer:Xilinx

  • FPGA Virtex Family 322.97K Gates 6912 Cells 294MHz 0.22um Technology 2.5V 456-Pin FBGA
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS:

  • XCV300-6FGG456C

    Manufacturer:Xilinx

  • FPGA Virtex Family 322.97K Gates 6912 Cells 333MHz 0.22um Technology 2.5V 456-Pin FBGA
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS:

  • XC5VLX110T-3FFG1136C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LXT Family 110592 Cells 65nm Technology 1V 1136-Pin FCBGA
  • Product Categories: FPGAs (Field Programmable Gate Array)

    Lifecycle:Active Active

    RoHS:

  • XC5VLX155-1FF1760C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1760-Pin FCBGA
  • Product Categories: Dispositif de protection de circuit

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC5VLX155-1FFG1760C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1760-Pin FCBGA
  • Product Categories: FPGAs (Field Programmable Gate Array)

    Lifecycle:Active Active

    RoHS:

Need Help?

Support

If you have any questions about the product and related issues, Please contact us.