CN103139031A - Universal serial bus (USB) front-arrangement judging circuit - Google Patents

Universal serial bus (USB) front-arrangement judging circuit Download PDF

Info

Publication number
CN103139031A
CN103139031A CN201110394700XA CN201110394700A CN103139031A CN 103139031 A CN103139031 A CN 103139031A CN 201110394700X A CN201110394700X A CN 201110394700XA CN 201110394700 A CN201110394700 A CN 201110394700A CN 103139031 A CN103139031 A CN 103139031A
Authority
CN
China
Prior art keywords
communication bus
main frame
preposition
decision circuitry
input unit
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
Application number
CN201110394700XA
Other languages
Chinese (zh)
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.)
Askey Technology Jiangsu Ltd
Askey Computer Corp
Original Assignee
Askey Technology Jiangsu Ltd
Askey Computer 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 Askey Technology Jiangsu Ltd, Askey Computer Corp filed Critical Askey Technology Jiangsu Ltd
Priority to CN201110394700XA priority Critical patent/CN103139031A/en
Publication of CN103139031A publication Critical patent/CN103139031A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A universal serial bus (USB) front-arrangement judging circuit is used for judging states of connection of the USB and a host or the USB and a device. The circuit comprises an input unit, a detection unit, a processing unit and a switch unit, wherein the input unit is connected with the host or the device. When the input unit is connected with the host, the detection unit enables the host so that the host generates a synchronous signal and transmits the synchronous signal to the input unit. On the contrary, when the input unit is connected with the device, the synchronous signal is not generated and the processing unit judges whether the USB is connected with the host or the device through judging of the synchronous signal. Therefore, the USB front-arrangement judging circuit can avoid misjudgment that the USB is connected with the host or the device.

Description

