CN106301342A - Interface circuit and terminal unit - Google Patents

Interface circuit and terminal unit Download PDF

Info

Publication number
CN106301342A
CN106301342A CN201610648360.1A CN201610648360A CN106301342A CN 106301342 A CN106301342 A CN 106301342A CN 201610648360 A CN201610648360 A CN 201610648360A CN 106301342 A CN106301342 A CN 106301342A
Authority
CN
China
Prior art keywords
switch
interface
pin
data
connection
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.)
Granted
Application number
CN201610648360.1A
Other languages
Chinese (zh)
Other versions
CN106301342B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610648360.1A priority Critical patent/CN106301342B/en
Publication of CN106301342A publication Critical patent/CN106301342A/en
Application granted granted Critical
Publication of CN106301342B publication Critical patent/CN106301342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/017509Interface arrangements
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/002Switching arrangements with several input- or output terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)
  • Information Transfer Systems (AREA)

Abstract

A kind of interface circuit, for being connected in first, second and third functional module of terminal unit by the interface selection that connects of a terminal unit.Interface circuit includes: first, second selects switch, first, second triggering circuit and controller.First selects switch to be connected to described connection interface and second selects between switch, the first functional module.Second selects switch to be connected to described first selects between switch and second, third functional module.Described controller at least based on described first trigger circuit from connect interface level signal and control the first triggering circuit and second trigger circuit produce trigger signal accordingly, to trigger first and second selection selecting switch connection respectively, thus select to set up one of them in first, second and third functional module and the communication connection being connected interface.Also providing for a kind of terminal unit, the present invention can be by the connection interface of simple structure multiplex terminal equipment.

Description

