Disclosure of Invention
The invention mainly aims to provide a three-way power supply switching circuit, a three-way power supply switching device and electronic equipment, and aims to realize seamless switching of power supply paths of a multi-power supply circuit.
To achieve the above object, the present invention provides a three-way power switching circuit, comprising: the key induction circuit, the direct current power supply circuit, the power panel power supply circuit and the switch circuit; the first input end of the switch circuit is connected with the output end of the key induction circuit, the second input end of the switch circuit is connected with the first output end of the direct-current power supply circuit, the third input end of the switch circuit is connected with the first output end of the power panel power supply circuit, the output end of the switch circuit, the second output end of the direct-current power supply circuit, the first output end of the power panel power supply circuit and the electric energy output end are connected, and the electric energy output end is used for being connected with a circuit to be supplied with power;
the key induction circuit is used for receiving a first key induction signal, converting the first key induction signal into a battery power supply signal and outputting the battery power supply signal to the switch circuit;
the switch circuit is used for conducting a channel between a built-in battery and the electric energy output end when receiving the battery power supply signal and outputting the electric energy of the built-in battery to the electric energy output end;
the direct-current power supply circuit is used for sending a direct-current power supply signal to the switching circuit when a direct-current power supply is connected, and outputting the electric energy of the direct-current power supply to the electric energy output end;
the power supply board power supply circuit is used for sending a power supply board power supply signal to the switch circuit when the power supply board inputs electric energy, and outputting the electric energy of the power supply board to the electric energy output end;
the switch circuit is further used for disconnecting a path between the built-in battery and the electric energy output end when the direct current power supply signal or the power supply signal of the power panel is received.
Preferably, the key sensing circuit comprises a key detection unit, a signal output unit and a switch trigger unit; wherein
The input end of the key detection unit is connected with the output end of the built-in battery, the output end of the key detection unit is connected with the input end of the external conversion unit, the output end of the external conversion unit is connected with the input end of the signal output unit, the output end of the signal output unit is connected with the input end of the switch trigger unit, and the output end of the switch trigger unit is connected with the switch circuit;
the key detection unit is used for receiving the first key induction signal, conducting a path between the input end of the switch trigger unit and the output end of the built-in battery, and outputting a high-level signal to the switch trigger unit;
the switch trigger unit is used for receiving the high level signal, converting the high level signal into a battery power supply signal, and sending the battery power supply signal to the switch circuit so as to conduct a channel between the built-in battery and the electric energy output end;
the signal output unit is used for receiving a high level signal continuously sent by the external conversion unit when the internal battery outputs electric energy to the electric energy output end, and continuously outputting the high level signal to the switch trigger unit;
the switch trigger unit is further configured to receive the high level signal, convert the high level signal into a battery power supply signal, and continuously send the battery power supply signal to the switch circuit, so as to continuously conduct a path between the internal battery and the electric energy output end.
Preferably, the key detection unit is further configured to receive a second key sensing signal when the internal battery outputs electric energy to the electric energy output terminal, convert the second key sensing signal into a battery power-off signal, send the battery power-off signal to the external conversion unit, and enable the external conversion unit to convert the battery power-off signal into a low-level signal and send the low-level signal to the switch trigger unit;
the switch trigger unit is also used for receiving the low level signal and stopping sending a battery power supply signal to the switch circuit according to the low level signal;
the switch unit is also used for disconnecting a path between the built-in battery and the electric energy output end when the battery power supply signal is not received.
Preferably, the switching circuit includes a voltage dividing unit and a switching unit;
the input end of the voltage division unit is connected with the output end of the switch trigger unit, and the output end of the voltage division unit is connected with the second input end of the switch unit; the second input end of the switch unit is connected with the first output end of the direct-current power supply circuit, the first input end of the switch unit is connected with the built-in battery, the third input end of the switch unit is connected with the first input end of the power supply board power supply circuit, and the output end of the switch unit is connected with the electric energy output end;
the voltage division unit is used for receiving the battery power supply signal, converting the battery power supply signal into a voltage division electric signal and outputting the voltage division electric signal to the second input end of the switch unit;
and the switch unit is used for conducting a passage between the built-in battery and the electric energy output end when receiving the voltage division electric signal.
Preferably, a second output end of the direct-current power supply circuit is connected with the electric energy output end, and a second output end of the power supply board power supply circuit is connected with the electric energy output end;
when the output voltage of the direct-current power supply circuit is greater than the output voltage of the power supply board power supply circuit, the electric energy output end receives the electric energy of the direct-current power supply;
and when the output voltage of the direct-current power supply circuit is less than the output voltage of the power supply board power supply circuit, the electric energy output end receives the electric energy of the power supply board.
Preferably, the dc power supply circuit includes a first dc output unit and a second dc output unit;
the input end of the first direct current output unit and the input end of the second direct current output unit are both connected with the output end of the direct current power supply;
the output end of the first direct current output unit is connected with the second input end of the switch unit, and the output end of the second direct current output unit is connected with the electric energy output end;
the first direct current output unit is used for outputting a direct current power supply signal to the switch unit so as to enable the switch unit to break a path between the built-in battery and the electric energy output end;
and the second direct current output unit is used for outputting direct current power supply electric energy to the electric energy output end.
Preferably, the power supply board power supply circuit includes a first power supply board output unit and a second power supply board output unit;
the input end of the first power supply board output unit and the input end of the second power supply board output unit are both connected with the output end of the power supply board;
the output end of the first power supply board output unit is connected with the third input end of the switch unit, and the output end of the second power supply board output unit is connected with the electric energy output end;
the first power panel output unit is used for outputting a power panel power supply signal to the switch unit so as to enable the switch unit to break a path between the built-in battery and the electric energy output end;
and the second power panel output unit is used for outputting the electric energy of the power panel to the electric energy output end.
Preferably, the key detection unit is further configured to receive a third key sensing signal when the power board or the dc power supply outputs electric energy to the electric energy output terminal, and send a standby signal to the external conversion unit according to the third key sensing signal, so that the external conversion unit controls the circuit to be charged to enter a standby state.
In addition, in order to achieve the above object, the present invention further provides a three-way power switching apparatus, which includes the three-way power switching circuit as described above.
In addition, in order to achieve the above object, the present invention further provides an electronic device, which includes the three-way power switching circuit as described above.
The invention provides a three-way power supply switching circuit, which comprises: the key induction circuit, the direct current power supply circuit, the power panel power supply circuit and the switch circuit; the first input end of the switch circuit is connected with the output end of the key induction circuit, the second input end of the switch circuit is connected with the first output end of the direct-current power supply circuit, the third input end of the switch circuit is connected with the first output end of the power panel power supply circuit, the output end of the switch circuit, the second output end of the direct-current power supply circuit, the first output end of the power panel power supply circuit and the electric energy output end are connected, and the electric energy output end is used for being connected with a circuit to be supplied with power; the key induction circuit is used for receiving a first key induction signal, converting the first key induction signal into a battery power supply signal and outputting the battery power supply signal to the switch circuit; the switch circuit is used for conducting a channel between a built-in battery and the electric energy output end when receiving the battery power supply signal and outputting the electric energy of the built-in battery to the electric energy output end; the direct-current power supply circuit is used for sending a direct-current power supply signal to the switching circuit when a direct-current power supply is connected, and outputting the electric energy of the direct-current power supply to the electric energy output end; the power supply board power supply circuit is used for sending a power supply board power supply signal to the switch circuit when the power supply board inputs electric energy, and outputting the electric energy of the power supply board to the electric energy output end; the switch circuit is further used for disconnecting a path between the built-in battery and the electric energy output end when the direct current power supply signal or the power supply signal of the power panel is received. By arranging the circuit, seamless switching of three power supplies with battery power supply is realized, and meanwhile, the battery power supply can be completely cut off, so that the storage time of a battery product is effectively prolonged, the battery is prevented from being discharged, and the battery is irreversibly damaged due to long-term undervoltage; in addition, the design complexity of the power supply system is reduced, the size of the circuit board is reduced, and the product cost is reduced.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions in the embodiments may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should be considered to be absent and not within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a three-way power switching circuit according to a first embodiment of the present invention;
a first embodiment of the present invention provides a three-way power switching circuit, which includes: the key induction circuit 100, the direct current power supply circuit 200, the power panel power supply circuit 300 and the switch circuit 400; the OUTPUT end of the switch circuit 400 is connected to the power OUTPUT end OUTPUT, the first input end of the switch circuit 400 is connected to the OUTPUT end of the key sensing circuit 100, the second input end of the switch circuit 400 is connected to the first OUTPUT end of the dc power supply circuit 200, and the third input end of the switch circuit 400 is connected to the first OUTPUT end of the power supply board 300;
the key sensing circuit 100 is configured to receive a first key sensing signal, convert the first key sensing signal into a battery power supply signal, and output the battery power supply signal to the switch circuit 400;
it should be noted that the three-way power switching circuit includes a built-in battery BAT, a power BOARD and a DC power DC three-way power supply, and in practical applications, in addition to the three power supplies, the power supply device of the three-way power switching circuit may also be a power supply device such as a solar battery, a generator, and an energy storage battery.
It is easy to understand that the three-way power switching circuit is arranged in an electronic device, the electronic device has an internal battery BAT and a power BOARD, and the power BOARD can receive alternating current sent by an external power supply, convert the alternating current into voltage required by the electronic device, and output the voltage to a circuit to be powered. And the electric energy OUTPUT end OUTPUT is connected to a circuit to be powered or a working circuit of the electronic equipment.
It should be noted that the key sensing circuit 100 includes a power supply key, and the power supply key can receive a pressing operation of a user, so that the user can control the electronic device to start, shut down, and wait by pressing the power supply key. After the power supply key triggers the first key sensing signal, the key sensing circuit 100 converts the first key sensing signal into a battery power supply signal, sends the battery power supply signal to the switch circuit 400, and triggers the switch circuit 400 to be turned on. And a power supply path between the built-in battery BAT and the power OUTPUT end OUTPUT is conducted, and the built-in battery can OUTPUT power to the power OUTPUT end.
The switch circuit 400 is configured to, when receiving the battery power supply signal, turn on a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT, and OUTPUT the power of the internal battery BAT to the power OUTPUT terminal OUTPUT.
It should be noted that the battery power supply signal is a voltage signal, and is a voltage obtained by converting a voltage output by the internal battery BAT through the key sensing circuit 100, and the switch circuit 400 includes a switch unit directly connected to another output terminal of the internal battery BAT. When the power supply key receives the first key sensing signal, a loop of the built-in battery in the key sensing circuit 100 outputting voltage to the switch circuit 400 is turned on. Switch circuit 400 still includes the partial pressure unit, the input of partial pressure unit with key sensing circuit 100's output is connected, the output of partial pressure unit with switch unit's input is connected, and partial pressure unit divides the voltage of battery power supply signal, draws low the voltage of battery power supply signal forms a partial pressure signal of telecommunication, send to switch unit, the device that corresponds in the switch unit receives the partial pressure signal of telecommunication's triggering, switch unit switches on. The electric energy of the built-in battery can be output to the electric energy output end through the switch unit, and then is supplied to a circuit to be powered of the electronic equipment.
A first output end of the direct current power supply circuit 200 is connected with a second input end of the switch circuit 400; the second OUTPUT terminal of the dc power supply circuit 200 is connected to the power OUTPUT terminal OUTPUT. The DC power supply circuit 200 is configured to OUTPUT the DC power to the power OUTPUT terminal OUTPUT when the DC power supply DC is connected, and send a DC power supply signal to the switch circuit 400, so as to trigger the switch circuit 400 to disconnect the power supply line between the BAT and the power OUTPUT terminal OUTPUT.
The second OUTPUT end of the power supply board power supply circuit 300 is connected to the power OUTPUT end OUTPUT; the first output terminal of the power supply board 300 is connected to the third input terminal of the switch circuit 400. The power BOARD power supply circuit 300 is configured to OUTPUT power of the power BOARD to the power OUTPUT terminal OUTPUT when the power BOARD inputs power, and send a power BOARD power supply signal to the switch circuit 400, so as to trigger the switch circuit 400 to disconnect a power supply line between the BAT and the power OUTPUT terminal OUTPUT.
It is easily understood that the input terminal of the DC power supply circuit 200 is used for connecting the DC power supply DC, and the input terminal of the power BOARD supply circuit 300 is used for connecting the power BOARD. The first output ends of the two are used for outputting signals, and the second output ends of the two are used for outputting electric energy.
The switch circuit 400 is further configured to disconnect a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT when receiving the dc power supply signal or the power board power supply signal.
It should be noted that, the dc power supply signal and the power supply signal of the power supply board both have higher levels, and when the signals are input to the switch unit in the switch circuit, the levels received by the switch unit are raised. The switch unit uses a P-MOS tube as a switch control device, and the switch unit cannot be conducted when grid voltage is higher than a preset value based on the characteristics of the P-MOS tube. The switch unit cannot conduct a path from the built-in battery to the power OUTPUT end OUTPUT, and the power supply mode is switched to a power panel power supply mode or a direct-current power supply mode.
When the OUTPUT voltage of the dc power supply circuit 200 is greater than the OUTPUT voltage of the power panel power supply circuit 300, outputting the dc power supply power to the power OUTPUT terminal OUTPUT through the dc power supply circuit 200;
when the OUTPUT voltage of the dc power supply circuit 200 is less than the OUTPUT voltage of the power board supply circuit 300, the power board is OUTPUT to the power OUTPUT terminal OUTPUT through the power board supply circuit 300.
It is easy to understand that the priority of the dc power supply circuit 200 and the power board supply circuit 300 depends on which of the supply voltages between the dc power supply and the power board is higher, and when supplying power at the same time, the higher voltage becomes the power supply terminal. When at least one of the DC power supply DC and the power BOARD is supplied with a power supply signal, the path through which the internal battery BAT OUTPUTs power to the power OUTPUT terminal OUTPUT is disconnected.
The embodiment of the invention realizes seamless switching of a power supply loop of a multi-power supply circuit by arranging the circuit, effectively prolongs the storage time of a battery product, can ensure that the battery does not discharge when an external power supply is input, reduces the complexity of the design of a power supply system, reduces the volume of a circuit board and reduces the cost of the product
Based on the first embodiment of the present invention, a second embodiment of the present invention is proposed, and referring to fig. 2, fig. 2 is a schematic structural diagram of a second embodiment of a three-way power switching circuit according to the present invention; referring to fig. 3, fig. 3 is a circuit diagram of a three-way power switching circuit according to a second embodiment of the present invention.
The key sensing circuit comprises a key detection unit 102, a signal output unit 101 and a switch trigger unit 103. The input end of the key detection unit 102 is connected to the output end of the internal battery BAT, the first output end of the key detection unit 102 is connected to the input end of the external conversion unit MCU, the output end of the external conversion unit MCU is connected to the input end of the signal output unit 101, the output end of the signal output unit 101 is connected to the input end of the switch trigger unit 103, the second output end of the key detection unit 102 is connected to the input end of the switch trigger unit 103, and the output end of the switch trigger unit 103 is connected to the switch circuit 400.
It should be understood that the key detection unit 102 includes: the power supply circuit comprises first to fourth diodes, first to fourth resistors, a first triode Q1, a first capacitor C1 and a power supply key SW 1; wherein an anode of the first diode D1 is connected to the DC power source DC, an anode of the second diode D2 is connected to the internal battery BAT, an anode of the third diode D3 is connected to the power BOARD, cathodes of the first to third diodes are connected to a first terminal of the first resistor R1, a second terminal of the first resistor R1 is connected to an input terminal of the power supply key SW1, an output terminal of the power supply key SW1 is connected to the second resistor R2, a first terminal of the third resistor R3 is connected to an output terminal of the power supply key SW1, a second terminal of the third resistor R3 is connected to a base of the first transistor Q1, a first terminal of the fourth resistor R4, a first terminal of the first capacitor C1, a second terminal of the first capacitor C1 is connected to a second terminal of the fourth resistor R4, a second terminal of the fourth resistor R4 is connected to an emitter of the first transistor Q1, the second end of the fourth resistor R4 is grounded, the collector of the first triode Q1 is connected to the cathode of the fourth diode D2, and the anode of the fourth diode D2 is connected to the external converter MCU.
In this embodiment, the external conversion Unit is an MCU (Microcontroller Unit micro control Unit), and in specific implementation, the MCU may be replaced by other devices capable of executing corresponding control operations, which is not limited in the present invention. The signal output unit 101 comprises an eighth resistor R8, a first end of the eighth resistor R8 is connected with an output end of the external conversion unit MCU, and a second end of the eighth resistor R8 is connected with a second end of the second resistor R2.
The switch trigger unit 103 includes a fifth resistor R5, a second capacitor C2, and a second transistor Q2, a second end of the second resistor R2 is connected to the output end of the signal output unit 101, a second end of the second resistor R2 is further connected to a first end of the fifth resistor R5, a second end of the fifth resistor R5 is connected to a second end of the second capacitor C2, a first end of the second capacitor C2 is connected to a first end of the fifth resistor R5, a first end of the second capacitor C2 is further connected to a base of the second transistor Q2, an emitter of the second transistor Q2 is grounded, and a second end of the second capacitor C2 is connected to an emitter of the second transistor Q2; the collector of the second transistor Q2 is connected to a first input of the switching circuit 400.
The key detection unit 102 is configured to receive the first key sensing signal and output a high level signal to the switch triggering unit 103. The switch triggering unit 103 is configured to receive the high level signal, convert the high level signal into a battery power supply signal, and send the battery power supply signal to the switch circuit 400, so as to turn on a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT.
It should be noted that when the power supply key SW1 is pressed, a path from the internal battery BAT to the switch trigger unit 103 is turned on, the voltage of the internal battery is sent to the switch trigger unit 103 through the first resistor R1 and the second resistor R2, the first end of the fifth resistor R5 receives a high level, the fifth resistor R5 divides the input voltage, so that the second transistor Q2 is turned on, and OUTPUTs a battery power supply signal to the switch circuit 400.
The signal OUTPUT unit 101 is configured to receive a high level signal continuously sent by the MCU when the internal battery BAT OUTPUTs electric energy to the electric energy OUTPUT terminal OUTPUT, and continuously OUTPUT the high level signal to the switch trigger unit 103, so that the switch trigger unit 103 continuously triggers the switch circuit 400 to keep conducting a power supply path between the BAT and the electric energy OUTPUT terminal OUTPUT.
It should be noted that the external conversion unit MCU receives system power supply when the circuit to be powered receives power, and outputs a high level signal to the signal output unit 101, where the high level signal is transmitted to the second end of the fifth resistor R5 by the eighth resistor R8.
The switch triggering unit 103 is further configured to receive the high level signal, convert the high level signal into a battery power supply signal, and continuously send the battery power supply signal to the switch circuit 400, so as to continuously turn on a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT.
It is easy to understand that when the second end of the fifth resistor R5 receives a high level signal, the second transistor Q3 is turned on, a battery power supply signal is sent, the switch circuit 400 is continuously turned on, and when the power supply circuit is continuously powered, the external conversion unit MCU continuously outputs a high level, the first end of the eighth resistor is set to a high level, the second end of the fifth resistor R5 is a high level, and the second transistor Q3 is continuously turned on.
The key detection unit 102 is further configured to receive a second key sensing signal when the internal battery BAT OUTPUTs electric energy to the electric energy OUTPUT terminal OUTPUT, convert the second key sensing signal into a battery power-off signal, send the battery power-off signal to the external conversion unit MCU, so that the external conversion unit MCU converts the battery power-off signal into a low level signal, and send the low level signal to the switch triggering unit 103.
It should be noted that, when the internal battery BAT supplies power to the circuit to be powered, the power supply key SW1 is pressed again, the power supply key SW1 receives the second key sensing signal, the output terminal of the internal battery BAT is turned on, and the internal battery BAT, the second diode D2, the first resistor R1, the third resistor R3 and the fourth resistor R4 form a ground loop. The voltage output by the internal battery BAT is divided by the third resistor R3 and the fourth resistor R4, so that the first triode Q1 is in a conducting state, but the fourth diode D2 is reversely connected, the fourth diode D2 pulls down the received high level to a low level to form a battery power-off signal, and the external conversion unit MCU receives the battery power-off signal and outputs the low level signal to the first end of the eighth resistor R8.
The switch triggering unit 103 is further configured to receive the low level signal, and stop sending a battery power supply signal to the switch circuit 400 according to the low level signal.
It is easy to understand that the output of the second terminal of the eighth resistor R8 to the fifth resistor R5 is a low level signal, which results in the second transistor Q2 being turned off and no longer outputting a signal to the switch circuit 400.
The switch circuit 400 is further configured to disconnect a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT when the battery power supply signal is not received.
It will be readily appreciated that the switch circuit 400, without receiving a corresponding signal, opens the path for power. If no external power supply is connected at this time, the electronic equipment can be powered off and shut down.
The switching circuit 400 includes a voltage dividing unit and a switching unit 402; an input end of the voltage dividing unit 401 is connected to an output end of the switch triggering unit 103, and an output end of the voltage dividing unit 401 is connected to a second input end of the switch unit 402; the second input end of the switch unit 402 is connected to the first OUTPUT end of the dc power supply circuit 200, the first input end of the switch unit 402 is connected to the internal battery BAT, the third input end of the switch unit 402 is connected to the first input end of the power board supply circuit 300, and the OUTPUT end of the switch unit 402 is connected to the power OUTPUT end OUTPUT.
It should be understood that the voltage dividing unit 401 includes a sixth resistor R6, and the switching unit 402 includes a first MOS transistor Q3, a second MOS transistor Q4, a seventh resistor R7, and a third capacitor C3; a first end of the sixth resistor R6 is connected to the base of the second transistor Q3, a second end of the sixth resistor R6 is connected to a first end of the third capacitor C3, a second end of the third capacitor C3 is connected to a second end of the seventh resistor R7, and a first end of the seventh resistor R7 is connected to a first end of the third capacitor C3.
It should be understood that the MOS transistor in this embodiment is a P-MOS transistor, and the MOS transistor includes five pins, a fifth pin is a drain, a fourth pin is a gate, and the first to third pins are sources. The characteristic of the P-MOS tube is that when the grid voltage is less than the conduction voltage of the P-MOS tube, the drain electrode and the source electrode are conducted.
The drain of the first MOS transistor is connected to the internal battery BAT, the gate of the first MOS transistor Q3 is connected to the second end of the seventh resistor R7 and the gate of the second MOS transistor Q4, the source of the first MOS transistor Q3 (the first pin, the second pin, and the third pin of the first MOS transistor Q3) is connected to the source of the second MOS transistor Q4 (the first pin, the second pin, and the third pin of the second MOS transistor Q4), and the drain of the second MOS transistor Q4 is connected to the power OUTPUT terminal OUTPUT. A second terminal of the seventh resistor R7 is connected to the third pin of the first MOS transistor Q3 and the third pin of the second MOS transistor Q4.
The voltage dividing unit 401 is configured to receive the battery power supply signal, convert the battery power supply signal into a divided voltage electric signal, and output the divided voltage electric signal to a second input end of the switching unit 402; the switching unit 402 is configured to turn on a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT when receiving the divided electrical signal.
It is easy to understand that, after receiving the battery power supply signal, the sixth resistor R6 divides the battery power supply signal, so that the voltage at the second end of the sixth resistor R6 is lower, the voltage output to the gate of the first MOS transistor Q3 is lower than the P-MOS transistor turn-on voltage, the first MOS transistor Q3 is turned on, and similarly, the second MOS transistor Q4 is also turned on. And the built-in battery BAT is used for supplying power to a circuit to be powered in the electronic equipment.
The dc power supply circuit 200 includes a first dc output unit 201 and a second dc output unit 202; wherein, the input end of the first DC output unit 201 and the input end of the second DC output unit 202 are both connected to the output end of the DC power supply DC; an OUTPUT end of the first dc OUTPUT unit 201 is connected to a second input end of the switch unit 402, and an OUTPUT end of the second dc OUTPUT unit 202 is connected to the power OUTPUT end OUTPUT.
It should be understood that the first DC output unit 201 includes a fifth diode D5, an anode of the fifth diode D5 is connected to the output terminal of the DC power supply DC, and a cathode of the fifth diode D5 is connected to the first terminal of the third capacitor C3; the second DC OUTPUT unit 202 includes a sixth diode D6 and a seventh diode D7, an anode of the seventh diode D7 is connected to an anode of the sixth diode D6 and an OUTPUT terminal of the DC power supply signal DC, and a cathode of the seventh diode D7 is connected to a cathode of the sixth diode D6 and the power OUTPUT terminal OUTPUT.
The first dc OUTPUT unit 201 is configured to OUTPUT a dc power supply signal to the switch unit 402, so that the switch unit 402 disconnects a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT. The second dc OUTPUT unit 202 is configured to OUTPUT dc power to the power OUTPUT terminal OUTPUT.
It should be noted that when a DC power supply is connected, the DC power supply DC OUTPUTs a high level to the second end of the sixth resistor R6 through the fifth diode D5, which increases the gate voltages of the first MOS transistor Q3 and the second MOS transistor Q4, which are higher than the P-MOS transistor on-voltage, and the first MOS transistor Q3 and the second MOS transistor Q4 are turned off, so that the power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT is disconnected. The second dc OUTPUT unit 202 OUTPUTs power to the power OUTPUT terminal OUTPUT, and supplies the power to a circuit to be powered in the electronic device.
The power panel supply circuit 300 comprises a first power panel output unit 301 and a second power panel output unit 301; the input end of the first power BOARD output unit 301 and the input end of the second power BOARD output unit 302 are both connected with the output end of the power BOARD BOARD; the OUTPUT end of the first power board OUTPUT unit 301 is connected to the third input end of the switch unit 402, and the OUTPUT end of the second power board OUTPUT unit 302 is connected to the power OUTPUT end OUTPUT.
It should be understood that the first power BOARD output unit 301 includes a ninth diode D9, a ninth resistor R9, a second terminal of the ninth resistor R9 is connected to the output terminal of the power BOARD, a first terminal of the ninth resistor R9 is connected to the anode of the ninth diode D9, a cathode of the ninth diode D9 is connected to the gate of the first MOS transistor Q3 and the gate of the second MOS transistor Q4; the second power BOARD OUTPUT unit 302 includes an eighth diode D8, an anode of the eighth diode D8 is connected to the OUTPUT terminal of the power BOARD, and a cathode of the eighth diode D8 is connected to the power OUTPUT terminal OUTPUT.
The first power board OUTPUT unit 301 is configured to OUTPUT a power board power supply signal to the switch unit 402, so that the switch unit 402 disconnects a power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT; the second power board OUTPUT unit 302 is configured to OUTPUT power board electric energy to the electric energy OUTPUT terminal OUTPUT.
It should be noted that, when the power BOARD is used to input a voltage, the first power BOARD OUTPUT unit 301 OUTPUTs a high level through the ninth resistor R9 and the ninth diode D9, so as to pull up the gate voltages of the first MOS transistor Q3 and the second MOS transistor Q4, which are higher than the P-MOS transistor on-voltage, and the first MOS transistor Q3 and the second MOS transistor Q4 are turned off, which results in the disconnection of the power supply path between the internal battery BAT and the power OUTPUT terminal OUTPUT. The second power board OUTPUT unit 302 OUTPUTs power to the power OUTPUT terminal OUTPUT, and supplies the power to a circuit to be powered in the electronic device.
It is easy to understand that, based on the characteristics of the diode, when the power BOARD and the DC power supply DC are simultaneously powered, the higher voltage one has a higher power supply priority, that is, the power supply terminal with the higher power supply voltage supplies power to the circuit to be powered. Meanwhile, as the voltage is applied to the battery and the power supply circuit, the built-in battery is cut off to supply power to the circuit to be powered.
The key detection unit 102 is further configured to receive a third key sensing signal when the power BOARD or the DC power supply DC OUTPUTs electric energy to the electric energy OUTPUT terminal OUTPUT, and send a standby signal to the external conversion unit MCU according to the third key sensing signal, so that the external conversion unit MCU controls the circuit to be charged to enter a standby state.
It is easy to understand that, in the key detection unit 102, the first diode D1 is connected to the DC power DC, the third diode D3 is connected to the power BOARD, when the DC power DC or the power BOARD supplies power to the circuit to be powered, the power supply key SW1 is pressed, and the power supply, the diode, the first resistor R1, the third resistor R3 and the fourth resistor R4 form a loop. The first triode Q1 is turned on to output a high level to the fourth diode D4, the fourth diode D4 is reversely connected to pull down the high level, and the external conversion unit MCU receives the low level signal, i.e., the standby signal, and controls the circuit to be charged to enter a standby state.
It is easy to understand that when only one of the DC power supply DC or the power BOARD is powered, if the power output is cut off, the electronic device is powered off. In the standby state, the user presses the power supply key SW1 to send a signal to the external switching unit MCU, so that the external switching unit MCU can control the electronic device to normally turn off.
The embodiment of the invention realizes seamless switching of a multi-power supply loop, realizes complete power supply shutdown of the battery, effectively prolongs the storage time of a battery product, and can ensure that the battery is not discharged and is irreversibly damaged due to long-term undervoltage; in addition, the design complexity of the power supply system is reduced, the size of the circuit board is reduced, and the product cost is reduced.
In addition, in order to achieve the above object, the present invention further provides a three-way power switching apparatus, which includes the three-way power switching circuit as described above. The device can be arranged in electronic equipment with multiple power supplies for power supply, so as to meet the multiple power supply requirement of the electronic equipment. The three-way power switching device adopts all technical schemes of all the embodiments, so that the three-way power switching device at least has all the beneficial effects brought by the technical schemes of the embodiments, and the details are not repeated.
In addition, in order to achieve the above object, the present invention further provides an electronic device, which includes the three-way power switching circuit as described above. The portable bluetooth sound box capable of supplying power to the three groups of power supplies of the electronic device at least has all the beneficial effects brought by the technical solutions of the embodiments because the electronic device adopts all the technical solutions of all the embodiments, and details are not repeated herein.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.