I am creating a mapping robot for a final project in a class and I am having some trouble learning how to interface the PIC16F877A with a PS2 mouse. Basically what I am trying to do is find out how much the mouse has moved in the X-Y position and read this into the PIC. I was wondering if someone could point me in the right direction on how to do this? I found a few example codes but they are for modeling mice instead of reading from them. Also: Can you set this up using the RS-232 communication? The protocols seem very similar between PS2 and RS 232.