Interface circuit and terminal unit
Technical field
The present invention relates to electrical connection field, particularly to a kind of interface circuit and terminal unit.
Background technology
At present, USB interface, as the data cube computation of standard and charging inlet, has been widely used for mobile phone, panel computer Deng on terminal unit.Generally, in order to avoid the redundancy of interface, USB interface tends to the interface as multiple functional modules and can By multiple functional module multiplexings, such as, as generic USB charging and the interface of data cube computation or connecing as quick charge Mouthful.Accordingly, it is possible to the object that accesses according to USB interface and by interface that USB interface quick definition is a certain functional module Interface circuit is a need for, such as, according to access for generic USB interface or fast charger, and using USB interface as The interface of generic USB module or the interface as fast mold filling block.But, the existing interface circuit realizing multiplexing all compares multiple Miscellaneous.
Summary of the invention
Embodiments provide a kind of Multifunctional interface circuit and terminal unit, it is possible to by simple structure by one Individual connection interface duplex is multiple functional interface.
On the one hand, it is provided that a kind of interface circuit, for selecting to be connected to terminal unit by the connection interface of a terminal unit The first functional module, the second functional module and the 3rd functional module in one, it is characterised in that described interface circuit bag Include: the first selection switch, the second selection switch, the first triggering circuit, the second triggering circuit and controller.Described first selects to open Pass is connected to described connection interface and described second and selects between switch, the first functional module, for selecting described connection Interface is connected to described second and selects switch or described first functional module.Described second selects switch to be connected to described first choosing Select between switch and described second functional module, the 3rd functional module, select switch to be connected to the by described first for selecting Two functional modules or the 3rd functional module.Described first triggers circuit is connected to described connection interface, described first selection switch And between controller, described second triggers circuit is connected between described second selection switch and controller.Described controller is used Control the first triggering circuit and second in triggering circuit at least based on described first touch from the level signal connecting interface Power Generation Road produces and triggers signal accordingly, to trigger the selection connection that the first selection switch and second selects to switch respectively, thus Select to set up one of them in the first functional module, the second functional module and the 3rd functional module and the communication being connected interface Connect.
Wherein, described connection interface includes power pins, data pin, and described first triggers circuit is connected interface with described Power pins connect, described first select switch be connected to described connection interface data pin and described second select open Close, between the first functional module, for select to be connected to the data pin of described connection interface described second select switch or Described first functional module.
Wherein, described controller, when power pins is high level, produces the first module and connects and trigger signal, and trigger the One selects switching gate to connect the connection between interface and the first functional module;Described controller also controls described first triggering electricity Road switching produces switch and connects triggering signal, and triggers the first selection switch and switch to connection interface select to open with described second Pass is attached, and the second triggering circuit of controller control simultaneously produces the second module and connects triggering signal, triggers second and selects to open Close the connection between gating the first selection switch and the second module, thus set up the data pin connecting interface and the second merit Connection between energy module.
Wherein, when described controller communicates successfully between external equipment and the second functional module, keep described first choosing Select switch and second and select the connection status of switch, thus keep the second functional module and the company of the data pin being connected interface Connecing, now, the second functional module starts and is attached communicating with external equipment.
Wherein, described controller between external equipment and the second functional module during communication failure, control the first triggering Circuit switching produces the first module and connects triggering signal, triggers the first selection switching gate and connects interface and the first functional module 3 Between connection, now, first functional module start and be attached communicating with external equipment.
Wherein, described controller when power pins is low level, control the first triggering circuit and produce switch and connect and touch Signal, and trigger the first selection switching gate and connect the connection between interface and described second selection switch, controller simultaneously Control the second triggering circuit to produce three module and connect and trigger signal, trigger the second selection switching gate first and select switch and the Connection between three functional modules, thus set up the connection connected between interface and the 3rd functional module, now, the 3rd function mould Block starts and is attached communicating with external equipment.
Wherein, described first functional module is USB module, and described second functional module is fast mold filling block, described 3rd merit Can module be UART module.
Wherein, the data pin of described connection interface includes correction data pin and negative data pin, and described first selects to open Pass includes that first, second data-out pin, first, second, third, fourth data output pins and the input of the first signal are drawn Foot, described second selects switch to include the three, the 4th data-out pin, the five, the six, the seven, the 8th data output pins And secondary signal input pin;Responding the input signal of the first signal input pin, described first selects the first of switch, the Two data-out pin are chosen to be connected with first, second data output pins respectively or defeated with the three, the 4th data respectively Going out pin to connect, the input signal of response secondary signal input pin, described second selects the three, the 4th data inputs of switch Pin is chosen to be connected with the five, the 6th data output pins or be connected with the seven, the 8th data output pins respectively respectively.
Wherein, described first select switch first, second data-out pin respectively with the described positive number being connected interface Connecting according to pin, negative data pin, described first selects first, second data output pins of switch respectively with USB module even Connecing, described first selects the three, the 4th data output pins of switch to select the three, the 4th data switched defeated respectively with second Enter pin to connect;Described second selects the five, the 6th data output pins of switch to be connected with fast mold filling block, and described second selects Seven, the 8th data output pins of switch are connected with UART module.
Wherein, described first trigger between signal input pin and the ground that circuit includes being parallel to the first selection switch First resistance and switching tube, wherein, described first resistance is connected to the described first signal input pin selecting switch and ground Between, the drain electrode of described switching tube is connected with signal input pin, source ground, and the drain electrode of described switching tube is also connected with described The power pins of interface connects.
Wherein, described second trigger between signal input pin and the ground that circuit includes being series at described second selection switch The second resistance and the 3rd resistance.
Wherein, described controller includes that the first control end and second controls end, and described first controls end touches with described first The grid of the switching tube of Power Generation Road connects, and described second controls end and the described second the second resistance triggering circuit and the 3rd resistance Between connection node connect.
Wherein, it is high level signal that the described first the first module triggering circuit generation connects triggering signal, and switch connects Triggering signal is low level signal, and described switching tube is high level conducting switch, when connecting interface and being not connected with external equipment, institute State controller to control the first control end output low level signal and control the cut-off of described switching tube, when connecting interface power pin be During high level, then the first the first module selecting the signal input pin of switch to receive high level connects triggering signal, and gates First, second data-out pin and the connection of first, second data output pins, now, draw with first, second data output The USB module that foot connects connects with the correction data pin being connected interface and negative data pin.
Wherein, it is high level signal that the described second the second module triggering circuit generation connects triggering signal, described control Device after external equipment is identified as equipment, controls described first and controls end output high level signal, control described switching tube Conducting, thus, described first selects the signal input pin of switch to receive low electricity by the switching tube ground connection of described conducting Flat switch connection triggering signal, described first selects switch after receiving switch connection triggering signal, gates first, second Data-out pin and the connection of the three, the 4th data output pins, thus, correction data pin and the negative data of interface will be connected Pin is respectively connecting to the three, the 4th data-out pin of the second selection switch;Described controller is also controlled by described second End processed output high level signal is to described second resistance and the connection node of the 3rd resistance, thus described second selects the of switch Binary signal input receive high level second module connect trigger signal, and gate described second select switch the 3rd, Connection between 4th data-out pin and the five, the 6th data output pins, now, draws with the five, the 6th data outputs The fast mold filling block that foot connects connects with the correction data pin being connected interface and negative data pin, and external equipment is identified as filling soon Electricity equipment.
Wherein, described controller also includes that receiving terminal, described receiving terminal are connected with described fast mold filling block, fills soon for receiving Module and the result of communication of external equipment, if fast mold filling block and external device communication success, then controller maintains described first Control end and the second control end all exports high level signal;If fast mold filling block and external device communication failure, described control End output low level signal or non-output signal is controlled so that described switching tube ends by first, thus, described first triggers Circuit recovers the first module of output high level and triggers signal, then first select the signal input pin of switch to receive high level First module connects triggering signal, and gates first, second data-out pin and the company of first, second data output pins Connecing, now, the USB module being connected with first, second data output pins is drawn with the correction data pin being connected interface and negative data Foot connects, formal entrance usb communication pattern.
Wherein, when the power pins of described connection interface is low level, described controller controls the first control end and remains defeated Going out low level signal or non-output signal, switching tube ends, and first selects the signal input pin of switch from described power pins Receive low level switch to connect and trigger signal, and gate first, second data-out pin and the three, the 4th data and export and draw The connection of foot, described controller also controls end output low level signal to described second resistance and the 3rd resistance by described second Connection node, thus described second select switch secondary signal input receive low level three module connect trigger Signal, and gate between the described second the three, the 4th data-out pin and the seven, the 8th data output pins selecting switch Connection, now, the UART module being connected with the seven, the 8th data output pins and the correction data pin being connected interface and negative Connect according to pin, enter UART communication pattern.
Wherein, described switching tube is NPN audion or NMOS field effect transistor.
On the other hand, it is provided that a kind of terminal unit, including connect interface, the first functional module, the second functional module, the 3rd Functional module and aforesaid interface circuit.
Wherein, described connection interface is USB interface, including power pins, correction data pin and negative data pin.
Wherein, described first functional module is USB module, and described second functional module is fast mold filling block, described 3rd merit Can module be UART module.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that by simple interface circuit, can Select to be connected to connections interface USB module as generic USB interface, or selection connection interface is connected to fast mold filling block as Fill interface soon, or connection interface is connected to UART module and uses as UART interface by selection, it is achieved that connect by a connection The purpose of the mouth multiple function of multiplexing.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing briefly introduce, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for this From the point of view of the those of ordinary skill in field, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings His accompanying drawing.
Fig. 1 is the high-level schematic functional block diagram of the terminal unit in one embodiment of the invention.
Fig. 2 is the physical circuit figure of the terminal unit in one embodiment of the invention.
Fig. 3 is the internal junction that the first selection switch and second in the terminal unit in one embodiment of the invention selects switch Structure schematic diagram.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made into One step ground describes in detail, it is clear that described embodiment is only some embodiments of the present invention rather than whole enforcement Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise All other embodiments, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, for the high-level schematic functional block diagram of the terminal unit 100 in one embodiment of the invention.Described terminal sets Standby 100 include connecting interface 1, interface circuit the 2, first functional module the 3, second functional module 4 and the 3rd functional module 5.
Described connection interface 1 is for accessing an external equipment 200.
As it is shown in figure 1, described interface circuit 2 includes that first selection switch the 21, second selection switch 22, first triggers circuit 23, second circuit 24 and controller 25 are triggered.
Described first selects switch 21 to be connected to described connection interface 1 and described second selects switch the 22, first function Between module 3, for selection, described connection interface 1 is connected to described second and selects switch 22 or described first functional modules 3.
Described second selects switch 22 to be connected to described first selects switch 21 and described second functional module the 4, the 3rd merit Between energy module 5, switch 21 is selected to be connected to the second functional module 4 or the 3rd functional module 5 for selection by described first.
Described first trigger circuit 23 be connected to described connection interface 1, described first select switch 21 and controller 25 it Between, described second triggers circuit 24 is connected between described second selection switch 22 and controller 25.
Described controller 25 is for triggering circuit 23 from the level signal of connection interface 1 reception at least based on described first Control the first triggering circuit 23 and the second triggering circuit 24 produces and triggers signal accordingly, to trigger the first selection switch 21 respectively And second select switch 22 selection connection, thus select set up the first functional module the 3, second functional module 4 and the 3rd merit One of them in energy module 5 and the communication connection being connected interface 1.Accordingly, select to set up and be connected the outside that interface 1 connects The communication connection of one of them in equipment 200 and first functional module the 3, second functional module 4 and the 3rd functional module 5.
Concrete, described connection interface 1 includes power pins P and data pin D.In the present embodiment, described connection Interface 1 is USB (Universal Serial Bus, USB (universal serial bus)) interface.Described first selects switch 21 to be connected to institute Data pin D and described second stating connection interface 1 selects, between switch the 22, first functional module 3, to be used for selecting described Data pin D connecting interface 1 is connected to described second selection switch 22 or described first functional modules 3.
Described first triggers circuit 23 connects with described power pins Vbus being connected interface 1, outside connection interface 1 accesses When power pins Vbus during portion's equipment 200 is high level, produces the first module and connect triggering signal, and trigger the first selection and open Close the connection between data pin D and first functional module 3 of 21 gating connection interfaces 1.
Described controller 25 produces after the first module connects and trigger signal for triggering circuit 23 first, controls described the One triggers circuit 23 produces switch connection triggering signal, and triggers the first selection switch 21 gating and connect data pin D of interface 1 And described second select switch 22 between connection, simultaneously controller 25 control the second triggering circuit 24 produce second module connect Trigger signal, trigger the connection between second selection switch 22 gating the first selection switch 21 and the second module 4, thus build Connection between vertical data pin D and the second functional module 4 connecting interface 1.Described second functional module 4 be connected interface 1 Data pin D connect after by connect interface 1 data pin D be attached communicating with external equipment 200.
When described controller 25 communicates successfully between external equipment 200 with the second functional module 4, keep described first choosing Select switch 21 and the connection status of the second selection switch 22, thus keep the second functional module 4 and the data pin being connected interface 1 The connection of D.Now, the second functional module 4 starts and is attached communicating with external equipment 200.
Described controller 25 also during communication failure, controls the first triggering between external equipment 200 and the second functional module 4 Circuit 23 switching produces the first module and connects triggering signal, triggers the first selection switch 21 gating connection interface 1 and the first function Connection between module 3, now, the first functional module 3 starts and is attached communicating with external equipment 200.
When the described first triggering circuit 23 power pins P1 when connection interface 1 accesses external equipment 200 is low level, Produce switch to connect and trigger signal, and trigger the first selection switch 21 gating connect interfaces 1 with described second select switch 22 it Between connection, simultaneously controller 25 control the second triggering circuit 24 produce three module connect trigger signal, trigger second selection Connection between switch 22 gating the first selection switch 21 and the 3rd functional module 5, thus set up connection interface 1 and the 3rd function Connection between module 5.Now, the 3rd functional module 5 starts and is attached communicating with external equipment 200.
In one embodiment, described first functional module 3 includes USB module 31, and described USB module 31 is for being used for realizing Functional chip/the circuit of usb data communication etc..Described second functional module 4 includes that fast mold filling block 41, described fast mold filling block 41 are Realize the functional chip/circuit of quick-charge function.Described 3rd functional module 5 includes UART module 51, described UART module 51 is the functional chip/circuit realizing UART data communication.Described external equipment 200 can be USB device, such as, have USB and connect The apparatus such as computer of mouth, can be maybe fast charger, it is possible to for having UART equipment, i.e. have the terminal unit of UART interface.
Wherein, the second functional module 4 starts and is attached communication with external equipment 200 and is: when external equipment is for fill soon During charger, described fast mold filling block 41 starts and is attached communicating with external equipment 200, enters fast charge mode, now Connect interface 1 to use as filling interface soon.First functional module 3 starts and is attached communication with external equipment 200: when outward When portion's equipment 200 is the USB interface of other-end equipment, described USB module 31 starts and is attached leading to external equipment 200 Letter, enters generic USB connection mode, now connects interface 1 and uses as generic USB interface.3rd functional module 5 start and with External equipment 200 is attached communication: when the UART interface that external equipment is other-end equipment, described UART module 51 Start and be attached communicating with external equipment 200, enter UART connection mode, now connect interface 1 and connect as UART Mouth uses.
Refer to Fig. 2, for the physical circuit schematic diagram of the terminal unit 100 in one embodiment of the invention.Described connection connects Mouth 1 includes power pins Vbus, data pin D and grounding pin G, and data pin D includes correction data pin D+ and negative data Pin D-.
Described first selects switch 21 to include two data-out pin D11, D12, four data output pins O11-O14 And signal input pin S1.Described second selects switch 22 to include two data-out pin D21, D22, four data outputs Pin O21-O24 and signal input pin S2.
See also Fig. 3, be the first selection switch 21 and internal structure schematic diagram of the second selection switch 22.Wherein, Described first to select switch 21 and second to select switch 22 can be digital-control type double-point double-throw switch, described signal input pin S1 and S2 is respectively the first selection switch 21 and controlled end of the second selection switch 22.The input signal of response signal input pin S1, Described first select switch 21 two data-out pin D11, D12 can be connected with data output pins O11, O12 respectively or Person is connected with data output pins O13, O14 respectively.The input signal of response signal input pin S2, described second selects switch Two data-out pin D21, D22 of 22 can be connected with data output pins O21, O22 respectively or export with data respectively Pin O23, O24 connect.
Described first select switch 21 two data-out pin D11, D12 respectively with the described positive number being connected interface 1 Connect according to pin D+, negative data pin D-.Described first select switch 21 two of which data output pins O11, O12 with USB module 31 connects, and described first selects two other data output pins O13, O14 of switch 21 to select to open with second respectively Close two data-out pin D21, D22 connections of 22.The described second two of which data output pins selecting switch 22 O21, O22 are connected with fast mold filling block 41, and described second selects two other data output pins O23, O24 and UART of switch 22 Module 51 connects.
Described first triggers between signal input pin S1 and the ground that circuit 23 includes being parallel to the first selection switch 21 The first resistance R1 and switching tube Q1.Wherein, described first resistance R1 is connected to the described first signal input selecting switch 21 Between pin S1 and ground, the drain electrode of described switching tube Q1 is connected with signal input pin S1, source ground.Described switching tube Q1 Drain electrode also connect with described power pins Vbus being connected interface 1.
Described second triggers circuit 24 includes being series at the described second signal input pin S2 selecting switch 22 and ground Between the second resistance R2 and the 3rd resistance R3.
Described controller 25 includes that the first control end C1 and second controls end C2, and described first controls end C1 and described first The grid of the switching tube Q1 triggering circuit 23 connects, and described second controls end C2 and the described second the second resistance triggering circuit 24 Connection node N1 between R2 and the 3rd resistance R3 connects.
Wherein, described first triggers the first module that circuit 23 produces connects that to trigger signal be high level signal, and described the It is low level signal that one switch triggering circuit 23 generation connects triggering signal.Described switching tube Q1 is high level conducting switch, For example, NPN audion pipe.When connecting interface 1 and being not connected with external equipment 200, described controller 25 controls the first control end C1 Output low level signal and control described switching tube Q1 cut-off.When connecting interface 1 and connecting external equipment 200, if described connection Power pins Vbus of interface 1 is high level, then first select the signal input pin S1 of switch 21 to receive the first of high level Module connection triggering signal, and gated data input pin D11, D12 and the connection of data output pins O11, O12.Now, with The USB module 31 that data output pins O11, O12 connect is with the correction data pin D+ being connected interface 1 and negative data pin D-even Connecing, external equipment 200 is identified as USB device.
Described controller 25 after external equipment 200 is identified as USB device, controls described first and controls end C1 output High level signal, controls described switching tube Q1 conducting, thus, described first selects the signal input pin S1 of switch 21 to pass through institute State the switching tube Q1 ground connection of conducting and receive low level switch and connect triggering signal.Described first selects switch 21 receiving Connect after triggering signal to switch, gated data input pin D11, D12 and the connection of data output pins O13, O14, thus, The correction data pin D+ and negative data pin D-that connect interface 1 are respectively connecting to the data-out pin of the second selection switch 22 D21、D22。
Wherein, described second triggers the second module that circuit 24 produces connects that to trigger signal be high level signal, and described the It is low level signal that two three modules triggering circuit 24 generation connect triggering signal.Described controller 25 also passes through described second Control the connection node N1 of end C2 output high level signal extremely described second resistance R2 and the 3rd resistance R3, thus described second selects The signal input part S2 selecting switch 22 receives the second module connection triggering signal of high level, and gates described second and select to open Close the connection between two data-out pin D21, D22 and two data output pins O21, O22 of 22.Now, with data The fast mold filling block 41 that output pin O21, O22 connect connects with the correction data pin D+ being connected interface 1 and negative data pin D-, outward Portion's equipment 200 is identified as filling soon charger.
Described controller 25 also includes that receiving terminal P1, described receiving terminal P1 are connected with described fast mold filling block 41, is used for receiving Fast mold filling block 41 and the result of communication of external equipment 200.If fast mold filling block 41 communicates successfully with external equipment 200, then maintain Described first controls end C1 and second control end C2 all exports high level signal.Now, fast mold filling block 41 is by the first selection Switch 21 and second selects switch 22 to connect with the correction data pin D+ being connected interface 1 and negative data pin D-, and by connecting The correction data pin D+ and negative data pin D-of interface 1 are connected with external equipment 200, and start quick-charge function, enter fast Speed charge mode.
If fast mold filling block 41 and external equipment 200 communication failure, described controller 25 is exported by the first control end C1 Low level signal or non-output signal (high-impedance state) so that described switching tube Q1 ends.Thus, described first triggers circuit 23 The first module recovering output high level triggers signal, then first select the signal input pin S1 of switch 21 to receive high level First module connection triggering signal, and gated data input pin D11, D12 and the connection of data output pins O11, O12.This Time, the USB module 31 being connected with data output pins O11, O12 and the correction data pin D+ being connected interface 1 and negative data pin D-connects, and external equipment 200 is identified as USB device and formally enters usb communication pattern.
If power pins Vbus of described connection interface 1 is low level, described controller 25 controls the first control end C1 dimension Holding output low level signal or non-output signal, switching tube Q1 ends, and first selects the signal input pin S1 of switch 21 from institute State power pins Vbus and receive low level switch connection triggering signal, and gated data input pin D11, D12 is defeated with data Go out the connection of pin O13, O14.Now, the correction data pin D+ and negative data pin D-that connect interface 1 are respectively connecting to second Select data-out pin D21, D22 of switch 22.
Described controller 25 also controls end C2 output low level signal to described second resistance R2 and the by described second The connection node N1 of three resistance R3, thus described second selects the signal input part S2 of switch 22 to receive low level 3rd mould Block connect trigger signal, and gate described second select switch 22 two data-out pin D21, D22 and two data defeated Go out the connection between pin O23, O24.Now, the UART module 41 being connected with data output pins O23, O24 be connected interface 1 Correction data pin D+ and negative data pin D-connect, external equipment 200 be identified as UART equipment and enter UART communicate mould Formula.
Wherein, described controller 25 also includes sense terminal T1, described sense terminal T1 and the described power pins being connected interface 1 Vbus connects, and described control end 25 judges that when described sense terminal T1 sense terminal detects high level connecting interface 1 has outside to set Standby 200 access.And when described power pins Vbus is low level, no matter then connecting interface 1 whether access external equipment 200, institute State controller 25 and control the first control end C1 maintenance output low level signal or non-output signal, and control the second control end C1 Output low level so that described UART module 51 connects with the described positive supply pin D+ of interface 1, the negative supply pin D-of being connected. That is, UART communication pattern it is defaulted as.
Thus, in the present invention, by described relatively simple interface circuit 2, may select and connection interface 1 is connected to USB Module 31 is as generic USB interface, or selects to be connected to connections interface 1 fast mold filling block 41 as filling interface soon, or selects general Connection interface 1 is connected to UART module 51 and uses as UART interface 51, it is achieved that connect the interface 1 multiple merit of multiplexing by one The purpose of energy.
Wherein, in other embodiments, described switching tube Q1 is alternatively NMOS field effect transistor etc..
It should be noted that in above-mentioned terminal unit embodiment, included unit/module is simply patrolled according to function Volume carry out dividing, but be not limited to above-mentioned division, as long as being capable of corresponding function;It addition, each function list The specific name of unit/module also only to facilitate mutually distinguish, is not limited to protection scope of the present invention.
These are only the present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope that the embodiment of the present invention discloses, the change that can readily occur in or replace Change, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Enclose and be as the criterion.

