Page 1 of 1
Mouse
Posted: Tue Oct 21, 2003 11:00 pm
by SystemHalted
What ports do I have to read/write to to enable the mouse, and what ports do I have to read from to get the mouse information. And is there a difference between the ports in a serial mouse and a PS/2 Mouse?
thanks
SystemHalted
RE:Mouse
Posted: Wed Oct 22, 2003 11:00 pm
by Jamethiel
For a PS/2 mouse, you need to read/write to/from the keyboard ports.
For a serial mouse, you need to read/write to/from the com port ports.
For further information, hit up google.
RE:Mouse
Posted: Tue Oct 28, 2003 12:00 am
by Ramanan
refer this message :
http://www.osdev.org/board.jsp?message=4843
http://www.osdev.org/board.jsp?message=4896
It contains very detail explanation & simple example code for PS/2 mouse. (Thanks to gaffi)
For futher detail like PS/2 3D mouse, 5 button mouse refer this link
http://panda.cs.ndsu.nodak.edu/%7Eachap ... mouse.html
Actually PS/2 mouse u have to send the commands to PS/2 keyboard port ie. 0x60.
and status u got to check on 0x64 port.
To send command to mouse u have to write first 0xD4 byte to the keyboard port and then write the mouse command or parameter to the same keyboard port. Whetever the byte written after 0xD4 will be send to the mouse from keyboard.
rgds
YogaRamanan.T