avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] PS2 mouse interface code


From: Rune Christensen
Subject: RE: [avr-gcc-list] PS2 mouse interface code
Date: Tue, 18 Nov 2003 10:39:31 +0100

Hi

The ps/2 protocols (mouse & keyboard) are both two level protocols where the
lowest level (hardware) is equal :-)

So the communication method is the same but of course the commands are not
exactly the same.

Just like TCP & UDP that both are using IP :-)

It should be possible to split the code up in two sections the interface and
the commands.

To Al Boehnlein:

The lowest level:

The mouse produce the clock signal and it should be connnected to an
interrupt port.
Then you just need to read the datapin for each clock and do some shifting.

The upper level:

Receive and handle mouse commands.

If you still are missing some code please send an email to me and I will
create some code for you.
You wrote about some old code maybe I could help porting the old code to the
mega169.

Rune

-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Joerg Wunsch
Sent: Tuesday, November 18, 2003 9:50 AM
To: address@hidden
Subject: Re: [avr-gcc-list] PS2 mouse interface code


As Keith Gudger <address@hidden> wrote:

>Sorry, but keyboard and mice protocols are not the same.

>From the host's point of view, what's the difference between both?

OK, mice have no (switchable) LEDs. :-)
--
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]