Claims (20)

1. an interface circuit, for selecting to be connected to the first function mould of terminal unit by the interface that connects of a terminal unit In block, the second functional module and the 3rd functional module one, it is characterised in that described interface circuit includes: first selects to open Close, the second selection switchs, the first triggering circuit, the second triggering circuit and controller;
Described first selects switch to be connected to described connection interface and described second selects between switch, the first functional module, For selection, described connection interface is connected to described second and selects switch or described first functional module;
Described second select switch be connected to described first select switch and described second functional module, the 3rd functional module it Between, select switch to be connected to the second functional module or the 3rd functional module for selection by described first;
Described first triggering circuit is connected to described connection interface, described first selection switchs and between controller, and described second Trigger circuit to be connected between described second selection switch and controller;
Described controller controls first for triggering circuit at least based on described first from the level signal connecting interface Trigger circuit and the second triggering circuit produces and triggers signal accordingly, to trigger the first selection switch and the second selection switch respectively Selection connection, thus select set up one of them in the first functional module, the second functional module and the 3rd functional module With the communication connection being connected interface.
Interface circuit the most according to claim 1, it is characterised in that described connection interface includes that power pins, data are drawn Foot, described first triggers circuit connects with the described power pins being connected interface, and described first selects switch to be connected to described company The data pin of connection interface and described second selects between switch, the first functional module, for selecting described connection interface Data pin be connected to described second select switch or described first functional module.
Interface circuit the most according to claim 2, it is characterised in that described controller when power pins is high level, Produce the first module and connect triggering signal, and trigger the first selection switching gate and connect the company between interface and the first functional module Connect;Described controller also controls described first triggering circuit switching generation switch connection triggering signal, and triggers the first selection and open Closing and switch to connections interface to select switch to be attached with described second, controller controls the second triggering circuit generation the simultaneously Two modules connect triggering signal, trigger the second selection switching gate first and select the connection between switch and the second module, Thus the connection between setting up the data pin and the second functional module that connect interface.
Interface circuit the most according to claim 3, it is characterised in that described controller is at external equipment and the second function mould When communicating successfully between block, keep described first to select switch and second to select the connection status of switch, thus keep the second merit Can the connection of module and the data pin being connected interface, now, the second functional module startup and be attached leading to external equipment Letter.
Interface circuit the most according to claim 4, it is characterised in that described controller in external equipment and the second function Between module during communication failure, control first triggering circuit switching generation the first module connection and trigger signal, trigger the first selection Switching gate connects the connection between interface and the first functional module, and now, the first functional module starts and enters with external equipment Row connects communication.
Interface circuit the most according to claim 2, it is characterised in that described controller be low level in power pins Time, control the first triggering circuit generation switch connection and trigger signal, and trigger the first selection switching gate and connect interface with described Second selects the connection between switch, the second triggering circuit of controller control simultaneously to produce three module connection and trigger signal, touch Send out the second selection switching gate first and select the connection between switch and the 3rd functional module, thus set up connection interface and the 3rd Connection between functional module, now, the 3rd functional module starts and is attached communicating with external equipment.
7. according to the interface circuit described in any one of claim 2-6, it is characterised in that described first functional module is USB mould Block, described second functional module is fast mold filling block, and described 3rd functional module is UART module.
Interface circuit the most according to claim 7, it is characterised in that the data pin of described connection interface includes correction data Pin and negative data pin, described first select switch include first, second data-out pin, first, second, third, the Four data output pins and the first signal input pin, described second select switch include the three, the 4th data-out pin, Five, the six, the seven, the 8th data output pins and secondary signal input pins;Respond the defeated of the first signal input pin Entering signal, described first selects first, second data-out pin of switch to be chosen respectively draws with first, second data output Foot connects or is connected with the three, the 4th data output pins respectively, the input signal of response secondary signal input pin, described Second select switch the three, the 4th data-out pin be chosen be connected with the five, the 6th data output pins respectively or It is connected with the seven, the 8th data output pins respectively.
Interface circuit the most according to claim 8, it is characterised in that described first selects first, second data of switch Input pin respectively with described be connected the correction data pin of interface, negative data pin connect, described first select switch first, Second data output pins is connected with USB module respectively, and described first selects the three, the 4th data output pins of switch respectively The three, the 4th data-out pin of switch are selected to be connected with second;Described second the five, the 6th data outputs selecting switch Pin is connected with fast mold filling block, and described second selects the seven, the 8th data output pins of switch to be connected with UART module.
Interface circuit the most according to claim 9, it is characterised in that described first triggers circuit includes being parallel to first Selecting the first resistance between signal input pin and the ground of switch and switching tube, wherein, described first resistance is connected to institute Stating between signal input pin and the ground of the first selection switch, the drain electrode of described switching tube is connected with signal input pin, source Pole ground connection, the drain electrode of described switching tube also connects with the described power pins being connected interface.
11. interface circuits according to claim 10, it is characterised in that described second triggers circuit includes being series at described The second resistance between second signal input pin and the ground selecting switch and the 3rd resistance.
12. according to the interface circuit described in claim 11, it is characterised in that described controller includes the first control end and Two control ends, and described first controls end is connected with the described first grid of switching tube triggering circuit, described second control end and Connection node between described second the second resistance and the 3rd resistance triggering circuit connects.
13. interface circuits according to claim 7, it is characterised in that described first triggers the first module that circuit produces Connecting triggering signal is high level signal, and it is low level signal that switch connects triggering signal, and described switching tube is high level conducting Switch, when connecting interface and being not connected with external equipment, described controller controls the first control end output low level signal and controls Described switching tube ends, and when connecting interface power pin and being high level, then first selects the signal input pin of switch to receive First module of high level connects and triggers signal, and gates first, second data-out pin and first, second data and export and draw The connection of foot, now, the USB module being connected with first, second data output pins and the correction data pin being connected interface and negative Data pin connects.
14. interface circuits according to claim 13, it is characterised in that described second triggers the second module that circuit produces Connect that to trigger signal be high level signal, described controller after external equipment is identified as equipment, control described first control End processed output high level signal, controls the conducting of described switching tube, thus, described first selects the signal input pin of switch to pass through The switching tube ground connection of described conducting and receive low level switch and connect and trigger signal, described first selects switch receiving After switch connects triggering signal, gate first, second data-out pin and the connection of the three, the 4th data output pins, from And, the three, the 4th data that the correction data pin and negative data pin that connect interface are respectively connecting to the second selection switch are defeated Enter pin;Described controller also controls end output high level signal to described second resistance and the 3rd resistance by described second Connect node, thus the described second the second module selecting the secondary signal input of switch to receive high level connects triggering letter Number, and gate between the described second the three, the 4th data-out pin and the five, the 6th data output pins selecting switch Connect, now, the fast mold filling block being connected with the five, the 6th data output pins and the correction data pin being connected interface and negative data Pin connects, and external equipment is identified as filling soon charger.
15. interface circuits according to claim 14, it is characterised in that described controller also includes receiving terminal, described in connect Receiving end is connected with described fast mold filling block, for receiving the result of communication of fast mold filling block and external equipment, if fast mold filling block is with outer Portion's equipment communicates successfully, then controller maintains described first to control end and the second control end all exports high level signal;If Fast mold filling block controls end output low level signal or non-output signal with external device communication failure, described control by first, Described switching tube is ended, thus, described first triggers circuit recovers the first module of output high level and triggers signal, then and the One the first module selecting the signal input pin of switch to receive high level connects triggering signal, and gates first, second data Input pin and the connection of first, second data output pins, now, the USB mould being connected with first, second data output pins Block connects with the correction data pin being connected interface and negative data pin, formal entrance usb communication pattern.
16. interface circuits according to claim 15, it is characterised in that when the power pins of described connection interface is low electricity Flat, described controller controls the first control end and maintains output low level signal or non-output signal, and switching tube ends, and first selects The signal input pin of switch receives low level switch from described power pins and connects triggering signal, and gates first, second Data-out pin and the connection of the three, the 4th data output pins, described controller also controls end output by described second Low level signal is to described second resistance and the connection node of the 3rd resistance, thus described second selects the secondary signal switched defeated Enter termination and receive low level three module connection triggering signal, and gate the described second the three, the 4th data selecting switch Connection between input pin and the seven, the 8th data output pins, now, is connected with the seven, the 8th data output pins UART module connects with the correction data pin being connected interface and negative data pin, enters UART communication pattern.
17. according to the interface circuit described in claim 10-16, it is characterised in that described switching tube is NPN audion or NMOS Field effect transistor.
18. 1 kinds of terminal units, it is characterised in that include connecting interface, the first functional module, the second functional module, the 3rd merit Can module and the interface circuit as described in any one of claim 1-17.
19. terminal units according to claim 18, it is characterised in that described connection interface is USB interface, including power supply Pin, correction data pin and negative data pin.
20. terminal units according to claim 19, it is characterised in that described first functional module is USB module, described Second functional module is fast mold filling block, and described 3rd functional module is UART module.
CN201610648360.1A 2016-08-09 2016-08-09 Interface circuit and terminal device Active CN106301342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610648360.1A CN106301342B (en) 2016-08-09 2016-08-09 Interface circuit and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610648360.1A CN106301342B (en) 2016-08-09 2016-08-09 Interface circuit and terminal device

