The present disclosure relates to power supply circuits.
A portable device is charged through a universal serial bus (USB) connector. When a ground pin of the portable device is not actually grounded, a current from the USB connector may damage the portable device.
Many aspects of the present disclosure can be better understood with reference to the following drawing. The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure.
The FIGURE is a circuit diagram of an embodiment of a power supply circuit of the present disclosure.
The disclosure is illustrated by way of example and not by way of limitation in the FIGURE of the accompanying drawing. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.” The reference “a plurality of” means “at least two.”
The FIGURE shows an embodiment of a power supply circuit 10 of the present disclosure.
The power supply circuit 10 may comprises a connector module 20, a test module 30, and a switch module 40.
The connector module 20 can comprise resistors R1-R4 and a universal serial bus (USB) connector 21. The USB connector 21 can comprise pins 1-4, a first shield pin MH1, and a second shield pin MH2. The pin 1 is connected to a power input VCC1 through the switch module 40. The pin 2 is connected to the power input VCC1 through the resistor R4. The pin 2 is also grounded through the resistor R3. The pin 3 is connected to the power input VCC1 through the resistor R1. The pin 3 is also grounded through the resistor R2. The pin 4 is grounded. The first shield pin MH1 and the second shield pin MH2 are connected to the test module 30. When the USB connector 21 is not connected to an external device, the first shield pin MH1 and the second shield pin MH2 are floating. When the USB connector 21 is connected to the external device, the first shield pin MH1 and the second shield pin MH2 are grounded.
The test module 30 can comprise a resistor R5, a resistor R6, a resistor R11, and an electronic switch Q1. A power input VCC2 is connected to the first shield pin MH1 through the resistor R5 and the resistor R6 in that order. A node between the resistor R5 and the resistor R6 is connected to a first terminal of the electronic switch Q1. The power input VCC2 is connected to a second terminal of the electronic switch Q1. The second terminal of the electronic switch Q1 is connected to the switch module 40. A third terminal of the electronic switch Q1 is grounded.
The switch module 40 can comprise resistors R7 through R10, electronic switches Q2 through Q4, a standby switch K, and a power supply 50. The power input VCC1 is connected to a second terminal of the electronic switch Q2. The power input VCC1 is also connected to a second terminal of the electronic switch Q4 through the resistor R10. The second terminal of the electronic switch Q4 is connected to the first terminal of the electronic switch Q2 through the resistor R9. A third terminal of the electronic switch Q2 is connected to the pin 1 of the USB connector 21. A third terminal of the electronic switch Q4 is grounded. A first terminal of the electronic switch Q4 is connected to an output of the power supply 50 through the resistor R7. The first terminal of the electronic switch Q4 is grounded through the resistor R8. An input of the power supply 50 is connected to the second terminal of the electronic switch Q1. A first terminal of the electronic switch Q3 is connected to the second terminal of the electronic switch Q1 through the standby switch K. A second terminal of the electronic switch Q34 is connected to the second terminal of the electronic switch Q4. A third terminal of the electronic switch Q3 is grounded.
In the embodiment, a motherboard supplies voltage of 5V through the power input VCC1 and the power input VCC2. A resistance of the resistor R5 is 100K ohm. A resistance of the resistor R11 is 100K ohm. A resistance of the resistor R6 is 1K ohm. The electronic switches Q1, Q3, and Q4 are n-channel Bipolar Junction Transistors (BJTs). First terminals of the respective electronic switches are bases of the BJTs. Second terminals of the respective electronic switches are collectors of the BJTs. Third terminals of the respective electronic switches are emitters of the BJTs. The electronic switch QA2 is a p-channel field effect transistor (FET). The first terminal of the electronic switch Q2 is a gate of the FET. The second terminal of the electronic switch Q2 is a source of the FET. The third terminal of the electronic switch Q2 is a drain of the FET. In this embodiment, a voltage not greater than 0.5V is logic-low for the electronic switches, and a voltage greater than 0.5 is logic-high for the electronic switches.
When the USB connector 21 is connected to the external device, the first shield pin MH1 and the second shield pin MH2 are grounded. The power input VCC2 is grounded through the resistor R5 and the resistor R6 in that order. The node between the resistor R5 and the resistor R6 is at logic low. The electronic switch Q1 is turned off. The input of the power supply 50 is at logic high. The power supply 50 outputs a logic-high signal to the first terminal of the electronic switch Q4 through the resistor R7. The electronic switch Q4 is turned on. A first terminal of the electronic switch Q2 is at logic low. The electronic switch Q2 is turned on. The power input VCC1 supplies power for the USB connector 21 through the electronic switch Q2.
When the USB connector 21 is not connected to an external device, the first shield pin MH1 and the second shield pin MH2 are floating. The first terminal of the electronic switch Q1 is at logic high. The electronic switch Q1 is turned on. The input of the power supply 50 is at logic low. The power supply 50 outputs a logic-low signal to the first terminal of the electronic switch Q4. The electronic switch Q4 is turned off. The first terminal of the electronic switch Q2 is at logic high. The electronic switch Q2 is turned off. The power input VCC1 thus stops supplying power to the USB connector 21.
When the USB connector 21 is connected to the external device and the power supply cannot output signals normally, the standby switch K and the electronic switch Q3 are turned on. The electronic switch Q2 is turned on. The power input VCC1 then supplies power for the USB connector 21.
While the disclosure has been described by way of example and in terms of a preferred embodiment, it is to be understood that the disclosure is not limited thereto. On 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 |
---|---|---|---|
201310155070X | Apr 2013 | CN | national |