The preposition decision circuitry of communication bus
Technical field
The invention relates to a kind of decision circuitry, particularly the preposition decision circuitry of a kind of communication bus.
Background technology
In prior art, the kenel with communication bus is to be divided into according to different zones main frame aspect and device aspect.In the main frame aspect, this communication bus is be used to the transmission of carrying out data; And in this device aspect, this communication bus is be used to the transmission of carrying out non-data, such as the transmission of power supply etc.
In conventional practice, be by using special pin or different joints in order to distinguish this communication bus of different aspects.Yet these modes are not to be standardized this communication bus, also or need the extra cost that increases to make this different communication buses, just can distinguish the aspect of different main frame or device.
For solving the above problems, again by connect the earth resistance that for example has 1.5K nurse resistance value difficult to understand in this communication bus equipment, be main frame aspect or device aspect in order to judge this aspect in the prior art.Yet, also can use in other application and have the resistance value identical with this earth resistance in order to prevent from disturbing the problem with compatibility.
Though above-mentioned these earth resistances by different functions in order to solving different problems, the situation of carrying out this main frame and maybe probably making a mistake because having the earth resistance of difference in functionality and judging during the judgement of this device.
Therefore because the disappearance of prior art, the present invention proposes the disappearance that the preposition decision circuitry of a kind of communication bus can be used for solving prior art
Summary of the invention
A purpose of the present invention is to provide the preposition decision circuitry of a kind of communication bus, can be judged as exactly for communication bus to be connected with main frame or to be the aspect that is connected with device.
For reaching above-mentioned purpose, the present invention is the preposition decision circuitry of a kind of communication bus (Universal Serial Bus), that the preposition decision circuitry of this communication bus comprises input unit, detecting unit and processing unit for the aspect of judgement communication bus for being connected with main frame (host) or being connected with device (device).This input unit is for the one that is connected to this main frame and this device; This detecting unit is connected with this input unit, this detecting unit produces the detection signal according to the one of this main frame and this device, and again when this detecting unit be when being connected with this main frame, this this main frame of detecting unit activation (enable), and allow this main frame produce a synchronous signal and to be sent to this input unit; And this processing unit connects this input unit and this detecting unit, this processing unit optionally receives this sync signal and produces according to this detection signal controls signal, and interrupt being connected of this input unit and this detecting unit, to judge that according to this control signal this input unit connects the one of this main frame and this device.
Compare with prior art, the preposition decision circuitry of communication bus of the present invention can be arranged on communication bus (USB) before, makes at main frame or device with after this communication bus is connected, and it can judge exactly that this communication bus connects is this main frame or is this device.Therefore the present invention can be in order to avoid in prior art because judgement connect for this main frame maybe the error result of this device cause producing the situation of misoperation.
Description of drawings
Fig. 1 is the block schematic diagram of the preposition decision circuitry of communication bus of first embodiment of the invention;
Fig. 2 is the block schematic diagram of the first embodiment of input unit in key diagram 1;
Fig. 3 is the block schematic diagram of the second embodiment of input unit in key diagram 1;
Fig. 4 is the block schematic diagram of the 3rd embodiment of input unit in key diagram 1; And
Fig. 5 is the block schematic diagram of the preposition decision circuitry of communication bus of second embodiment of the invention.
In figure:
2, main frame;
4, device;
6, communication bus;
10,10 ', the preposition decision circuitry of communication bus;
12, input unit;
122, diode;
124, the communication bus switch;
126, transistor;
14, detecting unit;
16, processing unit;
18, switch element;
SS, sync signal;
DS detects signal;
CS controls signal.
Embodiment
For fully understanding purpose of the present invention, feature and effect, existing by following specific embodiment, and coordinate appended graphicly, the present invention is described in detail, illustrate as after:
With reference to figure 1, it is the block schematic diagram of the preposition decision circuitry of communication bus of first embodiment of the invention.In Fig. 1, the preposition decision circuitry 10 of this communication bus be for judgement communication bus 6 for is connected with main frame 2 or with install 4 aspects that are connected, can be notebook computer, desktop computer, flat computer or the smart mobile phone etc. with communication bus slot such as main frame 2; And this device 4 is for charger with communication bus slot etc.
The preposition decision circuitry 10 of this communication bus comprises input unit 12, detecting unit 14 and processing unit 16.Wherein, this input unit 12 is to be connected to maybe this device 4 of this main frame 2, and for example this input unit 12 is to be diode, communication bus switch (USB switch) or transistor electronic switch, and its connected mode is respectively as Fig. 2, Fig. 3 and shown in Figure 4.
For example, in Fig. 2, this input unit 12 is explanations as an example of diode 122 example, and the negative terminal of this diode 122 is connected to this main frame 2 and/or this device 4, and the anode of this diode 122 is connected to this detecting unit 14 and this processing unit 16.
In Fig. 3, this input unit 12 illustrates as an example of communication bus switch 124 example, and this communication bus switch 124 can be connected to this detecting unit 14, this processing unit 16 or other circuit by these processing unit 16 these main frames 2 of control switching.
In Fig. 4, this input unit 12 is take transistor 126 as the example explanation, and this transistor 126 can be controlled the base terminal (Base) (for example utilizing the gate (Gate) of field-effect transistor) of this transistor 126 equally by this processing unit 16, isolate this detecting unit 14 and this processing unit 16 in order to selectivity.
Can be to Fig. 1, this detecting unit 14 is to be connected with this input unit 12, and this detecting unit 14 according to this main frame 2 maybe this device 4 produce detection signal DS (Detecting Signal).In an embodiment, when this detecting unit 14 is connected with this main frame 2, this this main frame 2 of detecting unit 14 activations (enable), and make this main frame 2 produce sync signal SS (Synchronous Signal), for example this detecting unit 14 is lifting resistance (pull-up resistor), and the resistance value of this lifting resistance can be 1.5K nurse difficult to understand.In other words, when if the preposition decision circuitry 10 of this communication bus is connected with this main frame 2, whether this main frame 2 detects this detecting unit 14 by this input unit 12 and exists, and can produce this sync signal SS from this main frame 2 on one's own initiative when this main frame 2 determines that this detecting unit 14 exists.Wherein, this sync signal SS is that the position (bit) that has the work period (duty cycle) forms.Generally speaking, this main frame 2 can produce this sync signal SS of about 60 several.Moreover this detection signal DS starts the calculating that this processing unit 16 is correlated with, and for example calculates the quantity of this position in this sync signal SS or the time that this sync signal SS continues generation.
In other words, when this processing unit 16 receives this sync signal SS with this predetermined quantity, can judge that this main frame 2 is connected with this input unit 12; And, when this processing unit 16 does not receive this sync signal SS with this predetermined quantity or when receiving sync signal SS, judges that this device 4 is connected with this input unit 12.In an embodiment, this predetermined quantity can be at least 10 positions this sync signal SS with as the judgement benchmark.
In addition, when the preposition decision circuitry 10 of this communication bus is when being connected with this device 4, because this device 4 can't produce similar sync signal SS on one's own initiative, therefore this detecting unit 14 can't produce any this detection signal DS.
This processing unit 16 connects this input unit 12 and this detecting unit 14.Wherein, this processing unit 16 be microprocessing unit (micro control unit) but or complexity program logic device (Complex programmable logic device).Moreover, this processing unit 16 is processed this sync signal SS according to this detection signal DS, for example when this processing unit 16 received this detection signal DS, this processing unit 16 began this sync signal SS is counted or determined whether that within a period of time this sync signal SS continues to produce.This processing unit 16 can produce according to above-mentioned processing mode and control signal CS (Control Signal) again, and for example this control signal CS can be defined as this main frame 2 and is connected with this communication bus 6, but not this device 4 is connected with this communication bus 6.Moreover, when determine that this input unit 12 connects be this main frame 2 time, this processing unit 16 can interruption with this detecting unit 14 between be connected.
In addition, in an embodiment, if when this processing unit 16 does not receive this detection signal DS, this processing unit 16 directly interrupts and being connected of this detecting unit 14; And, in an other embodiment, this processing unit 16 can be after waiting for a scheduled time being connected of interruption and this detecting unit 14 again.
No matter the preposition decision circuitry of this communication bus 10 whether with this main frame 2 maybe this device 4 be connected, be this main frame 2 maybe after this device 4 what determine to be connected with the preposition decision circuitry 10 of this communication bus, the preposition decision circuitry 10 of this communication bus is exported can be in order to show this control signal CS that connects aspect.
With reference to figure 5, be the block schematic diagram of the preposition decision circuitry of communication bus of second embodiment of the invention.In Fig. 5, the preposition decision circuitry 10 ' of this communication bus also comprises switch element 18 except comprising this input unit 12, this detecting unit 14 and this processing unit 16.Wherein, this switch element 18 is connected with this processing unit 16, and this switch element 18 connects maybe this device 4 of these main frames 2 for this communication bus 6, and controls according to this control signal CS the aspect that this communication bus 6 is connected or is connected with this device 4 with this main frame 2.In an embodiment, this switch element 18 can be the communication bus switch, in order to as the follow-up control that is connected to other communication bus (USB).
The present invention is open with preferred embodiment hereinbefore, so has the knack of the technology person and it should be understood that this embodiment only is used for describing the present invention, does not limit the scope of the invention and should not be read as.It should be noted, such as with variation and the displacement of this embodiment equivalence, all should be made as and be covered by in category of the present invention.Therefore, protection scope of the present invention when with claim the person of being defined be as the criterion.

