Hard wake-up circuit and method for reducing automobile static power consumption, and computer storage medium
Through the hard wake-up circuit, the micro control unit enters deep sleep at low voltage, which solves the problem of high static power consumption of traditional systems and extends the service life of the car battery.
Patent Information
- Application Number
- CN202211183051.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-27
AI Technical Summary
Traditional automotive power management systems cannot go into deep sleep at low voltages, resulting in high static power consumption of the microcontroller unit, resulting in battery drain and shortened life.
Design a hard wake-up circuit, detect the voltage through the battery detection circuit, send an interrupt signal to the external wake-up interrupt pin and wake-up circuit, disable the wake-up circuit, and use the interrupt signal to make the micro-control unit enter a deep sleep state to reduce static power consumption.
It effectively prevents vehicle battery loss, extends battery life, reduces the static power consumption of the micro control unit, and achieves more efficient power management.
Smart Images

Figure CN115903564B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a hard wake-up circuit, a method for reducing automobile static power consumption, and a computer storage medium, and belongs to the field of automobile electronic circuits. Background Art
[0002] With the continuous development of automobiles, the requirements for batteries are getting higher and higher. After the owner does not use the car for a long time, the battery will easily run out of power, causing the car to fail to start, causing great travel anxiety to the owner and shortening the battery life.
[0003] In the design of traditional car computers, the rated DC voltage of the battery is 14V, and the normal operating voltage is allowed to be 9V~16V. When the power supply voltage is 6V~18.5V, it is required to support ACC hard line and Power Key to wake up the host. At present, the AD acquisition function of the microcontroller unit (MCU) is generally used to detect the battery voltage to realize battery monitoring and management, and the battery status is judged based on the collected AD value to design power management.
[0004] In traditional car computers, the general power management state machine switching method is as follows: when the power supply voltage is less than 6V, the system automatically shuts down; when 6V≤power supply voltage<8.5V, the system executes the pre-start process; when 9V<power supply voltage<16.5V, it starts normally; when the power supply voltage is greater than 18.5V, the system automatically shuts down. When the AD acquisition function of the MCU detects that the battery voltage is less than 6V, the system needs to enter the sleep state. At this time, because the MCU is always detecting the battery voltage, it cannot be completely dormant, which will cause the static power consumption of the MCU to be high, and it cannot enter the deep sleep state or even directly power off. At this time, the high static power consumption of the MCU will cause the battery to be consumed too quickly, which is easy to cause power loss, thereby shortening the battery life, and it is difficult to meet the static power consumption index requirements. Summary of the invention
[0005] In view of this, the present invention provides a hard wake-up circuit and a method for reducing the static power consumption of an automobile, and a computer storage medium. By designing a hard wake-up circuit, it is possible to prevent the vehicle battery that supplies power to a microcontroller unit from depleting power too quickly, thereby reducing the static power consumption of the microcontroller unit and achieving the purpose of extending the life of the vehicle battery.
[0006] A first object of the present invention is to provide a hard wake-up circuit.
[0007] The second object of the present invention is to provide a method for reducing static power consumption of an automobile.
[0008] The third object of the present invention is to provide a method for reducing static power consumption of an automobile.
[0009] A fourth object of the present invention is to provide a computer storage medium.
[0010] The first object of the present invention can be achieved by adopting the following technical solutions:
[0011] A hard wake-up circuit is applied to a microcontroller unit, the microcontroller unit includes an external wake-up interrupt pin and a power supply of a processor core, the hardware wake-up circuit includes a battery detection circuit and a wake-up circuit, the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to the external wake-up interrupt pin, and the power supply is connected to the battery detection circuit and the wake-up circuit;
[0012] The battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than a set threshold, send an interrupt signal to the external wake-up interrupt pin and send a low-level signal to the wake-up circuit;
[0013] The wake-up circuit is used to receive a low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself.
[0014] Further, the wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence;
[0015] Wherein, the output circuit is connected to the external wake-up interrupt pin and the battery detection circuit, and the power supply is connected to the input circuit and the isolation circuit.
[0016] Furthermore, the input circuit is an AND gate circuit.
[0017] Furthermore, the isolation circuit is a PNP transistor.
[0018] Furthermore, the output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP transistor and an NPN transistor;
[0019] The collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.
[0020] The second object of the present invention can be achieved by adopting the following technical solutions:
[0021] A method for reducing static power consumption of an automobile, the method comprising:
[0022] Detect the voltage of the vehicle battery through the battery detection circuit;
[0023] Determine whether the voltage is lower than a set threshold, and output a first determination result;
[0024] If the first judgment result is yes, an interrupt signal is sent to an external wake-up interrupt pin and a low-level signal is sent to a wake-up circuit through a battery detection circuit;
[0025] receiving a low-level signal through a wake-up circuit and using the low-level signal to disable the wake-up circuit generated by the wake-up circuit;
[0026] The interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin;
[0027] According to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state.
[0028] Furthermore, the voltage and interrupt signal collected by the AD collection function of the microcontroller unit are used to make the microcontroller unit enter a deep sleep state, which specifically includes:
[0029] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;
[0030] If the second determination result is yes, the interrupt signal is used to make the micro control unit enter a deep sleep state.
[0031] The third object of the present invention can be achieved by adopting the following technical solutions:
[0032] A method for reducing static power consumption of an automobile, the method comprising:
[0033] Detect the voltage of the vehicle battery through the battery detection circuit;
[0034] Determine whether the voltage is lower than a set threshold, and output a first determination result;
[0035] If the first judgment result is yes, a first interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;
[0036] Transmitting the first interrupt signal to the micro control unit via the external wake-up interrupt pin;
[0037] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;
[0038] If the second judgment result is yes, the first interrupt signal is used to shut down the power supply of the processor core and save the data of the micro control unit.
[0039] Furthermore, after outputting the first judgment result, the method further includes:
[0040] If the first judgment result is no, a second interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;
[0041] The second interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin, thereby turning on the power supply of the processor core;
[0042] When the voltage collected by the AD collection function of the microcontroller unit is greater than a set threshold, the microcontroller unit jumps to a corresponding working state according to the state machine switching method of power management and the collected voltage.
[0043] The fourth object of the present invention can be achieved by adopting the following technical solutions:
[0044] A computer storage medium stores a program, and when the program is executed by a processor, the method for reducing the static power consumption of an automobile is realized.
[0045] The present invention has the following beneficial effects compared with the prior art:
[0046] Based on the conditions that the vehicle computer microcontroller unit supports external interrupt wake-up and the microcontroller unit processor core has its own power supply, the present invention can prevent the vehicle computer battery that supplies power to the microcontroller unit from depleting too quickly by designing a hard wake-up circuit, thereby reducing the static power consumption of the microcontroller unit and achieving the purpose of extending the life of the vehicle computer battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0048] Figure 1 This is a circuit structure diagram of the wake-up circuit according to Embodiment 1 of the present invention.
[0049] Figure 2 This is a circuit structure diagram of a battery detection circuit according to Embodiment 1 of the present invention.
[0050] Figure 3 This is a flow chart of a method for reducing static power consumption of an automobile according to Embodiment 1 of the present invention.
[0051] Figure 4 This is a flow chart of a method for reducing static power consumption of an automobile according to Embodiment 1 of the present invention.
[0052] Among them, L-low level, H-high level, N-NO, Y-YES. DETAILED DESCRIPTION
[0053] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0054] Embodiment 1:
[0055] In traditional car computer design, the rated voltage of the car computer battery (hereinafter referred to as the battery) is DC14V, and the normal operating voltage is allowed to be 9V~16V. When the power supply voltage is 6V~18.5V, it is required to support ACC hard line and Power Key to wake up the host. At present, the most direct monitoring and management of the battery is generally to use the AD acquisition function of the microcontroller unit to collect the battery voltage, and judge the battery status based on the collected AD value to design power management.
[0056] like Figure 1 and Figure 2 As shown, this embodiment provides a hard wake-up circuit, which is applied to a microcontroller unit. The microcontroller unit includes an external wake-up interrupt pin and a power supply provided by a processor core. The hardware wake-up circuit includes a battery detection circuit and a wake-up circuit; wherein: the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to the external wake-up interrupt pin, and the power supply provided by the processor core is connected to the battery detection circuit and the wake-up circuit.
[0057] Specifically, the battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than the set threshold, it sends an interrupt signal to the external wake-up interrupt pin and sends a low-level signal to the wake-up circuit; the wake-up circuit is used to receive the low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself.
[0058] Furthermore, the wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence; wherein: the output circuit is connected to an external wake-up interrupt pin and a battery detection circuit, and the power supply of the processor core is connected to the input circuit and the isolation circuit.
[0059] Furthermore, the input circuit is an AND gate circuit.
[0060] In this embodiment, the external wake-up source is converted into a low-level effective input circuit, and the input circuit is designed through four diodes and designed as an AND gate circuit. The advantage of this design method is low cost and can be flexibly configured according to the number of external wake-up sources.
[0061] Furthermore, the isolation circuit is a PNP transistor.
[0062] In this embodiment, the input circuit is then isolated from the external wake-up source through a PNP transistor, thereby preventing the microcontroller from being damaged by interference from the external environment.
[0063] Furthermore, the output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP tube and an NPN tube; wherein: the collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.
[0064] In this embodiment, the power supply provided by the processor core is used, which can save costs.
[0065] In another embodiment, an independent power supply is used as the power supply.
[0066] like Figure 3 As shown, this embodiment also provides a method for reducing static power consumption of an automobile, the method specifically comprising:
[0067] Detect the voltage of the vehicle battery through the battery detection circuit;
[0068] Determine whether the voltage is lower than a set threshold, and output a first determination result;
[0069] If the first judgment result is yes, an interrupt signal is sent to an external wake-up interrupt pin and a low-level signal is sent to a wake-up circuit through a battery detection circuit;
[0070] receiving a low-level signal through a wake-up circuit and using the low-level signal to disable the wake-up circuit generated by the wake-up circuit;
[0071] The interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin;
[0072] According to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state.
[0073] Further, according to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state, specifically including:
[0074] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;
[0075] If the second determination result is yes, the interrupt signal is used to make the micro control unit enter a deep sleep state.
[0076] like Figure 4As shown, this embodiment also provides another method for reducing the static power consumption of an automobile, which specifically includes:
[0077] Detect the voltage of the vehicle battery through the battery detection circuit;
[0078] Determine whether the voltage is lower than a set threshold, and output a first determination result;
[0079] If the first judgment result is yes, a first interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;
[0080] Transmitting the first interrupt signal to the micro control unit via the external wake-up interrupt pin;
[0081] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;
[0082] If the second judgment result is yes, the first interrupt signal is used to shut down the power supply of the processor core and save the data of the micro control unit.
[0083] Furthermore, after outputting the first judgment result, the method further includes:
[0084] If the first judgment result is no, a second interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;
[0085] The second interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin, thereby turning on the power supply of the processor core;
[0086] When the voltage collected by the AD collection function of the microcontroller unit is greater than a set threshold, the microcontroller unit jumps to a corresponding working state according to the state machine switching method of power management and the collected voltage.
[0087] In this embodiment, according to the state machine switching method of power management and the collected voltage, it jumps to the corresponding working state, specifically: when the power supply voltage is less than 6V, it automatically shuts down; 6V≤power supply voltage<8.5V, executes the pre-start process; 9V<power supply voltage<16.5V, starts normally; the power supply voltage is greater than 18.5V, it automatically shuts down; among which 6V is the set threshold in this embodiment.
[0088] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium.
[0089] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0090] Embodiment 2:
[0091] This embodiment provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the two methods for reducing static power consumption of an automobile in the above-mentioned embodiment 1 are implemented.
[0092] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0093] In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In this embodiment, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The computer program contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0094] The computer readable storage medium can be written in one or more programming languages or a combination thereof to execute the computer program of the present embodiment, and the programming language includes an object-oriented programming language, such as Java, Python, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The program can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0095] In summary, the present invention can prevent the vehicle battery that supplies power to the micro control unit from being depleted too quickly by designing a hard wake-up circuit, thereby reducing the static power consumption of the micro control unit and achieving the purpose of extending the life of the vehicle battery.
[0096] The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and inventive concept of the present invention within the scope disclosed by the present invention, which shall fall within the protection scope of the present invention.
Claims
1. A hardware wake-up circuit, applied to a microcontroller unit, wherein the microcontroller unit includes an external wake-up interrupt pin and a power supply provided by a processor core, characterized in that: The hardware wake-up circuit includes a battery detection circuit and a wake-up circuit, the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to an external wake-up interrupt pin, and the power supply is connected to the battery detection circuit and the wake-up circuit; The battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than a set threshold, send an interrupt signal to the external wake-up interrupt pin and send a low-level signal to the wake-up circuit; The wake-up circuit is used to receive a low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself; The micro control unit receives an interrupt signal through an external wake-up interrupt pin, and according to the voltage collected by the AD collection function of the micro control unit and the interrupt signal, the micro control unit enters a deep sleep state.
2. The hardware wake-up circuit according to claim 1, characterized in that: The wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence; The output circuit is connected to an external wake-up interrupt pin and a battery detection circuit, and the power supply is connected to an input circuit and an isolation circuit.
3. The hardware wake-up circuit according to claim 2, characterized in that: The input circuit is an AND gate circuit.
4. The hardware wake-up circuit according to claim 2, characterized in that: The isolation circuit is a PNP transistor.
5. The hardware wake-up circuit according to claim 4, characterized in that: The output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP transistor and an NPN transistor; Among them, the collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.
6. A method for reducing static power consumption of an automobile, characterized in that: The method comprises: Detect the voltage of the vehicle battery through the battery detection circuit; Determine whether the voltage is lower than a set threshold, and output a first determination result; If the first judgment result is yes, an interrupt signal is sent to an external wake-up interrupt pin and a low-level signal is sent to a wake-up circuit through a battery detection circuit; The wake-up circuit receives a low-level signal, and uses the low-level signal to invalidate the wake-up signal generated by the wake-up circuit; The interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin; According to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state.
7. The method for reducing static power consumption of an automobile according to claim 6, characterized in that: The voltage and interrupt signal collected by the AD collection function of the microcontroller unit are used to make the microcontroller unit enter a deep sleep state, which specifically includes: Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result; If the second determination result is yes, the interrupt signal is used to make the micro control unit enter a deep sleep state.
8. A computer storage medium storing a program, characterized in that: When the program is executed by a processor, the method for reducing static power consumption of an automobile as described in any one of claims 6-7 is implemented.
