CN105005541A - Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer - Google Patents
Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer Download PDFInfo
- Publication number
- CN105005541A CN105005541A CN201510407341.5A CN201510407341A CN105005541A CN 105005541 A CN105005541 A CN 105005541A CN 201510407341 A CN201510407341 A CN 201510407341A CN 105005541 A CN105005541 A CN 105005541A
- Authority
- CN
- China
- Prior art keywords
- usb
- controller
- chip
- cpld
- switch chip
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3806—Mobile device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3812—USB port controller
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a circuit and a method for multiplexing universal serial bus (USB) and PS/2 interfaces on a computer. The circuit comprises a complex programmable logic device (CPLD) control chip U2, a two-way switch chip U1, a dial switch K1, a PS/2 controller U3, a USB controller U4 and a four-pin aviation plug interface U5, wherein the PS/2 controller U3 and the USB controller U4 are connected with input ends S0 and S1 of the two-way switch chip U1; the dial switch K1 is connected into the input ends of the two-way switch chip U1 via the CPLD control chip U2; and an output end of the two-way switch chip U1 is connected with the four-pin aviation plug interface U5. When the dial switch is at one side, the aviation plug interface is connected with a USB signal line, and a USB device can be connected; and when the dial switch is at the other side, the aviation plug interface is connected with a PS/2 signal line, and a PS/2 device can be connected. Therefore, the four-pin aviation plug interface led to the outside is achieved, the function of time-shared connection of the USB or PS/2 device is fulfilled, machine space is saved, design cost is saved, and the method is practical and effective.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to circuit and the method for USB, PS/2 interface duplex on a kind of computing machine, relate to a kind of use four pin air plug interfaces, realize USB, PS/2 interface duplex, the switching of USB or PS/2 channel is realized by toggle switch, is applicable to the computer equipments such as reinforcement type server, all-in-one.
Background technology
Present mouse and the interface of keyboard to be generally PS/2 and USB bis-kinds, PS/2 be circular interfaces of 6 pins, USB is rectangle interface, and the advantage of PS/2 is not occupying system resources, and shortcoming is can not plug and play (needing to restart computer after insertion could use); And USB interface takies a little system resource, but advantage is can plug and play.
After general computer housing, (or top) has two PS/2 at least, can be used for keyboard and the mouse of PS/2, can certainly with USB keyboard or mouse mixed insertion.
The external PS/2 of current computer equipment, USB interface adopt absolute version usually, or adopt spininess pin air plug interface, and PS/2, USB interface signal independently, carry out data transmission respectively.
Said method, or add host interface number, or add external interface volume, both increase design cost.
Summary of the invention
The technical problem to be solved in the present invention is: for above situation, the invention provides a kind of circuit and method of USB, PS/2 interface duplex, by USB, PS/2 signal transmission passage control switching circuit, well solves above problem.
The technical solution adopted in the present invention is:
The circuit of USB, PS/2 interface duplex on a kind of computing machine, described circuit comprises CPLD control chip U2, two-way switch chip U1, toggle switch K1, PS/2 controller U3, USB controller U4,4 pin air plug interface U5, and wherein PS/2 controller U3, USB controller U4 connects the input end of two-way switch chip U1; Toggle switch K1 connects into input end S0, S1 of two-way switch chip U1 by CPLD control chip U2; The output terminal of two-way switch chip U1 connects 4 pin air plug interface U5;
Toggle switch K1 is used for input control signal, and toggle switch reaches diverse location, input CPLD varying level signal;
CPLD control chip U2, for detecting the level state of toggle switch input, exports the strobe state of corresponding Automatic level control two channel switch chip U1;
Two channel switch chip U1 is for control PS/2 controller U3 and four pin air plug orifice or USB controller U4 and air plug orifice.
The model of described two-way switch chip U1 is SN74CBT3253.
A kind of method of USB, PS/2 interface duplex on computing machine, described method implementation procedure is: when toggle switch K1 is high level, and CPLD controller U2 detects this state, exports control signal, S0, S1 of switch chip U1 are held and is low level, be now communicated with PS/2 data transmission channel; When toggle switch K1 is low level, CPLD controller U2 exports control signal, and the S0 end making switch chip U1 is high level, S1 end is low level, is now communicated with USB data transmission passage.
Beneficial effect of the present invention is:
A kind of USB, PS/2 method for multiplexing interface of the present invention, when toggle switch is in side, air plug interface is connected with usb signal line, now can connect USB device; When toggle switch is in opposite side, air plug interface is connected with PS/2 signal wire, now can connect PS/2 equipment.Achieve and externally draw four pin air plug interfaces, timesharing can connect the function of USB or PS/2 equipment, save machine space, saved design cost, and method is practical, effective.
Accompanying drawing explanation
Fig. 1 is circuit diagram of the present invention.
Embodiment
With reference to the accompanying drawings, by embodiment, the present invention is further described:
Embodiment 1:
As shown in Figure 1, the circuit of USB, PS/2 interface duplex on a kind of computing machine, described circuit comprises CPLD control chip U2, two-way switch chip U1, toggle switch K1, PS/2 controller U3, USB controller U4,4 pin air plug interface U5, wherein:
PS/2 controller U3 connects input end 1B1,2B1 of two-way switch chip U1;
USB controller U4 connects input end 1B2,2B2 of two-way switch chip U1;
After toggle switch K1 resistance in series R1, connected into input end S0, S1 of two-way switch chip U1 by CPLD control chip U2;
Series inductance L1, L2 connect 4 pin air plug interface U5 respectively for output terminal 1A, 2A of two-way switch chip U1;
Two-way switch chip U1/2OE and/1OE ground connection;
Access the 1B1 end of two-way switch chip U1 after voltage P5V resistance in series R2, after resistance in series R3, access the 2B1 end of two-way switch chip U1;
4 pin air plug interface U5 one end ground connection, a termination P5V, connects ground connection after one end 0.01uf and 150uf electric capacity in parallel of P5V;
Toggle switch K1 is used for input control signal, and toggle switch reaches diverse location, input CPLD varying level signal;
CPLD control chip U2, for detecting the level state of toggle switch input, exports the strobe state of corresponding Automatic level control two channel switch chip U1;
Two channel switch chip U1 is for control PS/2 controller U3 and four pin air plug orifice or USB controller U4 and air plug orifice.
Embodiment 2:
On the basis of embodiment 1, described in the present embodiment, the model of two-way switch chip U1 is SN74CBT3253.
Embodiment 3:
On the basis of embodiment 1 or 2, the method of USB, PS/2 interface duplex on a kind of computing machine of the present embodiment, described method implementation procedure is: when toggle switch K1 is high level, CPLD controller U2 detects this state, export control signal, S0, S1 of switch chip U1 are held and is low level, be now communicated with PS/2 data transmission channel; When toggle switch K1 is low level, CPLD controller U2 exports control signal, and the S0 end making switch chip U1 is high level, S1 end is low level, is now communicated with USB data transmission passage.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (3)
1. the circuit of USB, PS/2 interface duplex on a computing machine, it is characterized in that: described circuit comprises CPLD control chip U2, two-way switch chip U1, toggle switch K1, PS/2 controller U3, USB controller U4,4 pin air plug interface U5, wherein PS/2 controller U3, USB controller U4 connects input end S0, S1 of two-way switch chip U1; Toggle switch K1 connects into the input end of two-way switch chip U1 by CPLD control chip U2; The output terminal of two-way switch chip U1 connects 4 pin air plug interface U5;
Toggle switch K1 is used for input control signal, and toggle switch reaches diverse location, input CPLD varying level signal;
CPLD control chip U2, for detecting the level state of toggle switch input, exports the strobe state of corresponding Automatic level control two channel switch chip U1;
Two channel switch chip U1 is for control PS/2 controller U3 and four pin air plug orifice or USB controller U4 and air plug orifice.
2. the circuit of USB, PS/2 interface duplex on a kind of computing machine according to claim 1, is characterized in that: the model of described two-way switch chip U1 is SN74CBT3253.
3. the method for USB, PS/2 interface duplex on a kind of computing machine according to claim 1 and 2, it is characterized in that, described method implementation procedure is: when toggle switch K1 is high level, CPLD controller U2 detects this state, export control signal, S0, S1 of switch chip U1 are held and is low level, be now communicated with PS/2 data transmission channel; When toggle switch K1 is low level, CPLD controller U2 exports control signal, and the S0 end making switch chip U1 is high level, S1 end is low level, is now communicated with USB data transmission passage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510407341.5A CN105005541A (en) | 2015-07-13 | 2015-07-13 | Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510407341.5A CN105005541A (en) | 2015-07-13 | 2015-07-13 | Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105005541A true CN105005541A (en) | 2015-10-28 |
Family
ID=54378218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510407341.5A Pending CN105005541A (en) | 2015-07-13 | 2015-07-13 | Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105005541A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813725A (en) * | 2020-07-08 | 2020-10-23 | 济南浪潮数据技术有限公司 | Computer equipment, serial port connection method, system and related equipment |
WO2020232582A1 (en) * | 2019-05-17 | 2020-11-26 | 华为技术有限公司 | Integrated circuit having interface multiplexing functionality and pin switching method |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452433A (en) * | 2007-11-30 | 2009-06-10 | 中兴通讯股份有限公司 | Diplex interface recognition device and method |
CN101801116A (en) * | 2010-01-29 | 2010-08-11 | 杭州电子科技大学 | Standard sensor interface circuit of wireless sensor network node |
CN201590909U (en) * | 2010-01-29 | 2010-09-22 | 杭州电子科技大学 | Wireless sensor network node sensor standardization interface circuit |
CN101937414A (en) * | 2010-08-26 | 2011-01-05 | 惠州Tcl移动通信有限公司 | Method and device of sharing minitype USB interface for UART (Universal Asynchronous Receive/Transmitter) and USB (Universal Serial Bus) |
CN102693658A (en) * | 2011-03-24 | 2012-09-26 | 裘寒青 | Complex programmable logic device (CPLD) development board |
US20130083804A1 (en) * | 2011-10-03 | 2013-04-04 | Kay Keat Khoo | Managing sideband routers in on-die system fabric |
CN103116567A (en) * | 2013-01-24 | 2013-05-22 | 富通集团有限公司 | Multi-serial-port selection circuit |
CN203241992U (en) * | 2013-05-09 | 2013-10-16 | 山东超越数控电子有限公司 | Configurable reinforced computer interface |
CN103927282A (en) * | 2013-01-15 | 2014-07-16 | 郝明学 | Device for controlling connection or removal of USB (Universal Serial Bus) device |
CN104102355A (en) * | 2014-07-17 | 2014-10-15 | 山东超越数控电子有限公司 | Method for designing USB (universal serial bus) keyboard and mouse combination equipment |
-
2015
- 2015-07-13 CN CN201510407341.5A patent/CN105005541A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452433A (en) * | 2007-11-30 | 2009-06-10 | 中兴通讯股份有限公司 | Diplex interface recognition device and method |
CN101801116A (en) * | 2010-01-29 | 2010-08-11 | 杭州电子科技大学 | Standard sensor interface circuit of wireless sensor network node |
CN201590909U (en) * | 2010-01-29 | 2010-09-22 | 杭州电子科技大学 | Wireless sensor network node sensor standardization interface circuit |
CN101937414A (en) * | 2010-08-26 | 2011-01-05 | 惠州Tcl移动通信有限公司 | Method and device of sharing minitype USB interface for UART (Universal Asynchronous Receive/Transmitter) and USB (Universal Serial Bus) |
CN102693658A (en) * | 2011-03-24 | 2012-09-26 | 裘寒青 | Complex programmable logic device (CPLD) development board |
US20130083804A1 (en) * | 2011-10-03 | 2013-04-04 | Kay Keat Khoo | Managing sideband routers in on-die system fabric |
CN103927282A (en) * | 2013-01-15 | 2014-07-16 | 郝明学 | Device for controlling connection or removal of USB (Universal Serial Bus) device |
CN103116567A (en) * | 2013-01-24 | 2013-05-22 | 富通集团有限公司 | Multi-serial-port selection circuit |
CN203241992U (en) * | 2013-05-09 | 2013-10-16 | 山东超越数控电子有限公司 | Configurable reinforced computer interface |
CN104102355A (en) * | 2014-07-17 | 2014-10-15 | 山东超越数控电子有限公司 | Method for designing USB (universal serial bus) keyboard and mouse combination equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020232582A1 (en) * | 2019-05-17 | 2020-11-26 | 华为技术有限公司 | Integrated circuit having interface multiplexing functionality and pin switching method |
CN111813725A (en) * | 2020-07-08 | 2020-10-23 | 济南浪潮数据技术有限公司 | Computer equipment, serial port connection method, system and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108352664B (en) | USB Type-C plug and cable | |
CN102750252A (en) | Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same | |
CN103561369A (en) | Usb interface circuit and electronic equipment | |
US20140049209A1 (en) | Charging converter | |
CN104298575A (en) | Mainboard debugging circuit | |
CN103460200A (en) | Slot design for flexible and expandable system architecture | |
CN104267781B (en) | The reusable mobile terminal of docking station and its method of docking station multiplexing | |
CN103684407A (en) | Otg device | |
CN105005541A (en) | Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer | |
CN203858506U (en) | Card-inserting type automated test equipment based on network backplane bus | |
CN202721661U (en) | UART level switching circuit | |
CN102314404A (en) | I2C equipment communication circuit | |
CN104142709A (en) | Mainboard | |
CN204697180U (en) | Chip main board and television set | |
CN203760209U (en) | MHL cable and MHL cable hot plug detecting system | |
CN107391405A (en) | Usb circuit and USB device | |
CN105700981A (en) | USB (Universal Serial Bus) disk used for test | |
CN104932998A (en) | Mainboard | |
CN105068952A (en) | SD interface multiplexing apparatus and method and electronic device | |
CN216561762U (en) | Debugging circuit, debugging device and electronic equipment | |
CN210605696U (en) | Circuit for realizing OTG function by USB Type-A interface | |
CN105739641B (en) | Host computer | |
CN207367129U (en) | A kind of ETA810 telescopic backboards based on ESMARC series industrial control mainboards | |
CN204302963U (en) | Test USB flash disk | |
CN204205225U (en) | HDMI and DisplayPort modular converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151028 |
|
RJ01 | Rejection of invention patent application after publication |