ps2 connector data ?

Status
Not open for further replies.

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
I am wondering how ps2 connectors for keyboards delimit a logical zero from a logical one.

For example if I hooked up the ps2 connector pins to a MCU how do I know when the keyboard is sending a one or a zero.

Basically from the pinout and this
http://pinouts.ru/Inputs/KeyboardPC6_pinout.shtml

I know that every time you press a key on the keyboard an 11bit packet of data is send 8 bits of it being the ascii code of the given key pressed.

But I don't understand what voltage is a logical one and what is a logical zero? What to do with the clock pin / data pin to get the actually 101010010001100 data ...etc

I know I just connect the ground pin to ground and VCC pin to 5volt dc supply but as for the clock or data pins do I just connect them to two seperate MCU pins...?

Thanks for any help
This should be to hard
 
Status
Not open for further replies.
Top