VHDL Code for Mouse

Discussion in 'Programmer's Corner' started by adiiscool20, Aug 7, 2009.

  1. adiiscool20

    Thread Starter New Member

    Aug 7, 2009
    3
    0
    i need a vhdl code for mouse working.how does a mouse move and how does the counter count the movement of mouse and send to cpu.basically i require a code in vhdl on how mouse works?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  3. adiiscool20

    Thread Starter New Member

    Aug 7, 2009
    3
    0
    hey thanks for the link i learnt a alot from it..but i need a code for how the horizontal n vertical movements are counted..how the led signals are counted???
     
  4. vjabagch

    New Member

    Jul 23, 2009
    4
    0
    What type of mouse protocol is your module for?

    Do you know how the mouse protocol works?
     
  5. scythe

    Active Member

    Mar 23, 2009
    49
    5
    Hey adiiscool20, what you are looking for is how to code a VHDL PS2 interface. I haven't ever coded one myself, but if you do a google search, you should be able to find something that will help you. I have some friends who did this for their final projects in my hardware design class last semester, and they coded a PS2 interface to utilize a mouse.

    Sorry I can't be more helpful, but hopefully that will point you in the right direction. ^^
     
  6. adiiscool20

    Thread Starter New Member

    Aug 7, 2009
    3
    0
    hey thanks for the previous information.can u plz guide me a little bit on this project.i have been told to work on this project mentiones below:
    "To make a shaft encoder into FPGA so as to study it as hardware"
    I AM NOT ABLE TO UNDERSTAND WHAT actually i have to do??can u please explain a little bit plz.........
     
  7. vjabagch

    New Member

    Jul 23, 2009
    4
    0
    A mouse protocol is an agreed upon way (decided by engineers who pioneered the interface) how to communicate with a device, namely the mouse. There are a great number of protocols out there for different devices. For example, a USB works differently than a PS2 mouse.

    Try these two links

    This is a link for a PS2 protocol

    http://www.computer-engineering.org/index.php?title=PS/2_Mouse/Keyboard_Protocol


    This is a link for a PS2 Interface

    http://www.computer-engineering.org/index.php?title=PS/2_Mouse_Interface
     
Loading...