Something unclear about PS/2 keyboard documentation

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ankeraout
Member
Member
Posts: 25
Joined: Tue Feb 28, 2017 10:22 am

Something unclear about PS/2 keyboard documentation

Post by Ankeraout »

Hello,

I am currently developing my PS/2 keyboard driver, and having some troubles with "ACK" signal wait etc...
So in the wiki, we can read this : Image

To me, it means that the keyboard will send "ACK" only after having sent the command byte AND the data byte.

Using QEMU, I've been receiving an ACK for keyboard reset command, then an ACK for 0xED, and then an ACK for LED states data byte, and so I'm lost and don't know how it should normally behave.

Thanks by advance,
Ankeraout.
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: Something unclear about PS/2 keyboard documentation

Post by Sik »

Going by memory, but I think you do indeed get an ACK for each byte. In fact, you need to wait for the first ACK before you send the second byte (the ACK is the keyboard telling you that it just processed the byte).
Ankeraout
Member
Member
Posts: 25
Joined: Tue Feb 28, 2017 10:22 am

Re: Something unclear about PS/2 keyboard documentation

Post by Ankeraout »

I can confirm that for every byte we send to the keyboard, he will reply with an ACK.
Thank you !
Post Reply