Claims (10)

1. preposition decision circuitry of communication bus, it is used for the judgement communication bus is the aspect that is connected or is connected with device with main frame, it is characterized in that, the preposition decision circuitry of this communication bus comprises:
Input unit, it is for the one that is connected to this main frame and this device;
Detecting unit, it is connected with this input unit, this detecting unit produces according to its one of this main frame and this device and detects signal, and be when being connected with this main frame in this detecting unit, and this main frame generation one synchronous signal of this detecting unit activation also is sent to this input unit; And
Processing unit, it connects this input unit and this detecting unit, this processing unit optionally receives this sync signal and produces according to this detection signal controls signal, and interrupt being connected of this input unit and this detecting unit, to judge that according to this control signal this input unit connects the one of this main frame and this device.
2. the preposition decision circuitry of communication bus as claimed in claim 1, is characterized in that, wherein said processing unit is according to received this sync signal within the time, in order to the aspect that judges that this input unit is connected or is connected with this device with this main frame.
3. the preposition decision circuitry of communication bus as claimed in claim 2, is characterized in that, wherein when described processing unit receives this sync signal with predetermined quantity, judges that this communication bus is the aspect that is connected with this main frame.
4. the preposition decision circuitry of communication bus as claimed in claim 2, is characterized in that, wherein do not receive this sync signal with this predetermined quantity or during without sync signal, judge that this communication bus is the aspect that is connected with this device when described processing unit.
5. the preposition decision circuitry of communication bus as claimed in claim 3, is characterized in that, wherein said predetermined quantity has this sync signal of at least 10 of work periods.
6. the preposition decision circuitry of communication bus as claimed in claim 1, is characterized in that, wherein said detecting unit is for promoting resistance.
7. the preposition decision circuitry of communication bus as claimed in claim 1, is characterized in that, wherein said input unit is diode, communication bus switch or transistor electronic switch.
8. the preposition decision circuitry of communication bus as claimed in claim 7, is characterized in that, the negative terminal of wherein said diode is connected to maybe this device of this main frame, and the anode of this diode connects this detecting unit and this processing unit.
9. the preposition decision circuitry of communication bus as claimed in claim 7, is characterized in that, the control end of wherein said transistor electronic switch is connected with this processing unit, is connected with this processing unit in order to control this input unit.
10. the preposition decision circuitry of communication bus as claimed in claim 1, it is characterized in that, more comprise switch element, it is connected with this processing unit, and this switch element is controlled the aspect of this communication bus for being connected or being connected with this device with this main frame according to this control signal.
CN201110394700XA 2011-12-02 2011-12-02 Universal serial bus (USB) front-arrangement judging circuit Pending CN103139031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110394700XA CN103139031A (en) 2011-12-02 2011-12-02 Universal serial bus (USB) front-arrangement judging circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110394700XA CN103139031A (en) 2011-12-02 2011-12-02 Universal serial bus (USB) front-arrangement judging circuit

