+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 1
    Points: 1,427, Level: 8
    MUKESH.K.S's Avatar
    Join Date
    Jan 2014
    Location
    KERALA
    Posts
    98
    Helped
    14 / 14
    Points
    1,427
    Level
    8

    PS2 MOUSE emulation using PIC

    I want to make a PS/2 based mouse using PIC18f4550 ( i am doing it just for learning the ps/2 protocol and interfacing). I have read about the ps/2 communication from the internet. I am confused with the ps/2 protocol and PIC's serial port. I want to know which of the serial communication module of PIC such as EUSART or SPI i have to use and in which mode.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: PS2 MOUSE emulation using PIC

    have a look at
    http://computer-engineering.org/ps2protocol/
    http://www.computer-engineering.org/ps2mouse/

    I think you need to use digital IO pins and do you own software to drive the clock and data using timer interrupts



  3. #3
    Full Member level 1
    Points: 1,427, Level: 8
    MUKESH.K.S's Avatar
    Join Date
    Jan 2014
    Location
    KERALA
    Posts
    98
    Helped
    14 / 14
    Points
    1,427
    Level
    8

    [Moved]PS/2 MOUSE emulation using PIC

    I am doing a project using Pic18f4550 to make a mouse using PC's ps/2 port. I learned about the ps/2 port and communication from http://computer-engineering.org/
    I have made codes for sending and receiving the data with ps2/ port.
    When i checked the pins of mouse's ps2 port the clock line is always showing zero. The micro-controller is unable to send anything since the clock line is always zero. Why this happens? is the ps2 port needs any special driver software?. Then i connected it with keyboard's ps2 port and checked the clk & data line and there is no problem both pins shows 5 v on multimeter. I also found that the keyboard's port is sending reset command to the PIC. Why the mouse's port not working?
    Last edited by FvM; 7th September 2014 at 15:52. Reason: Moved to existing thread



--[[ ]]--