The invention discloses a keyboard compatible with PS2 and
USB and a control method thereof, and belongs to the technical field of industrial
computer keyboard peripherals, the keyboard comprises a keyboard body and a connector; the connector is provided with a
positive power supply pin, a ground pin and two communication pins; the keyboard body comprises a row and column scanning circuit, a master control MCU and a communication selection module. The communication selection module is used for sending a high-level
signal or a low-level
signal to the main control MCU so as to trigger a
USB communication protocol or a PS2 communication protocol; the main control MCU is electrically connected with the row and column scanning circuit; the main control MCU is electrically connected with the connector, the main control MCU is provided with a
USB communication protocol and a PS2 communication protocol, the main control MCU triggers the corresponding communication protocol according to the received level
signal, and the key information is converted into a communication signal corresponding to the communication protocol according to the communication protocol; and the converted communication signal is transmitted to a computer through a connector. According to the invention, the compatibility of PS2 communication and USB communication can be realized, and the method is suitable for a computer adopting PS2 communication and a computer adopting USB communication.