OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:37 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Something unclear about PS/2 keyboard documentation
PostPosted: Thu Sep 21, 2017 11:52 pm 
Offline
Member
Member

Joined: Tue Feb 28, 2017 10:22 am
Posts: 25
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.


Top
 Profile  
 
 Post subject: Re: Something unclear about PS/2 keyboard documentation
PostPosted: Fri Sep 22, 2017 12:13 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 17, 2016 4:55 am
Posts: 251
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).


Top
 Profile  
 
 Post subject: Re: Something unclear about PS/2 keyboard documentation
PostPosted: Fri Sep 22, 2017 5:52 am 
Offline
Member
Member

Joined: Tue Feb 28, 2017 10:22 am
Posts: 25
I can confirm that for every byte we send to the keyboard, he will reply with an ACK.
Thank you !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot] and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group