1. Technical Field
The present disclosure relates to an interface detection circuit.
2. Description of Related Art
Universal serial bus (USB) and serial advanced technology attachment (SATA) are popular interface communication standards used on most electronic devices. For example, a USB device or a USB data cable with a USB interface is usually connected to a computer for transmitting data. However, when the transmission of data fails, it is difficult to estimate whether the USB interface has a poor contact with the computer or the USB device is defective, which is inconvenient.
Therefore, there is need for improvement in the art.
Many aspects of the present disclosure can be better understood with reference to the following drawing(s). The components in the drawing(s) are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawing(s), like reference numerals designate corresponding parts throughout the several views.
Each of the interfaces 21 and 11 includes a power pin VCC, a first data pin D+, a second data pin D−, and a ground pin GND. In the embodiment, the electronic device 10 can be a computer or a server. The connection device 20 can be a hard disk drive or a data card.
Referring to
The bridge circuit 122 is located under the power pin VCC of the interface 11 and is connected to the operation unit 301 of the signal processing module 130. The operation unit 301 is connected to the warning module 150 through the diode D1 of the protection module. The bridge circuit 124 is located under the first data pin D+ of the interface 11 and is connected to the operation unit 303. The operation unit 303 is connected to the warning module 150 through the diode D2 of the protection module. The bridge circuit 126 is located under the second data pin D− of the interface 11 and is connected to the operation unit 305. The operation unit 305 is connected to the warning module 150 through the diode D3 of the protection module. The bridge circuit 128 is located under the ground pin GND of the interface 11 and is connected to the operation unit 307. The operation unit 307 is connected to the warning module 150 through the diode D4 of the protection module.
The bridge circuit 122 includes four piezoresistors R1-R4. A first end of the piezoresistor R1 is connected to a power source VCC. A second end of the piezoresisitor R1 functions as a first output of the bridge circuit 122 and is grounded through the piezoresistor R2. A first end of the piezoresistor R3 is connected to the power source VCC. A second end of the piezoresistor R3 functions as a second output of the bridge circuit 122 and is grounded through the piezoresistor R4.
The operation unit 301 includes a first amplifier U1, a second amplifier U2, and a third amplifier U3. A non-inverting input of the first amplifier U1 is connected to the first output of the bridge circuit 122. An inverting input of the first amplifier U1 is connected to an output of the first amplifier U1 through a resistor R5. A non-inverting input of the second amplifier U2 is connected to the second output of the bridge circuit 122. An inverting input of the second amplifier U2 is connected to an output of the second amplifier U2 through a resistor R6. A non-inverting input of the third amplifier U3 is connected to the output of the first amplifier U1 through a resistor R7 and is ground by a resistor R9. An inverting input of the third amplifier U3 is connected to the inverting input of the second amplifier U2 through a resistor R8. The inverting input of the third amplifier U3 is also connected to an output of the third amplifier U3 through a resistor R10. The output of the third amplifier U3 is connected to an anode of the diode D1. A cathode of the diode D1 is grounded through a resistor R11 and is connected to the warning module 150 through a resistor R12. The operation unit 301 also includes an adjustable resistor RV1 connected between the inverting input of the amplifier U1 and the output of the amplifier U2, for regulating magnification of the first amplifier U1 and the second amplifier U2.
The warning module 150 includes a transistor Q1 and a light emitting diode (LED) D5. A base of the transistor Q1 is connected to the cathode of the diode D1 through the resistor R12 and is grounded through a resistor R13. An emitter of the transistor Q1 is grounded. A collector of the transistor Q1 is connected to a cathode of the LED D5. An anode of the LED D5 is connected to the power source VCC through a resistor R14. In one embodiment, the transistor Q1 is an npn bipolar junction transistor.
When any of the four piezoresistors R1-R4 of the bridge circuit 122 is not pressed by the power pin VCC of the interface 11, a voltage difference between the first output and the second output of the bridge circuit 122 is zero, which means the bridge circuit 122 is balanced. A voltage received by the non-inverting input of the first amplifier U1 is equal to a voltage received by the non-inverting input of the second amplifier U2. A voltage output of the first amplifier U1 is equal to a voltage output of the second amplifier U2. A voltage of the non-inverting input of the third amplifier U3 is equal to a voltage of the inverting input of the third amplifier U3. The output of the third amplifier U3 outputs a low level signal, such as logic 0.
When any of the four piezoresistors R1-R4 of the bridge 122 is pressed by the power pin VCC of the interface 11, a voltage difference between the first output and the second output of the bridge 122 is generated, which means the bridge circuit 122 is unbalanced. The resistance of the adjustable resistor RV1 is adjusted by testers when debugging or troubleshooting the interfaces at the manufacturer during production. The resistance of RV1 is adjusted to make the voltage of the non-inverting input of the third amplifier U3 greater than the voltage of the inverting input of the third amplifier U3. The output of the third amplifier U3 outputs a high level signal, such as logic 1. In the embodiment, a same phase parallel differential amplifier consisted of the first amplifier U1 and the second amplifier U2 composes a two stage amplifier circuit with the third amplifier U3. The two stage amplifier circuit can enlarge the magnification of the operation unit 301 and improve the detection precision and efficiency.
The work principle of each of the bridge circuits 124, 126, and 128 is same as the bridge circuit 122. The circuit structure and work principle of each of the operation units 303, 305, and 307 are same as the operation unit 301. The connection relationship and work principle between the diode D2 and the operation unit 303, the diode D3 and the operation unit 305, the diode D4 and the operation unit 307 are same as the diode D1 and operation unit 301.
If the interface 21 of the connection device 20 is in good contact with the interface 11 of the electronic device 10 after the interface 21 is inserted in the interface 11, each pin of the interface 11 is respectively in contact with each pin of the interface 21. The power pin VCC, the first data pin D+, the second data pin D−, and the ground pin GND of the interface 11 can get pressure respectively from the power pin VCC, the first data pin D+, the second data pin D−, and the ground pin GND of the interface 21. Each of the bridge circuits 122, 124, 126, and 128 gets pressure from the power pin VCC, the first data pin D+, the second data pin D−, and the ground pin GND of the interface 11. The output of each of the operation units 301, 303, 305, and 307 outputs a high level signal. The diodes D1-D4 are turned on. A voltage of the base of the transistor Q1 reaches a turn-on voltage of the transistor Q1. Therefore, the transistor Q1 is turned on and the LED D5 is turned on to emit light to indicate the interface 11 and the interface 21 make good contact with each other. In the embodiment, only when all the diodes D1-D4 are turned on, the voltage of the base of the transistor Q1 can reach the break-over voltage of the transistor Q1.
If the interface 21 of the connection device 20 does not contact well with the interface 11 of the electronic device 10 after the interface 21 is inserted to the interface 11, at least one of the pins of the interface 11 may not be in contact with the corresponding pin of the interface 21. For example, the power pin VCC of the interface 11 is not in contact with the power pin VCC of the interface 21. The bridge circuit 122 cannot get a pressure reading. The output of the operation unit 301 outputs a low level signal. The diode D1 is turned off. The voltage of the base of the transistor Q1 cannot reach the break-over voltage of the transistor Q1. The transistor Q1 is turned off. Therefore, the LED D5 does not emit light for showing the interface 11 has a poor contact with the interface 21.
The diodes D1-D4 can also prevent the output of any one of the operation units from outputting signals to the outputs of the other operation units.
The interface circuit 12 not only can detect the contact of the USB interfaces, but also can detect the contact of other types of interfaces, such as serial advanced technology attachment (SATA) interfaces.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
2013100592118 | Feb 2013 | CN | national |