alunaro
Member level 5
- Joined
- Jan 15, 2002
- Messages
- 91
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Another world
- Activity points
- 770
Hi, I'm trying to emulate a AT keyboard with pic, but there're some obscure points about protocol that I don't understand, and have no information about. all information will be welcomed:
Questions:
1- if keyb is retransmiting last byte (because host sent a Resend) and host inhibits the bus in the middle of transmition
, after processing the new command... keyb should resend the last byte without waiting for Resend command or should wait
for a Resend comand from host?. IE:
keyb host
Z ----->
A ----->
<---- Resend
A --X (host inhibit bus) why? I think Host can do it.
<---- sends another comand -not Resend-
???? ----->
should keyb try to send again key "A"? next key in buffer? wait another Resend commando from host? ...?
how sending "A" keyb was interrupted, the LastKey sent will be "Z"?
2- This case:
keyb host
A ----->
<---- command (not resend)
ACK ----->
<---- Resend
???? ----->
what should resend the keyboard? "A" key, or only "ACK", or the complete command packet?
3- how many Resends must send the keyboard before sending a 0xFC? (I think 1 resend and if the second byte from host
is still wrong, then keyb sends oxFC)
what does keyb after transmiting a 0xFC error code? stands waiting commands from host? stops keys scanning? ...?
Thanks!!
Questions:
1- if keyb is retransmiting last byte (because host sent a Resend) and host inhibits the bus in the middle of transmition
, after processing the new command... keyb should resend the last byte without waiting for Resend command or should wait
for a Resend comand from host?. IE:
keyb host
Z ----->
A ----->
<---- Resend
A --X (host inhibit bus) why? I think Host can do it.
<---- sends another comand -not Resend-
???? ----->
should keyb try to send again key "A"? next key in buffer? wait another Resend commando from host? ...?
how sending "A" keyb was interrupted, the LastKey sent will be "Z"?
2- This case:
keyb host
A ----->
<---- command (not resend)
ACK ----->
<---- Resend
???? ----->
what should resend the keyboard? "A" key, or only "ACK", or the complete command packet?
3- how many Resends must send the keyboard before sending a 0xFC? (I think 1 resend and if the second byte from host
is still wrong, then keyb sends oxFC)
what does keyb after transmiting a 0xFC error code? stands waiting commands from host? stops keys scanning? ...?
Thanks!!