In my previous post i have mentioned about make code & break code. They are wrong. According to online information correct format is here.
when i press Key A
Then make code is $1C & release code is $F0, $1C.
Good thing is when i pull down clock line to low after receiving make code then key board will wait for clock line to go high then send balance release code. Now we can not loose any byte from keyboard.
if i pulldown clock line & after some time i will release clock line then how many time (time in micro second ) will keyboard take to start transmisssion. I could not find this information .
If we want to interface our project with ps2 then we must know timeout from keyboard otherwise pic micro will wait for ever data & program goes hang until data received from ps2 keyboard.
Re: pic to ps2 communication
8 years 2 months ago #8648
I'm not sure if Roshan finished the module, although this was one of a couple of reasons I made my own module a while back. It was written with Swordfish, it's a form of "Basic" so it should be easy enough to translate.
The article that I released the module with includes a fair amount of info which should help along the way. Also, there are some handy links at the bottom of the article.