1. Technical Field
The present disclosure relates to charging circuits, and particularly, to a charging control circuit capable of charging electronic devices with different charging interfaces.
2. Description of the Related Art
Different electronic devices require charging interfaces to be matched to chargers. For example, a first charger for charging a first electronic device provides four chip resistors embedded in a USB interface. When the first charger is connected to a power supply to charge the first electronic device, a first detecting pin D− and a second detecting D+ of the USB interface detect voltage drop respectively generated by the four chip resistors. The first electronic device enables a charging circuit when the voltage drop is determined to match a predetermined voltage. However, a second electronic device enables a charging circuit when the connection between the first detecting pin D− and the second detecting pin D+ is determined to be short circuit. Thus, the first charger cannot be used to charge the second electronic device, namely the first electronic device and the second electronic device cannot be charged by a same charger, which may be inconvenient for the users.
Therefore, there is room for improvement within the art.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The electronic device 40 includes a power management unit 43 and a charging unit 44. When the charger with the charging control circuit 1 is connected to a power supply 50, a voltage drop is generated between the first monitoring point 100 and the second monitoring point 101. The management unit 43 enables the charging unit 44 when the generated voltage drop is determined to match a predetermined voltage.
The switch circuit 11 is configured to be turned on or turned off according to whether the voltage drop is generated between the first monitoring point 100 and the second monitoring point 101. If the voltage drop is generated between the first monitoring point 100 and the second monitoring point 101, the switch circuit 11 is turned on, if no voltage drop is generated, the switch circuit 11 is turned off. The CPU 20 enables the charging circuit 30 to charge different electronic devices 40 according to the on or off state of the switch circuit 11.
The switch circuit 11 is connected to an output port 102 of the identification circuit 10. In the embodiment, the switch circuit 11 includes semiconductor elements. The mechanical switch 12 is received in the charger and a portion of the mechanical switch 12 is external to the charger for users to operate. The mechanical switch 12 is connected between the first monitoring point 100 and the second monitoring point 101.
The charging circuit 30 includes a charging interface 31 and a control circuit 32. The electronic device 40 is connected to the charger via the charging interface 31. The control circuit 32 enables the charging interface 31 according to the on or off state of the switch circuit 11, and the power supply 50 charges the electronic device 40 via the enabled charging interface 31.
When the first electronic device is connected to the charging control circuit 1, the first monitoring point 100 is connected to the first detecting pin 41 and the second monitoring point 101 is connected to the second detecting pin 42. The mechanical switch 12 is operated to be in a first state to generate the voltage drop on the first monitoring point 100 and second monitoring point 101, thereby the switch circuit 11 is turned on, and the CPU 20 enables the charging circuit 30. The power management unit 43 determines whether the voltage drop generated between the first monitoring point 100 and the second monitoring point 101 matches a predetermined voltage. When the generated voltage drop is determined to match the predetermined voltage, the power management unit 43 enables the charging unit 44. The CPU 20 first turns off the control circuit 32, and then turns on the control circuit 32 when the switch circuit 11 is turned on, thereby the power supply 50 charges the electronic device 40 via the charging unit 44.
When the second electronic device is connected to the charging control circuit 1, the first monitoring point 100 is connected to the first detecting pin 41 and the second monitoring point 101 is connected to the second detecting pin 42. The mechanical switch 12 is operated to be in a second state to short the connection between the first monitoring point 100 and second monitoring point 101, thereby the switch circuit 11 is turned off, and the CPU 20 enables the charging circuit 30. If the power management unit 43 determines the short between the first monitoring point 100 and the second monitoring point 101, the power management unit 43 enables the charging unit 44. The CPU 20 first turns off the control circuit 32, and then turns on the control circuit 32 when the switch circuit 11 is turned off, thereby the power supply 50 charges the electronic device 40 via the charging unit 44.
In the embodiment, the first level signal is a high level signal, and the second level signal is a low level signal.
The switch circuit 11 includes a field-effect transistor Q1, a field-effect transistor Q2, and resistors R1-R4. The series resistors R1 and R2 are connected to the series resistors R3 and R4 in parallel. The grid of the field-effect transistor Q1 is connected to a collector of a triode U1, the drain is connected to a first end of the resistor R1 and further to a first end of the resistor R2, and the source is connected to a power input port VCC2. The grid of the field-effect transistor Q2 is connected to the resistor R2 and further to the resistor R4, the source is ground, and the drain is connected to the source via a resistor R5 to form a junction 110 which is connected to the S_DET port.
SW is the mechanical switch 12. In the embodiment, the mechanical switch 12 includes a first sub switch 120, a second sub switch 121, a third sub switch 122, and a dynamic terminal 123. A first static terminal 120a of the first sub switch 120 is connected between the resistor R1 and the resistor R2 to form a first detecting point D−, namely the first monitoring point 100, which is connected to the detecting pin 41 of the electronic device 40. A first static terminal 121 a of the second sub switch 121 is connected between the resistor R3 and resistor R4 to form a second detecting point D+, namely the second monitoring point 101, which is connected to the detecting pin 42 of the electronic device 40. A second static terminal 120b is grounded. A second static terminal 121b is connected to the S_DET port. A second static terminal 122b is connected to a power supply port VCC3 via a resistor R6.
To charge the first electronic device when the first electronic device is connected to the charging control circuit 1, the first detecting point D− is connected to the detecting pin 41, and the second detecting point D+ is connected to the detecting pin 42. The dynamic terminal 123 is moved to connect the first static terminal 121a to the first static terminal 122a and further connect the second static terminal 121b to the second static terminal 122b. When the second static terminal 121b is connected to the second static terminal 122b, the S_DET port detects a high level signal to turn on the field-effect transistor Q2. After the field-effect transistor Q2 is turned on, a voltage drop is generated between the source and the grid of the field-effect transistor Q1, and the field-effect transistor Q1 is correspondingly turned on. The first detecting point D− and the second detecting point D+ generate a first voltage and a second voltage respectively, thereby connecting the resistors R1-R4 to the charging unit 44 of the first electronic device. The power management unit 43 determines whether the first voltage and the second voltage match predetermined voltages, and further enables the charging unit 44 when the first voltage and the second voltage match the predetermined voltages. The CPU 20 sends a control signal to the control circuit 32 via the LOAD_EN port by detecting the high level signal generated by the S_DET port. The control circuit 32 first resets and then restarts to provide the power provided by the power supply 50 to the first electronic device via the power supply port VCC1. In the embodiment, the control circuit 32 is an integrated circuit (IC) connected to the power supply port VCC1 and the charging interfaces TP351 and TP352.
To charge the second electronic device when the second electronic device is connected to the charging control circuit 1, the first detecting point D− is connected to the detecting pin 41 and the second detecting point D+ is connected to the detecting pin 42. The dynamic terminal 123 is moved to connect the first static terminal 120a to the first static terminal 121a. When the first static terminal 120a is connected to the first static terminal 121a, the connection between the first detecting point D− and the second detecting point D+ is shorted, and the S_DET port detects a low level signal to turn off the field-effect transistor Q1. After the field-effect transistor Q1 is turned off, a voltage of the grid of the field-effect transistor Q2 is pulled down, and the field-effect transistor Q2 is correspondingly turned off. The resistors R1-R4 are not connected to the charging unit 44 of the second electronic device. The power management unit 43 enables the charging unit 44 when the connection between the first detecting point D− and the second detecting point D+ is determined to be shorted. The CPU 20 sends a control signal to the control circuit 32 via the LOAD_EN port by detecting the low level signal generated by the S_DET port. The control circuit 32 first resets and then restarts to provide the power provided by the power supply 50 to the second electronic device via the power supply port VCC1.
To charge the first electronic device when the first electronic device is connected to the charging control circuit 1, the first output terminal 123′, the second output terminal 124′, the third output terminal 125′, and the fourth output terminal 126′ are connected to four detecting pins (not shown) of the electronic device respectively. The CPU 20 controls the first input terminal 120′ to be connected to the second input terminal 121′, and the third output terminal 125′ to be connected to the fourth output terminal 126′, in response to a trigger signal generated by a selection of a user received via the EN port 122′. Then the charging control circuit 1 can charge the first electronic device as above description.
To charge the second electronic device when the second electronic device is connected to the charging control circuit 1, the first output terminal 123′, the second output terminal 124′, the third output terminal 125′, and the fourth output terminal 126′ are connected to the four detecting pins of the electronic device respectively. The CPU 20 controls the first input terminal 120′ to be connected to the second input terminal 121′, and the first output terminal 123′ to be connected to the second output terminal 124′ in response to a trigger signal generated by a selection of a user received via the EN port 122′. Then the charging control circuit 1 can charge the second electronic device as above description.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201110438362.5 | Dec 2011 | CN | national |