CN205193738U - Support PS2 and USB double nip keyboard of special function key - Google Patents
Support PS2 and USB double nip keyboard of special function key Download PDFInfo
- Publication number
- CN205193738U CN205193738U CN201520959010.8U CN201520959010U CN205193738U CN 205193738 U CN205193738 U CN 205193738U CN 201520959010 U CN201520959010 U CN 201520959010U CN 205193738 U CN205193738 U CN 205193738U
- Authority
- CN
- China
- Prior art keywords
- keyboard
- circuit
- interface
- usb
- double nip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Abstract
The utility model provides a support PS2 and USB double nip keyboard of special function key relates to computer external equipment field, and its structure includes that PS2 and USB interface detection circuitry, 5V change 3.3V's level shifting circuit, the debugging interface circuit of C2 interface, and lamp driving circuit is instructed to the keyboard, keyboard matrix interface circuit, each circuit is all connected on the controller. The utility model discloses advantages such as simple, the with low costs and double nip of circuit can regard as general purpose computer peripheral equipment to use.
Description
Technical field
The utility model relates to field of computer peripherals, specifically a kind of PS/2 and USB double nip keyboard supporting special function keys.
Background technology
PS/2 is a kind of bi-directional synchronization serial protocol, namely each data line sends a data and on clock line, often send out a pulse to be just read into.PS/2 keyboard can send data to main frame, and main frame also can send data to PS/2 equipment, but main frame has right of priority in bus.PS/2 interface forms primarily of data-signal, clock signal, power supply and power supply.Main frame at any time, can come from the communication of keyboard by clock being dragged down suppression.
USB is a kind of serial bus standard, adopts differential signal transmission data, can strengthen antijamming capability, be widely used in computer system peripheral.USB2.0 and USB1.1 interface is primarily of power supply, power supply ground, differential signal anode and differential signal negative terminal composition, and USB3.0 is backward compatible and add two pairs of differential signals and isolator.USB device can be classified into 19 classes according to its purposes, and different USB classifications has different device descriptor tables, and in order to the purposes of devices illustrated, USB keyboard belongs to type 03.
The C8051F340 single-chip microcomputer that SiliconLabs company releases is integrated with a USB function control device, it meets USB2.0 specification, support 8 end points, 1KBUSB buffer memorys and carry transceiver, and having abundant GPIO mouth resource, can be used for connection standard matrix keyboard interface and simulation PS2 interface.MultiMedia Keyboard comprises three kinds of buttons altogether, and common key-press, system special function keys and user's special function keys, facilitate the operating process of user.The USB controller that this patent utilizes C8051F340 to carry and simulate PS/2 interface by GPIO, realize PS/2 and USB double nip MultiMedia Keyboard, user can use different keyboard interfaces according to host interface.It has PS/2 and USB interface adaptive ability, is simple and easy to the advantages such as use and integrated multimedia function key.
Summary of the invention
The purpose of this utility model will solve the problem exactly, provides a kind of PS/2 and USB double nip keyboard supporting special function keys.
Technical solution adopted in the utility model is:
Support a PS/2 and USB double nip keyboard for special function keys, comprise PS/2 and USB interface testing circuit, 5V turns the level shifting circuit of 3.3V, the debug i/f circuit of C2 interface, keyboard indicator driving circuit, keyboard matrix interface circuit, each circuit all connects on the controller; PS/2 and USB interface testing circuit, adopted the power supply signal of PS/2 and USB interface as basis for estimation, detected by GPIO; 5V turns the level shifting circuit of 3.3V, is mainly the conversion between single-chip microcomputer GPIO pin level and PS/2 host interface level; The debug i/f circuit of C2 interface is the download circuit of single-chip microcomputer control program; Keyboard adopts determinant matrix keyboard, is directly connected on universaling I/O port by keyboard matrix interface circuit; Controller Real-time Collection keyboard data, is sent to main frame by keyboard data by corresponding PS/2 or USB interface according to interface type.
Controller is C8051F340 controller.
C8051F340 firmware program function mainly divides PS/2 and USB interface to detect, the initialization of USB and PS/2 interface, the scan process of matrix determinant keyboard and the processing procedure to multimedia key.It is after waiting for that after interface powers on chip is stable that PS/2 and USB interface detect, by GPIO electrical level judging interface type.The initialization of USB and PS/2 interface, performs corresponding interface initialization program according to interface type.When for USB interface, USB initialization is mainly USB device enumeration process, mainly comprises all kinds of descriptor tables of acquisition equipment.The description of multimedia function key, the report descriptor table mainly through keyboard realizes.When for PS/2 interface, the initialization of PS/2 interface mainly comprises the initialization procedure that GPIO simulates PS/2 interface and PS/2 interface and main frame.The scanning of matrix determinant keyboard carries out real time scan mainly through timer interruption, and multimedia key realizes mainly through Macintosh, as Fn+F1 realizes sleep etc.After scanning respective combination key, the multimedia key key assignments required is transferred to main frame, realizes multimedia key function.
The utility model utilizes C8051F340 to achieve PS/2 and the USB double nip keyboard supporting special function keys, adopt single chip design may, have that circuit is simple, cost is low and the advantage such as double nip, can be used as general-purpose computations peripheral devices uses, and has the wide application prospect sent out.
Accompanying drawing explanation
Accompanying drawing 1 is PS/2 and USB double nip keyboard hardware block diagram;
Accompanying drawing 2 is firmware program process flow diagrams of the present utility model.
Embodiment
Below in conjunction with accompanying drawing, the utility model is described in detail below.
The utility model mainly comprises hardware circuit design and the Design of Firmware of PS/2 and USB double nip keyboard.
Hardware circuit adopts C8051F340 as main control chip, and mainly comprise following components: PS/2 and USB interface testing circuit, 5V turns the level shifting circuit of 3.3V, the debug i/f circuit of C2 interface, keyboard indicator driving circuit, keyboard matrix interface circuit.Required peripheral components is less, realization is simple, realizes block diagram as Fig. 1.PS/2 and USB interface testing circuit, adopted the power supply signal of PS/2 and USB interface as basis for estimation, detected by GPIO; 5V turns the level shifting circuit of 3.3V, is mainly the conversion between single-chip microcomputer GPIO pin level and PS/2 host interface level; The debug i/f circuit of C2 interface is the download circuit of single-chip microcomputer control program; Keyboard adopts determinant matrix keyboard, is directly connected on universaling I/O port by keyboard matrix interface circuit.C8051F340 controller Real-time Collection keyboard data, is sent to main frame by keyboard data by corresponding PS/2 or USB interface according to interface type.
C8051F340 firmware program function mainly divides PS/2 and USB interface to detect, the initialization of USB and PS/2 interface, the scan process of matrix determinant keyboard and the processing procedure to multimedia key.It is after waiting for that after interface powers on chip is stable that PS/2 and USB interface detect, by GPIO electrical level judging interface type.The initialization of USB and PS/2 interface, performs corresponding interface initialization program according to interface type.When for USB interface, USB initialization is mainly USB device enumeration process, mainly comprises all kinds of descriptor tables of acquisition equipment.The description of multimedia function key, the report descriptor table mainly through keyboard realizes.Table 1 is user's special function keys report descriptor example.Report Definition prefix is 03, and reported lengths is 8, different key assignments, is to put 1 by byte 8 orders from low to high to represent, the key assignments that such as button PLAY/PAUSE sends into should be 0x030x01, and the key assignments that button lifts transmission is 0x030x00.When for PS/2 interface, the initialization of PS/2 interface mainly comprises the initialization procedure that GPIO simulates PS/2 interface and PS/2 interface and main frame.The scanning of matrix determinant keyboard carries out real time scan mainly through timer interruption, and multimedia key realizes mainly through Macintosh, as Fn+F1 realizes sleep etc.After scanning respective combination key, the multimedia key key assignments required is transferred to main frame, realizes multimedia key function.
Table 1
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.
Claims (2)
1. support PS/2 and the USB double nip keyboard of special function keys for one kind, it is characterized in that, comprise PS/2 and USB interface testing circuit, 5V turns the level shifting circuit of 3.3V, the debug i/f circuit of C2 interface, keyboard indicator driving circuit, keyboard matrix interface circuit, each circuit all connects on the controller; PS/2 and USB interface testing circuit, adopted the power supply signal of PS/2 and USB interface as basis for estimation, detected by GPIO; 5V turns the level shifting circuit of 3.3V, is mainly the conversion between single-chip microcomputer GPIO pin level and PS/2 host interface level; The debug i/f circuit of C2 interface is the download circuit of single-chip microcomputer control program; Keyboard adopts determinant matrix keyboard, is directly connected on universaling I/O port by keyboard matrix interface circuit; Controller Real-time Collection keyboard data, is sent to main frame by keyboard data by corresponding PS/2 or USB interface according to interface type.
2. double nip keyboard according to claim 1, is characterized in that, controller is C8051F340 controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520959010.8U CN205193738U (en) | 2015-11-27 | 2015-11-27 | Support PS2 and USB double nip keyboard of special function key |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520959010.8U CN205193738U (en) | 2015-11-27 | 2015-11-27 | Support PS2 and USB double nip keyboard of special function key |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205193738U true CN205193738U (en) | 2016-04-27 |
Family
ID=55786711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520959010.8U Expired - Fee Related CN205193738U (en) | 2015-11-27 | 2015-11-27 | Support PS2 and USB double nip keyboard of special function key |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205193738U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107346180A (en) * | 2016-05-04 | 2017-11-14 | 长沙闽壹湖电子科技有限责任公司 | A kind of PS2 computer keyboard interfaces design based on singlechip technology |
-
2015
- 2015-11-27 CN CN201520959010.8U patent/CN205193738U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107346180A (en) * | 2016-05-04 | 2017-11-14 | 长沙闽壹湖电子科技有限责任公司 | A kind of PS2 computer keyboard interfaces design based on singlechip technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203224819U (en) | Mainboard | |
CN205193795U (en) | Multi -functional interface system of extensible | |
CN104503594A (en) | PS/2 keyboard-mouse remote switching system | |
CN205318363U (en) | Intelligent terminal double -screen display device | |
CN205193738U (en) | Support PS2 and USB double nip keyboard of special function key | |
CN103226523B (en) | The system of a kind of external equipment and mobile terminal and composition thereof | |
CN205015832U (en) | Multicomputer auto -change over device with quick charge function | |
CN204241137U (en) | Two-wire system intelligent pressure transmitter | |
CN103065117B (en) | A kind of bluetooth scanner | |
CN202995719U (en) | USB (universal serial bus) interface extension equipment and electronic terminal | |
CN105045401A (en) | USB interface keyboard and mouse integrated system and design method therefor | |
CN204633059U (en) | USB Type-C connector modules | |
CN204231406U (en) | A kind of Multifunction cross of the quick-setting based on toggle switch is changed planes | |
CN204359447U (en) | Based on the Portable temperature detection system of smart mobile phone | |
CN205750414U (en) | A kind of high-sensitive USB interface and mainboard thereof | |
CN203930819U (en) | A kind of PCIE signal transmitting apparatus | |
CN206610285U (en) | A kind of usb expansion circuit and its hub with power supply interface | |
CN204928796U (en) | USB interface circuit and electronic equipment | |
CN204331716U (en) | A kind of signal pickup assembly for electronic countermeasure | |
CN210605696U (en) | Circuit for realizing OTG function by USB Type-A interface | |
CN202404526U (en) | Wireless keyboard | |
CN203191938U (en) | Keyboard with built-in wireless network card | |
Wang et al. | The design of wireless air mouse based on LPC54100 | |
CN202735893U (en) | High-performance main board with interconnected ports based on peripheral component interface express (PCIE) | |
CN206322158U (en) | USB the and RS232 communication boards of multichannel based on cpci bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160427 Termination date: 20161127 |
|
CF01 | Termination of patent right due to non-payment of annual fee |