Publications (2)

Publication Number Publication Date
CN106301342A true CN106301342A (en) 2017-01-04
CN106301342B CN106301342B (en) 2019-02-05

Family

ID=57667298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610648360.1A Active CN106301342B (en) 2016-08-09 2016-08-09 Interface circuit and terminal device

Country Status (1)

Country Link
CN (1) CN106301342B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613126A (en) * 2017-09-26 2018-01-19 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN107635069A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN109086233A (en) * 2018-06-30 2018-12-25 惠州华阳通用电子有限公司 A kind of communication type automatic identification and switching device and method
CN109743501A (en) * 2019-01-15 2019-05-10 上海曼恒数字技术股份有限公司 A kind of polyphaser synchronous trigger method, device, equipment and storage medium
CN109960180A (en) * 2017-12-22 2019-07-02 泰科电子(上海)有限公司 The electronic building brick and sensor of programmable study
CN110442541A (en) * 2019-09-09 2019-11-12 Oppo(重庆)智能科技有限公司 Terminal device and USB interface-based data transmission method
CN111522766A (en) * 2020-04-27 2020-08-11 浙江大华技术股份有限公司 Communication system, method, device, equipment and storage medium thereof
CN111864854A (en) * 2020-08-03 2020-10-30 珠海智融科技有限公司 Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof
CN112968695A (en) * 2021-02-18 2021-06-15 上海节卡机器人科技有限公司 Dual-port circuit, digital output port circuit and robot
CN114372013A (en) * 2021-12-31 2022-04-19 深圳微步信息股份有限公司 USB interface expansion circuit and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100161860A1 (en) * 2008-12-24 2010-06-24 Wen-Ying Chien Pin sharing device and method thereof for a universal asynchronous receiver/transmitter module and a universal serial bus module
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN103678226A (en) * 2012-09-24 2014-03-26 炬力集成电路设计有限公司 General purpose input/output (GPIO) port reuse circuit and method of chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100161860A1 (en) * 2008-12-24 2010-06-24 Wen-Ying Chien Pin sharing device and method thereof for a universal asynchronous receiver/transmitter module and a universal serial bus module
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN103678226A (en) * 2012-09-24 2014-03-26 炬力集成电路设计有限公司 General purpose input/output (GPIO) port reuse circuit and method of chip

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613126A (en) * 2017-09-26 2018-01-19 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN107613126B (en) * 2017-09-26 2020-03-10 Oppo广东移动通信有限公司 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107635069A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal
CN107635069B (en) * 2017-09-27 2019-08-09 Oppo广东移动通信有限公司 UART and USB multiplex circuit and mobile terminal
CN109960180A (en) * 2017-12-22 2019-07-02 泰科电子(上海)有限公司 The electronic building brick and sensor of programmable study
CN109086233B (en) * 2018-06-30 2020-12-08 惠州华阳通用电子有限公司 Communication type automatic identification and switching device and method
CN109086233A (en) * 2018-06-30 2018-12-25 惠州华阳通用电子有限公司 A kind of communication type automatic identification and switching device and method
CN109743501A (en) * 2019-01-15 2019-05-10 上海曼恒数字技术股份有限公司 A kind of polyphaser synchronous trigger method, device, equipment and storage medium
CN110442541A (en) * 2019-09-09 2019-11-12 Oppo(重庆)智能科技有限公司 Terminal device and USB interface-based data transmission method
CN111522766A (en) * 2020-04-27 2020-08-11 浙江大华技术股份有限公司 Communication system, method, device, equipment and storage medium thereof
CN111864854A (en) * 2020-08-03 2020-10-30 珠海智融科技有限公司 Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof
CN111864854B (en) * 2020-08-03 2021-04-06 珠海智融科技有限公司 Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof
CN112968695A (en) * 2021-02-18 2021-06-15 上海节卡机器人科技有限公司 Dual-port circuit, digital output port circuit and robot
CN114372013A (en) * 2021-12-31 2022-04-19 深圳微步信息股份有限公司 USB interface expansion circuit and terminal
CN114372013B (en) * 2021-12-31 2023-12-12 深圳微步信息股份有限公司 USB interface expansion circuit and terminal

