SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By michay
#44780
Hello everyone!
Me and my partner are working on some project, which involves the MSP430 MCU.
Our task is to make the computer identify the board as a mouse, so
that we can control the mouse by debugging the board in a certain way.
We think that we should imitate the signals that a mouse sends to the
computer's processor when it operates.

Is there a chance you can provide us with some mouse source codes, or
share another way of doing this with us?

Thanks, Alex & Micha
By OldCow
#44800
I presume you are talking about mice on Windows PC.

There are at lease three kinds of interface. One uses the COM Port, another one uses PS/2 Port, and a third one uses USB.

You probably should try to emulate a COM Port mouse.

First, you need to convert the RS232 signals to/from the COM Port of the Windows PC into 3.3V signals from/to your MSP430 chip. The RS232 signals from the COM Port can also be used to supply the power to operate your MSP430. (That is how the mice operate too.)

Next, you need to write MSP430 firmware to do what Microsoft wants a mouse to do. You can find this information from Microsoft. No, I do not know exactly where. But, yes, the information is there. In my opinion, it is a big pile of nonsense. But if you want it to work with Windows, that is what you have to do.