Publications (1)

Publication Number Publication Date
CN103139031A true CN103139031A (en) 2013-06-05

Family

ID=48498366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110394700XA Pending CN103139031A (en) 2011-12-02 2011-12-02 Universal serial bus (USB) front-arrangement judging circuit

Country Status (1)

Country Link
CN (1) CN103139031A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438582A (en) * 2003-02-12 2003-08-27 威盛电子股份有限公司 USB control circuit suitable to computer-to-computer transmission and its operation method
CN1549094A (en) * 2003-05-15 2004-11-24 凌阳科技股份有限公司 USB interface mobile storage
US20050010699A1 (en) * 2003-07-08 2005-01-13 Ching-Fu Hung [active usb device]
CN1601506A (en) * 2004-09-30 2005-03-30 威盛电子股份有限公司 USB control circuit having host mode and controlled mode switching function and its method
KR20060003470A (en) * 2004-07-06 2006-01-11 주식회사 텔레칩스 Control method for the multimedia chip in mobile terminal
CN101226516A (en) * 2007-01-15 2008-07-23 奇岩电子股份有限公司 Device and method capable of automatically switching into USB host or peripherals
US20080222341A1 (en) * 2007-03-07 2008-09-11 Peng-Fei Lin Method And Apparatus For Automatically Switching Between USB Host And Device
CN101989246A (en) * 2009-07-29 2011-03-23 鸿富锦精密工业(深圳)有限公司 Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB)

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438582A (en) * 2003-02-12 2003-08-27 威盛电子股份有限公司 USB control circuit suitable to computer-to-computer transmission and its operation method
CN1549094A (en) * 2003-05-15 2004-11-24 凌阳科技股份有限公司 USB interface mobile storage
US20050010699A1 (en) * 2003-07-08 2005-01-13 Ching-Fu Hung [active usb device]
KR20060003470A (en) * 2004-07-06 2006-01-11 주식회사 텔레칩스 Control method for the multimedia chip in mobile terminal
CN1601506A (en) * 2004-09-30 2005-03-30 威盛电子股份有限公司 USB control circuit having host mode and controlled mode switching function and its method
CN101226516A (en) * 2007-01-15 2008-07-23 奇岩电子股份有限公司 Device and method capable of automatically switching into USB host or peripherals
US20080222341A1 (en) * 2007-03-07 2008-09-11 Peng-Fei Lin Method And Apparatus For Automatically Switching Between USB Host And Device
CN101989246A (en) * 2009-07-29 2011-03-23 鸿富锦精密工业(深圳)有限公司 Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB)

Similar Documents

Publication Publication Date Title
CN102750252B (en) USB/UART interface multiplexing circuit and use the electronic equipment of this circuit
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
EP2480043A1 (en) Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
US10445274B2 (en) Universal serial bus (USB) hub for connecting different port types and method thereof
CN108228509B (en) USB interface switching device and electronic equipment
CN106445858B (en) Information processing method, information processing module and electronic equipment
CN102768648B (en) Gatherer, the system with this gatherer and correlation technique are interrupted in low delay
CN104182243A (en) Sleep state control system, computer system and sleep state detection method thereof
CN102054370A (en) USB (universal serial bus) cable controller and electronic reading device using same
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN105162213A (en) USB controller, and device
CN102478940A (en) Control circuit for computer system multiplexing pins
US20150169491A1 (en) Electronic device using usb socket to load firmware and firmware loading method thereof
CN101339542B (en) Data transmission device, control circuit chip and operation mode control method
CN101208682A (en) Slave device with latched request for service
CN103279432A (en) Method for switching working modes of intelligent secrete key device and intelligent secrete key device
US8990461B2 (en) On-The-Go (OTG) USB devices configuration method for identifying configuration of other connected devices by reacting to change in resistance value on a resistive line
CN104270740A (en) Slot-sharing T card and SIM card detection method
CN102445981B (en) Data transmission system and data transmission method
CN101763324B (en) Method for realizing equipment simulating and device thereof
CN212846570U (en) Type-C interface circuit and touch-control all-in-one
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
JP2016170666A (en) Semiconductor device and control method thereof
CN104571314A (en) Method for judging installation direction of electronic device and electronic system
US7996697B2 (en) Matching system of electronic device and peripheral device and matching method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130605