Also Published As

Publication number Publication date
CN106301342B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN106301342A (en) Interface circuit and terminal unit
CN104638732B (en) Have both the system and method for accessing external equipment and battery charging management function
CN207473599U (en) A kind of I2C bus control interfaces circuit
CN104704704B (en) A kind of charging circuit and terminal
CN105896655B (en) Method for charging for electronic equipment and electronic equipment
CN104881387B (en) A kind of USB connection methods and usb hub
CN104505890B (en) Mobile terminal
CN101770685B (en) Vertical bus circuit, a battery management system and a signal transmission method
CN204304549U (en) Charger and charge management circuit
CN104239240A (en) Electronic device with universal serial bus (USB) interface with integration function
CN101383627A (en) Device and method for terminal charger charging, USB charging and data communication
CN104067200B (en) The communication of battery and monitoring via single line
CN107658920B (en) OTG is realized based on external charging and the difunctional system that charges
CN105762883B (en) Method and electronic equipment for charging for electronic equipment
CN107643998A (en) OTG and the difunctional system that charges are realized based on intelligent object
CN103856411B (en) Switching system connected with UART interface of router
CN208654789U (en) A kind of USB interface control device and system
CN206878506U (en) A kind of data wire and adapter
CN205863955U (en) A kind of USB fast charging device of main frame front interface
CN103051325A (en) Pull-up resistance circuit for preventing reverse current filling
CN111537915A (en) Broken string detection circuitry and treasured that charges of polymorphic type charging wire
CN207625314U (en) A kind of double charging circuits compatible with DC USB
CN106856289A (en) Electronic equipment and its circuit, interconnecting device and its circuit and signal processing system
CN207148771U (en) OTG power supply-charging automatic switching modules
CN102541783B (en) Timing simulation system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant