CN101452433B - Diplex interface recognition device and method - Google Patents

Diplex interface recognition device and method Download PDF

Info

Publication number
CN101452433B
CN101452433B CN200710196368XA CN200710196368A CN101452433B CN 101452433 B CN101452433 B CN 101452433B CN 200710196368X A CN200710196368X A CN 200710196368XA CN 200710196368 A CN200710196368 A CN 200710196368A CN 101452433 B CN101452433 B CN 101452433B
Authority
CN
China
Prior art keywords
analog switch
input end
transmission channel
logical circuit
connector
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.)
Active
Application number
CN200710196368XA
Other languages
Chinese (zh)
Other versions
CN101452433A (en
Inventor
张来斌
陈勇
苗永斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zte Technical Service Co ltd
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200710196368XA priority Critical patent/CN101452433B/en
Publication of CN101452433A publication Critical patent/CN101452433A/en
Application granted granted Critical
Publication of CN101452433B publication Critical patent/CN101452433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a recognition device for a multiplex interface, which comprises a connector, a logic circuit, and analog switch, wherein the first input end of the connector is connected to a power supply, the second input end of the connector is connected to the control end of access equipment, and the output end of the connector is connected to the input end of the analog switch; the first input end of the logic circuit is connected to the power supply, the second input end of the logic circuit is connected to the control end of the access equipment, and the output end of the logic circuit is connected to the control end of the analog switch; the analog switch is used for switching transmission channels between the connector and mobile portable equipment, the input end of the analog switch is connected to the connector, the output end of the analog switch is connected to the mobile portable equipment, and the control end of the analog switch is connected to the logic circuit. The invention also provides a method for recognizing the multiplex interface. Through the recognition device, the analog switch can be used to multiplex an interface under the condition of using few pin interfaces, which saves precious GPIO resources of digital basebands.

Description

A kind of recognition device of multiplex interface and method
Technical field
The present invention relates to the interface circuit field of mobile portable equipment, relate more specifically to the recognition device and the method for multiplex interface.
Background technology
Development along with the IT technology, mobile portable equipment miscellaneous, as notebook computer, mobile phone, PDA (Personal Digital Assistant), PSP (PlayStation Portable), MP3/4 etc., more and more in depth got involved in the aspect of reality society, not only in work, provide great convenience, also brought people unprecedented ultimate attainment enjoyment on the living conditions to people.
Present mobile portable equipment all to light, thin, miniaturization, multifunctional direction development, has therefore also proposed more and more harsher requirement to its external interface number and design.Particularly for mobile portable equipments such as mobile phone, PDA, PSP, MP3/4, common external interface mainly contains interfaces such as 18 cores, 8 cores, 5 cores and 4 cores, and the function that needs to realize mainly comprises: charge function, ear-phone function, USB (Universal Serial Bus) function, UART (Universal Asynchronous Receiver/Transmitter) debug function etc.How numerous functions being realized that promptly interface is rationally multiplexing on the less interface of pin, is mobile portable equipment one of very important key element in product planning and product design.The common practice is a kind of to be to carry out wire jumper with resistance, and another kind switches by analog switch exactly.First method is cumbersome, need carry out multiple welding to pcb board, and second method is to realize the comparatively desirable method of interface duplex, is exactly GPIO (the General Purpose Input/Output) resource that need take base band but a shortcoming is arranged.
Summary of the invention
Problem in view of the above the present invention proposes a kind of recognition device and method of multiplex interface.
Recognition device according to multiplex interface of the present invention comprises: connector, its first input end is connected to power supply, its second input end is connected to the control end of access device, with and output terminal be connected to the input end of analog switch; Logical circuit, its first input end is connected to power supply, and its second input end is connected to the control end of access device, with and output terminal be connected to the control end of analog switch, wherein, above-mentioned logical circuit is used to produce simulating signal and gives described analog switch with above-mentioned analog signal transmission; And analog switch, be used for the transmission channel between connector and the mobile portable equipment being switched according to above-mentioned simulating signal, its input end is connected to connector, its output terminal is connected to mobile portable equipment, with and control end be connected to logical circuit.
In addition, in this device, logical circuit comprises transistor and single channel impact damper, and wherein, transistorized base stage is a first input end, and an input end of single channel impact damper is second input end, and the output terminal of single channel impact damper is the output terminal of logical circuit.
In addition, in this device, analog switch is single-pole double-throw (SPDT) (or a throwing) switch more.
In addition, in this device, transmission channel comprises USB transmission channel and UART transmission channel.
In addition, in this device, when the output signal of the control end of access device was high level, analog switch switched to the USB transmission channel, and when the output signal of the control end of access device was low level, analog switch switched to the UART transmission channel.
In addition, in this device, analog switch is for being fit to the high-speed analog switch of USB transmission.
According to the recognition methods that is used for multiplex interface of the present invention, may further comprise the steps: access device is inserted connector and link to each other with logical circuit; Logical circuit produces simulating signal and gives analog switch with analog signal transmission; And according to simulating signal, analog switch switches the transmission channel between connector and the mobile portable equipment.
In addition, in the method, logical circuit comprises transistor and single channel impact damper, and wherein, transistorized base stage is a first input end, and an input end of single channel impact damper is second input end, and the output terminal of single channel impact damper is the output terminal of logical circuit.
In addition, in the method, analog switch is single-pole double-throw (SPDT) (or a throwing) switch more, and transmission channel comprises USB transmission channel and UART transmission channel.
In addition, in the method, when the output signal of the control end of access device was high level, analog switch switched to the USB transmission channel, and when the output signal of the control end of access device was low level, analog switch switched to the UART transmission channel.
By above-mentioned aspect of the present invention, can be under the situation of using less pin interface, it is multiplexing to use analog switch to come docking port to carry out, the control of analog switch is provided by interface itself, and do not need extra control signal, be that interface can achieve a butt joint on the hardware level and discerns automatically into equipment, save the GPIO resource of digital baseband preciousness.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 shows the structured flowchart according to the recognition device of the multiplex interface of the embodiment of the invention;
Fig. 2 shows the process flow diagram according to the recognition methods of the multiplex interface of the embodiment of the invention;
Fig. 3 shows the block diagram of implementation of the recognition methods of multiplex interface according to an embodiment of the invention;
Fig. 4 shows the hardware connection diagram according to the logical circuit of inventive embodiments; And
Fig. 5 shows the process flow diagram of the recognition methods of multiplex interface according to another embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 1 shows the structured flowchart according to the recognition device of the multiplex interface of the embodiment of the invention.
As shown in Figure 1, comprising: connector 102, its first input end is connected to power supply, its second input end is connected to the control end of access device, with and output terminal be connected to the input end of analog switch; Logical circuit 104, its first input end is connected to power supply, its second input end is connected to the control end of access device, with and output terminal be connected to the control end of analog switch; And analog switch 106, be used for the transmission channel between connector and the mobile portable equipment is switched, its input end is connected to connector, its output terminal is connected to mobile portable equipment, with and control end be connected to logical circuit.
In addition, in this device, logical circuit comprises transistor and single channel impact damper, and wherein, transistorized base stage is a first input end, and an input end of single channel impact damper is second input end, and the output terminal of single channel impact damper is the output terminal of logical circuit.
In addition, in this device, analog switch is single-pole double-throw (SPDT) (or a throwing) switch more.
In addition, in this device, transmission channel comprises USB transmission channel and UART transmission channel.
In addition, in this device, when the output signal of the control end of access device was high level, analog switch switched to the USB transmission channel, and when the output signal of the control end of access device was low level, analog switch switched to the UART transmission channel.
In addition, in this device, analog switch is for being fit to the high-speed analog switch of USB transmission.
Fig. 2 shows the process flow diagram according to the recognition methods of the multiplex interface of the embodiment of the invention.
As shown in Figure 2, may further comprise the steps: step S202, insert connector with access device and link to each other with logical circuit; Step S204, logical circuit produce simulating signal and give analog switch with analog signal transmission; And step S206, according to simulating signal, analog switch switches the transmission channel between connector and the mobile portable equipment.
In addition, in the method, logical circuit comprises transistor and single channel impact damper, and wherein, transistorized base stage is a first input end, and an input end of single channel impact damper is second input end, and the output terminal of single channel impact damper is the output terminal of logical circuit.
In addition, in the method, analog switch is single-pole double-throw (SPDT) (or a throwing) switch more, and transmission channel comprises USB transmission channel and UART transmission channel.
In addition, in the method, when the output signal of the control end of access device was high level, analog switch switched to the USB transmission channel, and when the output signal of the control end of access device was low level, analog switch switched to the UART transmission channel
Fig. 3 shows the block diagram of implementation of the recognition methods of multiplex interface according to an embodiment of the invention.
As shown in Figure 3: form by connector (CONNECTOR), logical circuit, analog switch three parts.
Connector CONNECTOR comprises the most basic following signal: power supply input 5V_IN, control signal Control_SIG, data transmission channel USB/UART, earth signal.
The input signal of logical circuit is power supply input 5V_IN, control signal Control_SIG, and output signal is Asw_ctl.
The control signal of analog switch is Asw_ctl, and input signal is data transmission channel USB/UART, and output signal U SB is to the USB module of mobile portable equipment, and UART is to the base band UART module of mobile portable equipment.
Fig. 4 shows the hardware connection diagram according to the logical circuit of inventive embodiments.
As shown in Figure 4: form by transistor and single channel impact damper.
When 5V_IN imports, the conducting of NPN transistor emitter junction, collector is output as low level, and the single channel impact damper is enabled to open, and like this, the output Asw_ctl of single channel impact damper just equals its input signal Control_SIG.
Fig. 5 shows the process flow diagram of the recognition methods of multiplex interface according to another embodiment of the present invention.
As shown in Figure 5, may further comprise the steps:
Step 502: at the outer insertion equipment of mobile portable equipment interface, with this access device whether power supply input 5V_IN being arranged is Rule of judgment, when not having the power supply input, access device belongs to miscellaneous equipment, as with earphone of microphone etc., when power supply is imported, promptly enter the automatic identifying of interface involved in the present invention.
Step 504: the level signal with Control_SIG is a Rule of judgment.When Interface design, this signal draws on keeping.
General this signal of usb data line is unsettled, so Control_SIG is a high level, promptly the output signal Asw_ctl of logical circuit is high, and the analog switch passage switches to USB, realizes the usb data transfer function.
When using the AccessPort function, generally all need to link to each other with computer by interconnecting device.By this interconnecting device, can be provided with one for low signal as Control_SIG.The output signal Asw_ctl of logical circuit is low like this, and the analog switch passage switches to UART, realizes the UART debug function.
In sum, by the present invention, mobile portable equipment multiplex interface can be discerned automatically to insertion equipment.Can be under the situation of using less pin interface, it is multiplexing to use analog switch to come docking port to carry out, the control of analog switch is provided by interface itself, and does not need extra control signal, and promptly interface can achieve a butt joint on the hardware level and discern automatically into equipment.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the recognition device of a multiplex interface is characterized in that, comprising:
Connector, its first input end is connected to power supply, its second input end is connected to the control end of access device, with and output terminal be connected to the input end of analog switch;
Logical circuit, its first input end is connected to power supply, and its second input end is connected to the control end of described access device, with and output terminal be connected to the control end of described analog switch, wherein, described logical circuit is used to produce simulating signal and gives described analog switch with described analog signal transmission; And,
Described analog switch, be used for the transmission channel between described connector and the mobile portable equipment being switched according to described simulating signal, its input end is connected to described connector, and its output terminal is connected to mobile portable equipment, with and control end be connected to described logical circuit;
Wherein, described logical circuit comprises transistor and single channel impact damper, described transistorized base stage is described first input end, and an input end of described single channel impact damper is described second input end, and the output terminal of described single channel impact damper is the output terminal of described logical circuit.
2. the recognition device of multiplex interface according to claim 1 is characterized in that, described analog switch is single-pole double-throw (SPDT) or single pole multiple throw.
3. the recognition device of multiplex interface according to claim 2 is characterized in that, described transmission channel comprises USB transmission channel and UART transmission channel.
4. the recognition device of multiplex interface according to claim 3, it is characterized in that, when the output signal of the control end of described access device is high level, described analog switch switches to described USB transmission channel, and when the output signal of the control end of described access device was low level, described analog switch switched to described UART transmission channel.
5. according to the recognition device of each described multiplex interface in the claim 1 to 4, it is characterized in that described analog switch is the high-speed analog switch that is applicable to the USB transmission.
6. the recognition methods of a multiplex interface is characterized in that, may further comprise the steps:
Access device is inserted connector and link to each other with logical circuit;
Described logical circuit produces simulating signal and gives analog switch with described analog signal transmission; And
According to described simulating signal, described analog switch switches the transmission channel between described connector and the mobile portable equipment;
Wherein, described logical circuit comprises transistor and single channel impact damper, described transistorized base stage is described first input end, and an input end of described single channel impact damper is described second input end, and the output terminal of described single channel impact damper is the output terminal of described logical circuit.
7. the recognition methods of multiplex interface according to claim 6 is characterized in that, described analog switch is single-pole double-throw (SPDT) or single pole multiple throw, and described transmission channel comprises USB transmission channel and UART transmission channel.
8. the recognition methods of multiplex interface according to claim 6, it is characterized in that, when the output signal of the control end of described access device is high level, described analog switch switches to described USB transmission channel, and when the output signal of the control end of described access device was low level, described analog switch switched to described UART transmission channel.
CN200710196368XA 2007-11-30 2007-11-30 Diplex interface recognition device and method Active CN101452433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710196368XA CN101452433B (en) 2007-11-30 2007-11-30 Diplex interface recognition device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710196368XA CN101452433B (en) 2007-11-30 2007-11-30 Diplex interface recognition device and method

Publications (2)

Publication Number Publication Date
CN101452433A CN101452433A (en) 2009-06-10
CN101452433B true CN101452433B (en) 2011-06-22

Family

ID=40734673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710196368XA Active CN101452433B (en) 2007-11-30 2007-11-30 Diplex interface recognition device and method

Country Status (1)

Country Link
CN (1) CN101452433B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193503A (en) * 2010-03-15 2011-09-21 研祥智能科技股份有限公司 Industrial control mainboard and method thereof for identifying external device
CN102809930B (en) * 2012-07-27 2015-09-02 三一重工股份有限公司 Constrained input multiplexing port and controller
CN103678226A (en) * 2012-09-24 2014-03-26 炬力集成电路设计有限公司 General purpose input/output (GPIO) port reuse circuit and method of chip
EP3260988B1 (en) * 2015-03-12 2019-05-22 Huawei Technologies Co., Ltd. Peripheral interface multiplexing method, user equipment and external device
CN104731734B (en) * 2015-03-17 2018-08-03 青岛海信宽带多媒体技术有限公司 A kind of output method and device of terminal signaling
US10088514B2 (en) * 2015-06-30 2018-10-02 Intel Corporation Orientation indicator with pin signal alteration
CN105005541A (en) * 2015-07-13 2015-10-28 山东超越数控电子有限公司 Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer
CN105528323B (en) * 2016-01-29 2019-02-01 深圳怡化电脑股份有限公司 USB and CAN multiplex circuit based on STM32F103
CN106571805B (en) * 2016-10-21 2020-08-11 深圳市紫光同创电子有限公司 Crystal oscillator, chip and crystal oscillator control method
CN106569416B (en) * 2016-10-28 2019-12-24 珠海格力电器股份有限公司 Method and device for multiplexing serial interface and simulation debugging interface of microcontroller
CN109212268A (en) * 2017-06-29 2019-01-15 北京小米移动软件有限公司 Electronic equipment, circuit switching device and commissioning device
CN107678989B (en) * 2017-09-27 2020-01-31 Oppo广东移动通信有限公司 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN109815177B (en) * 2017-11-20 2020-10-20 厦门雅迅网络股份有限公司 Vehicle-mounted built-in TF map data updating circuit and method
CN110380720B (en) * 2019-06-28 2022-12-20 郑州森鹏电子技术股份有限公司 Universal pin multiplexing circuit
CN110955621A (en) * 2019-12-19 2020-04-03 安徽皖兴通信息技术有限公司 Device and method for multiplexing idle ports of panel
CN112578770B (en) * 2020-12-07 2023-01-24 潍柴动力股份有限公司 Interface multiplexing device and method
CN114500854B (en) * 2022-02-28 2023-11-28 浙江水晶光电科技股份有限公司 Camera module, control method of camera module and camera communication system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549088A (en) * 2003-05-24 2004-11-24 鸿富锦精密工业(深圳)有限公司 USB equipment and switching method thereof
CN2770992Y (en) * 2005-03-30 2006-04-12 台均科技(深圳)有限公司 Pen with playing and storage function
CN101004730A (en) * 2006-01-05 2007-07-25 株式会社Telechips Audio system, and usb/uart common communication system for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549088A (en) * 2003-05-24 2004-11-24 鸿富锦精密工业(深圳)有限公司 USB equipment and switching method thereof
CN2770992Y (en) * 2005-03-30 2006-04-12 台均科技(深圳)有限公司 Pen with playing and storage function
CN101004730A (en) * 2006-01-05 2007-07-25 株式会社Telechips Audio system, and usb/uart common communication system for the same

Also Published As

Publication number Publication date
CN101452433A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
CN101452433B (en) Diplex interface recognition device and method
CN101931674B (en) Method and device for sharing Micro-USB interface
CN201359725Y (en) USB interface circuit and portable hand-held device provided with the circuit
CN102082846B (en) Terminal equipment with plurality of externally arranged shared interfaces
CN101951421B (en) Expansion use method for cell phone earphone interface
US20060234771A1 (en) Headset adapter for IP or digital phone
CN101917497A (en) Method and device for earphone and USB to share micro-USB interface
CN101426038A (en) Portable electronic device and accessory identification method
CN102158575A (en) Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102096651A (en) Mobile phone interface multiplexing circuit based on standard micro USB interface
CN202503656U (en) Device used for earphone microphone line sequence changing-over, and mobile terminal thereof
CN201919041U (en) Terminal equipment with plurality of peripheral sharing interfaces
CN106407068A (en) A device automatically controlling connection and disconnection of USB cables and a testing method
CN207052880U (en) The earphone interface and mobile terminal of a kind of mobile terminal
CN101350989B (en) Plug adapter for a mobile terminal
CN204244456U (en) Earphone
CN107222233A (en) Mobile communication equipment
CN101006623B (en) Single connector for a communication terminal, corresponding electronic circuit, terminal and cable
CN108600887A (en) Method of toch control based on wireless headset and Related product
CN101626412A (en) Mobile terminal circuit with multifunctional earphone socket and implementation method thereof
CN100452667C (en) Universal asynchronous receiver/transmitter circuit for mobile telecommunication terminal
CN204578726U (en) A kind of earphone line control circuit and earphone
CN206004880U (en) Earphone
KR20060095386A (en) Apparatus for multiple interface in the mobile communication terminal
CN204968062U (en) Portable earphone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN ZHONGXING TELECOMMUNICATION TECHNOLOGY SE

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20150109

C41 Transfer of patent application or patent right or utility model
C56 Change in the name or address of the patentee
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 518000 SHENZHEN, GUANGDONG PROVINCE

CP02 Change in the address of a patent holder

Address after: 518057, A building, Zhongxing building, Nanshan District science and Technology Park, Shenzhen, Guangdong, five

Patentee after: ZTE Corp.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee before: ZTE Corp.

TR01 Transfer of patent right

Effective date of registration: 20150109

Address after: 518000 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Patentee after: Shenzhen ZTE Technical Service Co.,Ltd.

Address before: 518057, A building, Zhongxing building, Nanshan District science and Technology Park, Shenzhen, Guangdong, five

Patentee before: ZTE Corp.