How to turn a digital signal into a analog voltage

Mar 12, 2007 1 Replies

I'm trying to figure our the best way to convert a PS/2 mouse signal to voltages ie: mouse move up +5v mouse move down 0v mouse not move at all 2.5v



I know that PS/2 mice use PIC circuits, and use binary values between



0 to 255 for direction and speed. I am trying to hook up an adapter to connect my PS/2 mouse to a game/ midi port.

any assistance would be greatly apreciated.



thanks!



On a sunny day (11 Mar 2007 21:05:36 -0700) it happened snipped-for-privacy@gmail.com wrote in :

:-)

Been a while since I did a mouse driver..... It is a serial protocol, there are everal MS, Genius, others... Once you decide on one or more of those protocols, it is software. Old serial port mouse was just 1200Bd or so? async ,and needed an UART.

The PS2 protocol is like the keyboard, and uses data and clock. You need some shift register to decode / encode that.

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required