trix312
Newbie level 6
Hello.
I'm programming a microcontroller so that it can use the PS/2 protocol to communicate with my computer. So far I have managed to program it so that it sends make codes for characters which are then correctly printed on my computer display, it uses the typematic delay and typematic rate and seems to be working fine. I understand that when a key is pressed, its make code is sent and when a key is released a break code is sent (0xF0) followed by the keys make code.
This is the part which does not seem to work. For instance when a key like shift is released all the characters are still being sent in uppercase.
I am sending data one byte at a time in 11 bit frames (inc. start, stop and parity bit). But the host(computer) is not reacting to the break code. How exactly is the break code sent after a key is released. Could anyone provide me with an example.
Thanks.
I'm programming a microcontroller so that it can use the PS/2 protocol to communicate with my computer. So far I have managed to program it so that it sends make codes for characters which are then correctly printed on my computer display, it uses the typematic delay and typematic rate and seems to be working fine. I understand that when a key is pressed, its make code is sent and when a key is released a break code is sent (0xF0) followed by the keys make code.
This is the part which does not seem to work. For instance when a key like shift is released all the characters are still being sent in uppercase.
I am sending data one byte at a time in 11 bit frames (inc. start, stop and parity bit). But the host(computer) is not reacting to the break code. How exactly is the break code sent after a key is released. Could anyone provide me with an example.
Thanks.