Disclosure of Invention
An object of the present invention includes, for example, providing a power supply control device and an electronic apparatus capable of reducing consumption of electric power of a battery and prolonging a use time of the battery.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment provides a power supply control device, which is applied to an electronic device, and includes a processor, a detection module, and a power supply module, where the processor is electrically connected to the detection module and the power supply module, the power supply module is also electrically connected to a device controller of the electronic device, and the detection module is used for being electrically connected to a battery and a power adapter;
the detection module is used for detecting whether the battery and the power adapter supply power to the electronic equipment or not, obtaining a detection signal and sending the detection signal to the processor;
the processor is used for providing an enabling closing signal for the power supply module when the shutdown signal of the electronic equipment is acquired and the power supply of the battery is judged according to the detection signal;
and the power supply module is used for stopping supplying power to the equipment controller when the enabling closing signal is received.
In an optional embodiment, the processor is further configured to provide an enable signal to the power supply module when the electronic device is powered by the power adapter;
the power supply module is also used for supplying power to the equipment controller when the enabling starting signal is received.
In an optional embodiment, the processor is further configured to provide an enable signal to the power supply module when the power-on signal is obtained and the battery supplies power;
the power supply module is also used for supplying power to the equipment controller when the enabling starting signal is received.
In an optional embodiment, the detection module includes an external power detection unit, a battery detection unit and a determination unit, the external power detection unit is configured to be electrically connected to the power adapter, the battery detection unit is configured to be electrically connected to the battery, the external power detection unit and the battery detection unit are respectively electrically connected to the determination unit, and the determination unit and the external power detection unit are respectively electrically connected to the processor;
the external power supply detection unit is used for detecting whether the power adapter supplies power to the electronic equipment or not, acquiring a first power supply signal, and transmitting the first power supply signal to the processor and the judgment unit;
the battery detection unit is used for detecting whether the battery supplies power to the electronic equipment, acquiring a second power supply signal and transmitting the second power supply signal to the judgment unit;
the judging unit is used for acquiring the starting-up signal and acquiring the detection signal according to the first power supply signal, the second power supply signal and the starting-up and shutdown signal.
In an optional implementation manner, the determining unit includes a first diode, a second diode, a first resistor, and an or gate element, the battery detecting unit is electrically connected to the first input terminal of the or gate element through the first diode, the external power detecting unit is electrically connected to the first input terminal of the or gate through the second diode, one end of the first resistor is electrically connected to a power supply, the other end of the first resistor is electrically connected between the first diode and the second diode, and the first input terminal of the or gate element, the output terminal of the or gate element is electrically connected to the processor, and the second input terminal of the or gate element is configured to receive the power-on signal.
In an optional embodiment, the external power detection unit includes a second resistor and a third resistor, the second resistor and the third resistor are connected in series between the power adapter and ground, and the processor and the determination unit are electrically connected between the second resistor and the third resistor, respectively.
In an alternative embodiment, the battery detection unit includes a fourth resistor and a fifth resistor, the fourth resistor and the fifth resistor are connected in series between the battery and the ground, and the determination unit is electrically connected between the fourth resistor and the fifth resistor.
In a second aspect, embodiments provide an electronic device comprising a device controller and a power supply control apparatus as described in any one of the preceding embodiments.
In an optional embodiment, the electronic device further includes a system chip, and the system chip is electrically connected to the power supply control device;
the system chip is used for sending the shutdown signal to the power supply control device when the electronic equipment is shut down.
In an optional embodiment, the electronic device further includes a power-on detection module, where the power-on detection module is electrically connected to the power supply control device;
the power-on detection module is used for sending a power-on signal to the power supply control device when the electronic equipment is powered on.
The power supply control device has the advantages that the power supply control device comprises a processor, a detection module and a power supply module, the processor is electrically connected with the detection module and the power supply module respectively, the power supply module is also electrically connected with a device controller of the electronic device, and the detection module is used for being electrically connected with a battery and a power adapter. Detecting whether the battery and the power adapter supply power to the electronic equipment through a detection module to obtain a detection signal; the processor provides an enabling closing signal for the power supply module when the processor obtains a shutdown signal of the electronic equipment and judges that the battery supplies power according to the detection signal; and when receiving the enabling closing signal, the power supply module stops supplying power to the equipment controller. Therefore, when the electronic equipment is powered by only the battery, if the electronic equipment is in a shutdown state, the processor controls the power supply module to stop supplying power to the equipment controller, the equipment controller stops working, and the electric energy of the battery is not consumed when the electronic equipment is in the shutdown state, so that the service life of the battery is prolonged.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, a schematic structural diagram of an electronic device 10 that can be implemented according to an embodiment of the present invention is provided, where the electronic device 10 includes a power supply control device 100, a device controller 200, a battery 300, a power adapter 400, a System-on-a-Chip (SOC) 500, and a power-on detection module 600, the power supply control device 100 is electrically connected to the device controller 200, the System Chip 500, and the power-on detection module 600, and the power supply control device 100 is used for electrically connecting the battery 300 and the power adapter 400.
It is understood that the system chip 500 is used for sending a shutdown signal to the power supply control device 100 when the electronic device 10 is shutdown. The power-on detection module 600 is used for sending a power-on signal to the power supply control device 100 when the electronic device 10 is powered on. The power supply control apparatus 100 is used for determining whether to supply power to the device controller 200 according to the power supply source of the electronic device 10 (i.e., whether the power is supplied by the battery 300 or the power adapter 400), the power-on signal, and the power-off signal. When the shutdown signal is received and power is supplied from the battery 300, power supply to the device controller 200 is stopped. Further, the device controller 200 is made to stop operating when the electronic device 10 is powered only by the battery 300 and the electronic device 10 is in a power-off state, i.e., in this state, the device controller 200 may not be in an operating state. The electric energy of the battery 300 can be saved, and the service life of the battery 300 can be prolonged.
Among them, the device Controller 200 is generally called an EC (embedded Controller) and also called a KBC (Keyboard Controller). During system startup of the electronic device 10, the device controller 200 controls the timing of most important signals. After the device is powered on, the device controller 200 controls the keyboard, the indicator light, the fan, the touch pad and other devices to work. In addition, the device controller 200 controls the standby, sleep, and other states of the electronic device 10. The system chip 500 is used for detecting whether a system power supply of the electronic device 10 is stable, when the electronic device 10 is powered off, the system power supply is in an unstable state, and then the system chip 500 generates a power-off signal with a low level, so that the low level of the power-off signal is effective; when the electronic device 10 is not powered off and the system power is in a stable state, the power-off signal of the system chip 500 is pulled high, so that the power supply control apparatus 100 can determine that the electronic device 10 is in the power-off state when detecting that the power-off signal is pulled low. The power-on detection module 600 may include a power-on key of the electronic device 10, and when the user presses the power-on key, the power-on key is turned on to generate a low-level power-on signal, and the power-on signal is sent to the power supply control apparatus 100; when the user stops pressing the power-on button, the power-on button is turned off, and the power-on signal is pulled from low level to high level, so that the power supply control apparatus 100 can determine that the electronic device 10 is in the power-on state when detecting that the power-on signal is pulled low.
In this embodiment, the electronic device may be a device such as a notebook computer or a tablet having the battery 300 and the device controller 200.
Referring to fig. 2, which is a schematic structural diagram of an implementation of the power supply control apparatus 100 shown in fig. 1, the power supply control apparatus 100 includes a processor 110, a detection module 120 and a power supply module 130, the processor 110 is electrically connected to the detection module 120 and the power supply module 130 respectively, the power supply module 130 is further electrically connected to an apparatus controller 200 of the electronic apparatus 10, and the detection module 120 is used for being electrically connected to a battery 300 and a power adapter 400.
In this embodiment, the detection module 120 is configured to detect whether the battery 300 and the power adapter 400 supply power to the electronic device 10, obtain a detection signal, and send the detection signal to the processor 110. The processor 110 is configured to provide an enable shutdown signal to the power supply module 130 when the shutdown signal of the electronic device 10 is acquired and it is determined that the battery 300 supplies power according to the detection signal. The power supply module 130 is configured to stop supplying power to the device controller 200 when receiving the enable shutdown signal.
It is understood that the detection module 120 obtains the detection signal according to whether the battery 300 has a voltage supply and according to whether the power adapter 400 has a voltage supply. When the battery 300 has a voltage and the power adapter 400 has no voltage, the detection signal obtained by the detection module 120 indicates that the battery 300 is powered, and if the processor 110 obtains the shutdown signal of the electronic device 10 again, the power module 130 is provided with an enable shutdown signal at a low level (e.g., 0V), so that the power module 130 stops supplying power to the device controller 200.
In this embodiment, the processor 110 is further configured to provide an enable signal to the power supply module 130 when the electronic device 10 is powered by the power adapter 400; the power supply module 130 is also used to supply power to the device controller 200 when receiving the enable on signal.
It will be appreciated that when the power adapter 400 is supplied with voltage, the battery 300, with or without power, will not discharge, and thus the battery 300 is not supplied with voltage to the electronic device 10. When determining that the electronic device 10 is powered by the power adapter 400, the processor 110 provides the power supply module 130 with an enable signal at a high level regardless of whether the electronic device 10 is in the power-on state or the power-off state. The power supply module 130 converts the voltage provided by the power adapter 400 and transmits the converted voltage to the device controller 200.
In this embodiment, the processor 110 is further electrically connected to the system chip 500, and the processor 110 is further configured to obtain a power-on signal, and provide an enable signal to the power supply module 130 when the power is supplied by the battery 300; the power supply module 130 is also used to supply power to the device controller 200 when receiving the enable on signal.
It is understood that when the battery 300 has a voltage provided and the power adapter 400 has no voltage provided, the detection signal obtained by the detection module 120 at this time represents that the power is supplied by the battery 300, and if the processor 110 obtains the power-on signal transmitted by the power-on detection module 600 at this time, the processor 110 stops sending the enable-off signal to the power supply module 130 and sends the enable-on signal to the channel module at the same time. The power supply module 130 converts the voltage provided by the power supply and transmits the converted voltage to the device controller 200.
Referring to fig. 3, which is another implementable structural schematic diagram of the power supply control device 100 according to the embodiment of the present invention, the detection module 120 includes an external power detection unit 121, a battery detection unit 122, and a determination unit 123, where the external power detection unit 121 is configured to be electrically connected to the power adapter 400, the battery detection unit 122 is configured to be electrically connected to the battery 300, the external power detection unit 121 and the battery detection unit 122 are respectively electrically connected to the determination unit 123, and the determination unit 123 and the external power detection unit 121 are respectively electrically connected to the processor 110.
In this embodiment, the external power detection unit 121 is configured to detect whether the power adapter 400 supplies power to the electronic device 10, obtain a first power supply signal, and transmit the first power supply signal to the processor 110 and the determination unit 123; the battery detection unit 122 is configured to detect whether the battery 300 supplies power to the electronic device 10, obtain a second power supply signal, and transmit the second power supply signal to the determination unit 123; the determining unit 123 is configured to obtain a power-on signal, and obtain a detection signal according to the first power supply signal, the second power supply signal, and the power-on signal.
It can be understood that when the power adapter 400 supplies power to the electronic device 10, the external power detection unit 121 obtains a first power signal at a high level; when the power adapter 400 does not supply power to the electronic device 10, the external power detection unit 121 obtains a first power signal at a low level. When the battery 300 supplies power to the electronic device 10, the battery detection unit 122 obtains a second power supply signal at a high level; when the battery 300 does not supply power to the electronic device 10, the battery detection unit 122 obtains the second power supply signal at a low level. When the first power supply signal obtained by the determining unit 123 is at a low level, the second power supply signal is at a high level, and the power-on signal is at a low level, a detection signal at a low level is generated. When the first power supply signal obtained by the processor 110 is at a low level, the detection signal is at a low level, the power-on signal is at a low level, and the power-on signal is at a low level, the enable/disable signal is provided to the power supply module 130. At this time, the electronic device 10 is powered by the battery 300, and the electronic device 10 is in the power-off state. When the first power supply signal obtained by the processor 110 is at a high level, the processor 110 provides the enable signal to the power supply module 130 no matter whether the detection signal, the power-on signal and the power-off signal are at a low level or a high level. When the first power supply signal obtained by the processor 110 is at a low level, the detection signal is at a low level, the power-on signal is at a low level, and the power-on signal is at a high level, the enable signal is provided to the power supply module 130, which indicates that the electronic device 10 is powered by the battery 300 and the electronic device 10 is in a power-on state.
Referring to fig. 4, in an implementable circuit schematic diagram of the power supply control device 100 according to the embodiment of the present invention, the determining unit 123 includes a first diode D1, a second diode D2, a first resistor R1, and an or gate element U1, the battery detection unit 122 is electrically connected to a first input terminal of the or gate element U1 through the first diode D1, the external power detection unit 121 is electrically connected to a first input terminal of the or gate through the second diode D2, one end of the first resistor R1 is electrically connected to the power supply, the other end of the first resistor R1 is electrically connected between the first diode D1 and the second diode D2, and the first input terminal of the or gate element U1, an output terminal of the or gate element U1 is electrically connected to the processor 110, or a second input terminal of the gate element U1 is configured to receive the power-on signal.
In this embodiment, the external power detection unit 121 includes a second resistor R2 and a third resistor R3, the second resistor R2 and the third resistor R3 are connected in series between the power adapter 400 and the ground, and the processor 110 and the determination unit 123 are electrically connected between the second resistor R2 and the third resistor R3, respectively.
In the present embodiment, the battery detection unit 122 includes a fourth resistor R4 and a fifth resistor R5, the fourth resistor R4 and the fifth resistor R5 are connected in series between the battery 300 and the ground, and the determination unit 123 is electrically connected between the fourth resistor R4 and the fifth resistor R5.
It is understood that the second input terminal of the or gate element U1 is electrically connected to the power-on detection module 600, the cathode of the first diode D1 is electrically connected between the fourth resistor R4 and the fifth resistor R5, the anode of the first diode D1 is electrically connected to the first input terminal of the or gate element U1, the cathode of the second diode D2 is electrically connected between the second resistor R2 and the third resistor R3, the anode of the second diode D2 is electrically connected to the first input terminal of the or gate element U1, or the output terminal of the or gate element U1 is electrically connected to the second input pin of the processor 110. The first input pin of the processor 110 is electrically connected between the second resistor R2 and the third resistor R3, the third input pin of the processor 110 is electrically connected to the power-on detection module 600, and the fourth input pin of the processor 110 is electrically connected to the system chip 500. The first output pin and the second output pin of the processor 110 are electrically connected to an enable terminal of the power supply module 130.
The second resistor R2 and the third resistor R3 divide the voltage provided by the power adapter 400 to obtain a first power supply signal, and the fourth resistor R4 and the fifth resistor R5 divide the voltage provided by the power adapter to obtain a second power supply signal. When one of the first power supply signal and the second power supply signal is low and both of the first power supply signal and the second power supply signal are low, the first input terminal of the or gate element U1 obtains an input signal which is low; when both the first supply signal and the second supply signal are high, the first input of the or gate element U1 gets an input signal that is high. When the input signal obtained from the first input end of the or gate element U1 and the power-on signal obtained from the second input end are both at a low level, the detection signal output from the output end of the or gate element U1 is at a low level; when one of the input signal obtained from the first input terminal and the power-on signal obtained from the second input terminal of the or gate element U1 is high and both are high, the detection signal output from the output terminal of the or gate element U1 is high. When the first power supply signal received by the first input pin is at a low level, the detection signal received by the second input pin is at a low level, the power-on signal received by the third input pin is at a low level, and the power-off signal received by the fourth input pin is at a high level, the processor 110 outputs a high-level signal from the second output pin, outputs a low-level signal from the first output pin, and finally provides a high-level enable signal to the power supply film module. When the first power supply signal received by the first input pin is at a low level, the detection signal received by the second input pin is at a low level, the power-on signal received by the third input pin is at a low level, and the power-off signal received by the fourth input pin is at a low level, the processor 110 outputs a low level signal from the second output pin, outputs a low level signal from the first output pin, and finally provides an enable-off signal at a low level to the power supply module 130. When the first power supply signal received by the first input pin of the processor 110 is at a high level, the first output pin of the processor 110 outputs a high level signal, even if the second output pin of the processor 110 outputs a low level signal, and finally outputs an enable signal at a high level to the power supply module 130. Therefore, when the first power supply signal is at a high level, no matter the signals of the second input pin, the third input pin, and the fourth input pin of the processor 110 are at a high level or a low level, the first output pin of the processor 110 outputs a high level signal, and then the power supply module 130 obtains an enable signal.
Further, in this embodiment, the power supply module 130 includes a power chip U2, a third diode D3, a fourth diode D4, a fifth diode D5, and a sixth diode D6, the first output pin of the processor 110 is electrically connected to the enable terminal of the power chip U2 through the third diode D3, the second output pin of the processor 110 is electrically connected to the enable terminal of the power chip U2 through the fourth diode D4, the battery 300 is electrically connected to the power terminal of the power chip U2 through the fifth diode D5, the power adapter 400 is electrically connected to the power terminal of the power chip U2 through the sixth diode D6, and the output terminal of the power chip U2 is electrically connected to the device controller 200.
The third diode D3, the fourth diode D4, the fifth diode D5 and the sixth diode D6 are all used for preventing the reverse flow of current, which may damage the processor 110, the battery 300 and the power adapter 400.
In this embodiment, the processor 110 may be a single chip.
In summary, an embodiment of the present invention provides a power supply control device and an electronic device, where the power supply control device includes a processor, a detection module, and a power supply module, the processor is electrically connected to the detection module and the power supply module, the power supply module is also electrically connected to a device controller of the electronic device, and the detection module is used for being electrically connected to a battery and a power adapter. Detecting whether the battery and the power adapter supply power to the electronic equipment through a detection module to obtain a detection signal; the processor provides an enabling closing signal for the power supply module when the processor obtains a shutdown signal of the electronic equipment and judges that the battery supplies power according to the detection signal; and when receiving the enabling closing signal, the power supply module stops supplying power to the equipment controller. Therefore, when the electronic equipment is powered by only the battery, if the electronic equipment is in a shutdown state, the processor controls the power supply module to stop supplying power to the equipment controller, the equipment controller stops working, and the electric energy of the battery is not consumed when the electronic equipment is in the shutdown state, so that the service life of the battery is prolonged.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.