Analysis and Application of PS/2 Device Interface Protocol

The protocol of PS/2 and it's interface features of electrical parameters are analyzed.The standard scan code set 2 is also introduced.A real keyboard with PS/2 interface based on embedded system is presented. Both software and hardware implementation are also given.The conflict problem of attaching two keyboards on one PC by using the chip CD4052 is resolved.