The attached Codevision code is for an Atmega32a-based accelerometer mouse that interfaces to the computer via PS/2 protocol. (Notice this is not PlayStation2, it's this: http://www.computer-engineering.org/ps2protocol/)
I have been able to show that the ADC portion works, which is dataFromMouse(), however I'm still not getting any mouse movement. All the outputs of the uC remain at +5V (idle state) all the time.
I honestly don't have a clue where to start debugging this huge program, other than putting LED lighting commands in strategic places. If anyone has any prior experience with this, I would greatly appreciate any suggestions on how to approach this.
Thanks in advance.
I've attached the file with the code, as well as the schematic.
Some differences in my setup:
* Instead of a crystal, I'm using int.RC 8 MHz.
* Not using the buffers.
* AREF has a 100nF capacitor to GND
Also I should mention I don't have an LCD, though there's code for it.
I got a PS/2 cable from an old mouse and am using it to go directly from the uC to the computer. (I don't think the cable is the problem, I made sure the mouse worked before I cannibalized it.) I was able to match the wires to the pins. No converter should be needed in this case. This is an HID device and the Windows built-in driver is supposed to recognize it.
When I google, all I get is PlayStation2, unfortunately that's not what I'm looking for. :?
(As an aside, when I click on the Msg Icon or Smiles buttons under the quick reply box, I get a window that says "Hacking attempt1".)