Power supply control circuit and method and power supply control equipment

By designing a power control circuit including a power switch control module, a logic control module, a main control module and a power switch module, the problem of fixed power supply delay shutdown time and high cost in the prior art is solved, and flexible delay control is realized and cost reduction.

CN119440213APending Publication Date: 2025-02-14深圳市三旺通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411561237.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In existing computer systems, the power supply delay shutdown time is fixed, it is difficult to configure flexibly, and the circuit is complex and costly.

Method used

Design a power control circuit, including a power switch control module, a logic control module, a main control module and a power switch module, monitor the power switch control signal, start the timing, and output the timing output signal at the end of the timing to generate a second switch control Signal to control the power supply to be disconnected.

Benefits of technology

It realizes that the power supply can still operate reliably for a period of time after being turned off, simplifies the circuit structure, reduces costs, and controls the delay time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440213A_ABST
    Figure CN119440213A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply control circuit, a power supply control method and power supply control equipment. The circuit comprises an on-off control module, a logic control module, a main control module and a power supply switch module, the on-off control module is used for providing on-off control signals and transmitting the on-off control signals to the main control module and the logic control module. The main control module is used for generating a timing output signal after a preset delay duration when monitoring that the startup and shutdown control signal is a shutdown control signal, and transmitting the timing output signal to the logic control module; the logic control module is also used for generating a second switch control signal according to the shutdown control signal and the timing output signal, and transmitting the second switch control signal to the power switch module; and the power switch module is also used for controlling the power supply to be disconnected from the main control module according to the second switch control signal, so that the system can continuously and stably operate for a period of time after the power supply is closed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a power control circuit, method and power control device. Background Art

[0002] Computer technology has long been applied in various fields, but in some cases, it is required that the computer can continue to work for a period of time after the computer shutdown button is pressed. For example, after the main switch on the site is turned off, the lighting and monitoring on the site need to continue for a period of time so that the staff can do some finishing work or make a final record of the work on the site. Or some other computer-managed equipment needs to continue to work for a period of time and shut down automatically after some finishing work.

[0003] However, in current computer systems, pure hardware circuits are generally used to implement delayed power off, which is not only complex and costly, but also has the problem that the delay time is short and fixed, making it difficult to flexibly configure.

[0004] Therefore the prior art still needs to be improved and enhanced. Summary of the invention

[0005] The main purpose of the present application is to provide a power control circuit, method and power control device, which are intended to control the system to continue to operate reliably for a period of time after the power is turned off.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, an embodiment of the present application provides a power control circuit, including: a power on / off control module, a logic control module, a main control module and a power switch module;

[0008] The logic control module is connected to the power on / off control module, the main control module and the power switch module respectively, and the main control module is also connected to the power on / off control module and the power switch module respectively; the power switch module is also used to connect to a power supply;

[0009] The on / off control module is used to provide an on / off control signal, and transmit the on / off control signal to the main control module and the logic control module respectively;

[0010] The logic control module is used to generate a first switch control signal according to the power-on control signal in the power-on / off control signal, and transmit the first switch control signal to the power switch module;

[0011] The power switch module is used to control the connection between the power supply and the main control module according to the first switch control signal;

[0012] The main control module is used to generate a timing output signal after a preset delay time when detecting that the power on / off control signal is a power off control signal, and transmit the timing output signal to the logic control module;

[0013] The logic control module is further used to generate a second switch control signal according to the shutdown control signal and the timing output signal, and transmit the second switch control signal to the power switch module;

[0014] The power switch module is further used to control the power supply to be disconnected from the main control module according to the second switch control signal.

[0015] In some embodiments, the logic control module is further used to generate a first switch control signal when the switch control signal is a power-on control signal, so that the power switch module controls the power supply to connect to the main control module according to the first switch control signal;

[0016] The power-on control signal and the second switch control signal are both high-level signals; the power-off control signal, the timing output signal and the first switch control signal are all low-level signals.

[0017] In some embodiments, the main control module includes: a monitoring unit and a timing unit;

[0018] The timing unit is respectively connected to the logic control module, the monitoring unit and the power switch module, and the monitoring unit is also respectively connected to the logic control module and the power on / off control module;

[0019] The monitoring unit is used to monitor the power on / off control signal, and when it is detected that the power on / off control signal is the shutdown control signal, generates a timing start signal, and transmits the timing start signal to the timing unit;

[0020] The timing unit is used to start timing according to the timing start signal, generate the timing output signal after the preset delay time, and transmit the timing output signal to the logic control module.

[0021] In some embodiments, the logic control module includes: an OR gate; the first input port of the OR gate is connected to the power on / off control module, the second input port of the OR gate is connected to the timing unit, and the output end of the OR gate is connected to the power switch module.

[0022] In some embodiments, the power switch module includes: a switch tube and a power input port; the first end of the switch tube is connected to the output end of the OR gate, the second end of the switch tube is connected to the power input port, and the third end of the switch tube is connected to the main control module; the power input port is used to connect to the power supply.

[0023] In some embodiments, the switch tube includes: a transistor; the first end is the base of the transistor, the second end is the collector of the transistor; and the third end is the emitter of the transistor.

[0024] In some embodiments, the switch tube includes: a field effect tube; the first end is a gate of the field effect tube, the second end is a source of the field effect tube; and the third end is a drain of the field effect tube.

[0025] In a second aspect, an embodiment of the present application provides a power control method, including:

[0026] Control the power on / off control module to output a power on control signal to the logic control module;

[0027] The logic control module outputs a first switch control signal to the power switch module according to the power-on control signal, so that the power switch module controls the power supply to be connected to the main control module according to the first switch control signal;

[0028] When the main control module detects the shutdown control signal output by the power on / off control module, it starts timing, and outputs a timing output signal to the logic control module when the timing ends;

[0029] The logic control module generates a second switch control signal according to the shutdown control signal and the timing output signal, and transmits the second switch control signal to the power switch module, so that the power switch module controls the power supply to be disconnected from the main control module according to the second switch control signal.

[0030] In some embodiments, the power-on control signal and the second switch control signal are both high-level signals; the power-off control signal, the timing output signal and the first switch control signal are all low-level signals.

[0031] In a third aspect, an embodiment of the present application provides a power control device, including a PCB board, on which the power control circuit as described above is arranged.

[0032] Compared with the prior art, the present application provides a power control circuit, method and power control device, wherein the circuit includes: a power on / off control module, a logic control module, a main control module and a power switch module; the power on / off control module is used to provide a power on / off control signal, and transmit the power on / off control signal to the main control module and the logic control module respectively; the main control module is used to generate a timing output signal after a preset delay time when it detects that the power on / off control signal is a shutdown control signal, and transmit the timing output signal to the logic control module; the logic control module is also used to generate a second switch control signal according to the shutdown control signal and the timing output signal, and transmit the second switch control signal to the power switch module; the power switch module is also used to control the power supply to be disconnected from the main control module according to the second switch control signal, thereby achieving that the system can continue to operate stably for a period of time after the power is turned off. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 The schematic diagram of the power supply control circuit provided in this application;

[0035] Figure 2 A circuit diagram of a power control circuit provided in this application;

[0036] Figure 3 A power-on flow chart of the power control circuit provided in this application;

[0037] Figure 4 A power-off flow chart of the power control circuit provided in this application;

[0038] Figure 5 A flow chart of the power control method provided in this application.

[0039] Figure numerals: 1: power control circuit; 10: power on / off control module; 20: logic control module; 30: main control module; 31: monitoring unit; 32: timing unit; 40: power switch module; 50: power supply. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0041] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0042] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0043] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0044] The present application provides a power control circuit, method and power control device. In the present application, after the main control module monitors the shutdown control signal output by the switch control module, the timing is started, and the timing output signal is output to the logic control module at the end of the timing, and the logic control module outputs a second switch control signal to the power switch module according to the shutdown control signal and the timing output signal, so as to disconnect the power supply from the main control module, thereby realizing the delayed shutdown of the power supply by using a simple circuit, saving the circuit cost, and the delay time is controllable.

[0045] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments in this application can be combined with each other. In addition, unless explicitly limited or contradictory to the context, the specific steps included in the method recorded in this application are not necessarily limited to the recorded order, but can be performed in any order or in parallel.

[0046] The following describes the design of the power control method through specific exemplary embodiments. It should be noted that the following embodiments are only used to explain the technical solution of the invention and are not specifically limited:

[0047] See also Figure 1 The embodiment of the present application provides a power control circuit 1, including: a power on / off control module 10, a logic control module 20, a main control module 30 and a power switch module 40; the logic control module 20 is respectively connected to the power on / off control module 10, the main control module 30 and the power switch module 40, and the main control module 30 is also respectively connected to the power on / off control module 10 and the power switch module 40; the power switch module 40 is also used to connect to a power supply 50.

[0048] The on / off control module 10 is used to provide an on / off control signal, and transmit the on / off control signal to the main control module 30 and the logic control module 20 respectively.

[0049] The logic control module 20 is used to generate a first switch control signal according to the power-on control signal in the power-on / off control signal, and transmit the first switch control signal to the power switch module 40; the power switch module 40 is used to control the power supply 50 to be connected to the main control module 30 according to the first switch control signal;

[0050] The main control module 30 is used to generate a timing output signal after a preset delay time when it detects that the power on / off control signal is a shutdown control signal, and transmit the timing output signal to the logic control module 20; the logic control module 20 is also used to generate a second switch control signal according to the shutdown control signal and the timing output signal, and transmit the second switch control signal to the power switch module 40; the power switch module 40 is also used to control the power supply 50 to be disconnected from the main control module 30 according to the second switch control signal.

[0051] Among them, the power on / off control module 10 includes: an up and down power signal generator, which can be a combination of a battery and a switch, or a combination of a battery and a logic circuit, which can provide high and low level signals, that is, generate a high level power-on signal and a low level power-off signal; the power on / off control signal includes: a power on control signal and a power off control signal; the power on control signal and the second switch control signal are both high level signals; the power off control signal and the timing output signal are both low level signals.

[0052] Exemplarily, the specific implementation process of the power control circuit 1 in the present application is as follows:

[0053] The power on / off control module 10 simultaneously provides a power on / off control signal to the logic control module 20 (here taking an OR gate as an example, in other embodiments of the present application, the logic control module 20 may also be other devices that can achieve the same function as an OR gate) and the computer's main control module 30.

[0054] The first step is to power the system:

[0055] When the system needs to be powered normally, the power on / off control module 10 first outputs a high-level power on control signal to the logic control module 20, and the logic control module 20 can directly output a high-level first switch control signal to the power switch module 40 according to the power on control signal (the characteristics of the OR gate are utilized here, and when at least one of the two input terminals is a high-level signal, the output terminal will output a high-level signal).

[0056] The power switch module 40 controls the power supply 50 to connect to the main control module 30 according to the first switch control signal, so that the main control module 30 can work normally after being powered on and output a high level signal to the logic control module 20 .

[0057] Step 2: Delay power off of the system:

[0058] First, after the system is powered normally, the power on / off control module 10 simultaneously provides a high-level power on control signal (at this time, the power on / off control signal is a power on control signal, i.e., a corresponding power-on signal) to the main control module 30 and the logic control module 20. Then, the main control module 30 provides a high-level signal to the logic control module 20. At the same time, the main control module 30 monitors the power on / off control signal output by the power on / off control module 10 in real time.

[0059] However, when the manual or automatic control switch control module 10 provides a low-level shutdown control signal (at this time, the switch control signal is a shutdown control signal, i.e., a corresponding power-off signal) to the main control module 30 and the logic control module 20, since the main control module 30 still provides a high-level signal to the logic control module 20 at this time, the logic control module 20 temporarily outputs a high-level signal to the power switch module 40 (here, the characteristics of the OR gate are also utilized, and the output terminal will output a low-level signal only when both input terminals are low-level signals), so that the power supply 50 (as a computer power supply) can normally supply power to the main control module 30, and the main control module 30 continues to monitor the switch control signal output by the switch control module 10.

[0060] Secondly, when the main control module 30 detects that the power on / off control signal is a low-level shutdown control signal, it starts timing, and after the timing ends, the generated timing output signal is transmitted to the logic control module 20. The logic control module 20 outputs a low-level second switch control signal to the power switch module 40 according to the low-level shutdown control signal and the timing output signal.

[0061] Finally, the power switch module 40 controls the power supply 50 to be disconnected from the main control module 30 according to the second switch control signal of the low level.

[0062] In the present application, when the main control module 30 detects that the power on / off control signal output by the power on / off control module 10 is a shutdown control signal, the timing output signal is output to the logic control module 20 after a preset delay time, so that the logic control module 20 controls the power supply 50 to be disconnected according to the timing output signal and the shutdown control signal, thereby realizing the power disconnection after a delay, that is, the system operates normally within the preset delay time, and the delay time can be set. The power control circuit 1 in the present application has a simple structure, which helps to reduce hardware costs.

[0063] In this application, the switching state of the computer power supply is subject to dual control, which can achieve the following switching effects:

[0064] When the up and down power signal generator outputs a power-on signal, the computer starts immediately; when the up and down power signal generator outputs a power-off signal, whether the computer power is turned off or not is controlled by the computer's specific power-off signal output port (i.e., the output port that outputs the timing output signal): that is, after the computer detects the power-off signal generated by the up and down power signal generator, the countdown timer in the main control module 30 is started, and when the timer ends, the computer's specific power-off signal output port can be controlled to output a power off signal (i.e., the timing output signal) to the input pin of the OR gate (i.e., the logic control module 20), so that the computer power is actually turned off, thereby achieving the effect of delaying the shutdown of the computer power, and the length of the computer timer timeout can be manually set. Moreover, the entire circuit is simple, reliable and inexpensive.

[0065] Among them, in another application scenario of the power control circuit 1 in the present application, when the bus driver rotates the car key for the first time on some existing buses, the on-board devices on the bus will be powered first, such as switches and cameras. Then, after the car key is rotated again, the power supply 50 will be connected to the engine. However, the magnetic field generated by the power supply 50 at the moment of startup will cause the power supply voltage of the on-board device to become a low-level signal within a limited time, making it impossible to power the on-board device normally.

[0066] Then, in this embodiment, it is only necessary to set the preset delay time to be greater than the limited time. After the limited time, the power supply voltage of the vehicle-mounted equipment returns to normal, that is, the power on / off control signal is a high-level power-on control signal at this time, and the logic module has not yet output a low-level signal, and continues to output a high-level signal, so that the power supply 50 continues to supply power to the main control module 30.

[0067] Furthermore, the logic control module 20 is also used to generate a first switch control signal when the switch control signal is a power-on control signal, so that the power switch module 40 controls the power supply 50 to connect to the main control module 30 according to the first switch control signal. The first switch control signal is a low level signal.

[0068] Exemplarily, when the system has not started to be powered on, the system startup process is as follows:

[0069] First, the power on / off control module 10 provides a high level power on control signal (at this time, the power on / off control signal is a power on control signal) to the main control module 30 and the logic control module 20 ; at this time, the main control module 30 outputs an indeterminate signal to the logic control module 20 .

[0070] Then, the logic control module 20 directly outputs a high-level first switch control signal to the power switch module 40 according to the power-on control signal, and the power switch module 40 controls the power supply 50 to connect to the main control module 30 according to the first switch control signal, so as to supply power to the main control module 30 normally.

[0071] It can be understood that in the present application, a high-level first switch control signal is outputted through a power-on control signal so that the power supply 50 supplies power to the main control module 30, thereby realizing convenient control of the main control power supply.

[0072] Furthermore, the main control module 30 includes: a monitoring unit 31 and a timing unit 32; the timing unit 32 is respectively connected to the logic control module 20, the monitoring unit 31 and the power switch module 40, and the monitoring unit 31 is also respectively connected to the logic control module 20 and the power on / off control module 10.

[0073] The monitoring unit 31 is used to monitor the power on / off control signal. When it is detected that the power on / off control signal is a shutdown control signal, it generates a timing start signal and transmits the timing start signal to the timing unit 32; the timing unit 32 is used to start timing according to the timing start signal, generate a timing output signal after a preset delay time, and transmit the timing output signal to the logic control module 20.

[0074] Among them, in the embodiment of the present application, the main control module 30 is a CPU chip, and the timing unit 32 is a timer; in the present application, the timing unit 32 can be implemented by a watchdog circuit.

[0075] Exemplarily, when the on / off control module 10 outputs the on / off control signal to the monitoring unit 31 and the monitoring unit 31 is powered normally, the monitoring unit 31 monitors the on / off control signal:

[0076] If the on / off control signal is detected to be a high level power-on control signal, that is, the on / off control module 10 is controlled to output the power-on control signal, the monitoring unit 31 directly outputs a high level signal to the logic control module 20 .

[0077] If the on / off control signal is detected to be a low level shutdown control signal, that is, the on / off control module 10 is controlled to output the shutdown control signal, the monitoring unit 31 outputs a timing start signal to the timing unit 32 .

[0078] Then, the timing unit 32 starts timing, and after a preset timing time, the timing ends and a low-level timing output signal is output to the logic control module 20 , so that the logic control module 20 determines the output result according to the timing output signal.

[0079] Another example in the present application is that the main control module 30 can be directly replaced with an FPGA (Complex Programmable Logic Device, Chinese name is programmable logic device) chip, which can realize the upper and lower power signal detection program and the timer program, that is, the upper and lower power signal detection program is used to detect the power-on signal and the power-off signal generated by the upper and lower power signal generator in real time, and the timer program is used to output a low-level signal to the input end of the OR gate after the timing is completed, so the circuit hardware cost can be further saved. The main control module 30 can also be replaced with a combination circuit of a watchdog circuit and an FPGA chip or a watchdog circuit and a CPLD (Field Programmable Gate Array, Chinese name is field programmable gate array) chip, where the FPGA chip and the CPLD chip are only used to realize the monitoring function.

[0080] It can be understood that in the present application, the monitoring unit 31 monitors the power-on and power-off control signal output by the power-on and power-off control module 10 in real time, and when it detects that it is a power-on control signal, the timing unit 32 is controlled to start timing, and a low-level timing output signal is output to the logic control module 20 after a preset delay time, so that the logic control module 20 also outputs a low-level signal to the power switch module 40, so that the power supply 50 is disconnected, thereby achieving the effect of delayed power off, and the preset delay time in the timing unit 32 can be set, the results of the monitoring unit 31 and the timing unit 32 are simple, and the cost is effectively saved.

[0081] Furthermore, the logic control module 20 includes: an OR gate; a first input port of the OR gate is connected to the power on / off control module 10 , a second input port of the OR gate is connected to the timing unit 32 , and an output end of the OR gate is connected to the power switch module 40 .

[0082] Exemplarily, in other embodiments of the present application, the logic control module 20 may be directly replaced by an FPGA chip or a CPLD chip to achieve the same function as an OR gate.

[0083] Furthermore, the power switch module 40 includes: a switch tube and a power input port; the first end of the switch tube is connected to the output end of the OR gate, the second end of the switch tube is connected to the power input port, and the third end of the switch tube is connected to the main control module 30; the power input port is used to connect to the power supply 50.

[0084] Exemplarily, when the logic control module 20 outputs a first switch control signal, the switch tube is turned off according to the low-level first switch control signal, so that the power supply 50 on the power input port is disconnected from the main control module 30; and when the logic control module 20 outputs a second switch control signal, the switch tube is turned on according to the high-level second switch control signal, so that the power supply 50 is connected to the main control module 30 to supply power to the main control module 30.

[0085] Furthermore, the switch tube includes: a triode; the first end is a base, the second end is a collector; and the third end is an emitter.

[0086] Exemplarily, in one embodiment of the present application, the switch tube may be a triode, in which case the first end of the switch tube is the base, the second end of the switch tube is the collector, and the third end of the switch tube is the emitter.

[0087] Furthermore, the switch tube includes: a field effect tube; a first end is a gate, a second end is a source; and a third end is a drain.

[0088] Exemplarily, in another embodiment of the present application, the switch tube may be a field effect tube. Then, at this time, the first end of the switch tube is a gate, the second end of the switch tube is a source, and the third end of the switch tube is a drain.

[0089] In order to better understand the present invention, the following Figure 2-Figure 4 The working principle of the power supply control circuit of the present invention is described in detail:

[0090] See also Figure 2 and Figure 3 When the CPU chip (i.e., the main control module 30) needs to be powered on, first, the power-on and power-off signal generator (i.e., the power-on and power-off control module 10) Figure 3 In the power-on process, the power-on controller (represented by the power-on controller at this time) generates a high-level power-on signal (i.e., a power-on control signal) to the monitoring unit 31 and the OR gate (i.e., the logic control module 20) on the CPU chip.

[0091] Then, the OR gate directly outputs a high-level power-on signal (i.e., the first switch control signal) to the switch tube (i.e., the power switch module 40) according to the power-on signal on one input terminal. At this time, the switch tube is turned on, so that the CPU chip is powered on and works.

[0092] Secondly, the monitoring unit 31 starts to work normally after power-on, and monitors the switch and control signals generated by the power-on and power-off signal generator in real time. After monitoring the power-on signal, it outputs a high-level signal to the other input end of the OR gate, and the OR gate continues to output the power-on signal.

[0093] See also Figure 4When it is necessary to delay powering off the CPU chip (i.e. power off or power off), first, the power on and off signal generator is controlled to generate a low-level power-off signal (i.e. shutdown control signal) to the monitoring unit 31 and the OR gate. At this time, the OR gate continues to output a high-level power-on signal based on the two signals on the two input terminals, which are the shutdown control signal and the high-level signal output by the monitoring unit 31 (based on the characteristics of the OR gate, it outputs a high level as long as at least one of the input terminals is at a high level).

[0094] At the same time, the monitoring unit 31 outputs a timing start signal to the timer (ie, the timing unit 32) according to the power-off signal. The timer starts timing according to the timing start signal and outputs a low-level timing output signal to another input terminal of the OR gate after the timing ends.

[0095] Then, the OR gate outputs a low-level power-off signal (i.e., the second switch control signal) to the switch tube according to the low-level timing output signal and the shutdown control signal. At this time, the switch tube is turned off, causing the CPU chip to power off and stop working.

[0096] Furthermore, in one embodiment of the present application, a watchdog circuit (for example, composed of a NE55 timer chip and a peripheral circuit) can be used to implement power control:

[0097] The device implements watchdog feeding through software or hardware. When the watchdog is fed normally, the watchdog circuit will not output a power-off signal to the power supply, thereby maintaining normal power supply of the power supply.

[0098] Then, when the power-on and power-off signal generator gives a power-on signal, the dog feeding module starts feeding the dog, and the watchdog does not affect the power switch.

[0099] When the power-on and power-off signal generator sends a power-off signal, the dog feeding module stops feeding the dog, and the watchdog starts counting down. When the counting ends, the power-off signal is output to the power switch (i.e., the switch tube) to shut down the power.

[0100] Among them, there are advantages: no software involvement, pure hardware implementation, accurate timing. Disadvantages: high cost; fixed timing length, cannot be flexibly preset, watchdog countdown is often short, may not meet actual needs.

[0101] A watchdog circuit (e.g. composed of a NE55 timer chip and peripheral circuits) can be used to implement power control:

[0102] Furthermore, in another embodiment of the present application, an LRC delay circuit may be used to implement power control:

[0103] The monitoring unit 31 and the timing unit 32 are replaced by an LRC energy storage circuit.

[0104] Then, when the power-on and power-off signal generator gives a power-on signal, energy is stored in the LRC circuit at the same time, so that the LRC circuit outputs a high-level signal to the input end of the logic OR gate.

[0105] When the up and down power signal generator gives a power-down signal, the energy storage of the LRC circuit is disconnected, and the LRC circuit begins to release energy. When the energy is released to a certain extent, a low-level signal is output to the input end of the logic OR gate.

[0106] Among them, there are advantages: pure hardware implementation, simple structure. Disadvantages: timing is not accurate enough, and it is difficult to adjust the timing length. The cost is high.

[0107] See also Figure 5 , an embodiment of the present application provides a power control method, comprising:

[0108] S100, controlling the power on / off control module 10 to output a power on control signal to the logic control module 20;

[0109] Exemplarily, the power control method is applicable to the power control circuit 1, and the specific implementation process of the power control method is as follows:

[0110] First, when the entire system is not powered, that is, the power supply 50 is not connected to the main control module 30 , the main control module 30 outputs an indeterminate signal to the logic control module 20 .

[0111] However, when power is required to be supplied to the main control module 30 , the power on / off control module 10 outputs a power on control signal to the main control module 30 and the logic control module 20 , so that the main control module 30 monitors the power on control signal.

[0112] It can be understood that in the present application, the power-on / off control module 10 is used to output a power-on control signal to the logic control module 20 as the first input control terminal signal of the logic control module 20 to control the high and low level states of the output signal of the logic control module 20, thereby realizing partial control of the logic control module 20.

[0113] Further, S200 , the logic control module 20 outputs a first switch control signal to the power switch module 40 according to the power-on control signal, so that the power switch module 40 controls the power supply 50 to be connected to the main control module 30 according to the first switch control signal.

[0114] Exemplarily, when the power on / off control module 10 outputs the power on control signal to the logic control module 20, the logic control module 20 can directly output a high-level first switch control signal to the power switch module 40 according to the high-level power on control signal, and the power switch module 40 controls the power supply 50 to connect to the main control module 30 according to the first switch control signal. The main control module 30 is powered on and outputs a high-level signal to the logic control module 20.

[0115] It can be understood that in the present application, the logic control module 20 outputs a first switch control signal according to the power-on control signal, and the power switch module 40 controls the connection between the power supply 50 and the main control module 30 according to the first switch control signal, thereby realizing accurate and efficient connection control of the power supply.

[0116] Further, S300 , when the main control module 30 detects the shutdown control signal output by the power on / off control module 10 , it starts timing, and outputs a timing output signal to the logic control module 20 when the timing ends.

[0117] Exemplarily, after the main control module 30 is powered on, when the manual or automatic control switch control module 10 outputs a low-level shutdown control signal to the main control module 30 and the logic control module 20, or when the switch control module 10 outputs a low-level shutdown control signal due to voltage instability, since the main control module 30 still provides a high-level signal to the logic control module 20 (or gate) at this time, the logic control module 20 temporarily outputs a high-level signal to the power switch module 40, and the power switch module 40 is in a working state, so that the power supply 50 supplies power to the main control module 30 normally, and the main control module 30 continues to monitor the switch control signal output by the switch control module 10.

[0118] Then, when the main control module 30 detects a low-level shutdown control signal, it starts timing, and after the preset timing time ends, the generated low-level timing output signal is transmitted to the logic control module 20 .

[0119] It can be understood that in the present application, when the shutdown control signal is detected by the main control module 30, the timing is started, and the timing output signal is output to the logic control module 20 at the end of the timing, so that the logic control module 20 outputs a low-level signal, thereby realizing delay control. The logic control module 20 outputs a low-level signal, and the delay time can be set, and the delay control is realized based on the OR gate, which effectively saves hardware costs.

[0120] Further, S400, the logic control module 20 generates a second switch control signal according to the shutdown control signal and the timing output signal, and transmits the second switch control signal to the power switch module 40, so that the power switch module 40 controls the power supply 50 to disconnect from the main control module 30 according to the second switch control signal.

[0121] Exemplarily, when the main control module 30 outputs the timing output signal to the logic control module 20, since the two signals (shutdown control signal and timing output signal) input to the logic control module 20 (or gate) are both low level at this time, the logic control module 20 outputs a low level second switch control signal to the power switch module 40.

[0122] Then, the power switch module 40 controls itself to be in a non-working state according to the second switch control signal, so that the power supply 50 is disconnected from the main control module 30 .

[0123] It can be understood that in the present application, the logic control module 20 outputs a second switch control signal to the power switch module 40 according to the low-level shutdown control signal and the timing output signal, so that the power switch module 40 disconnects the power supply 50, thereby realizing the power shutdown control.

[0124] Furthermore, an embodiment of the present application provides a power control device, including a PCB board, on which the above power control circuit 1 is arranged. Since the steps of the power control circuit 1 are described in detail above, they will not be repeated here.

[0125] In summary, the present application provides a power control circuit, method and power control device, the method comprising: after controlling the power on / off control module 10 to output a power on control signal to the logic control module 20, using the logic control module 20 to output a first switch control signal to the power switch module 40 according to the power on control signal, so that the power switch module 40 controls the power supply 50 to be connected to the main control module 30 according to the first switch control signal; when the main control module 30 monitors the power off control signal output by the power on / off control module 10, the timing is started, and a timing output signal is output to the logic control module 20 at the end of the timing; using the logic control module 20 to generate a second switch control signal according to the shutdown control signal and the timing output signal, and transmitting the second switch control signal to the power switch module 40, so that the power switch module 40 controls the power supply 50 to be disconnected from the main control module 30 according to the second switch control signal.

[0126] After the main control module 30 monitors the shutdown control signal output by the switch control module, the timing is started, and a timing output signal is output to the logic control module 20 when the timing ends. The logic control module 20 outputs a second switch control signal to the power switch module 40 based on the shutdown control signal and the timing output signal, so as to disconnect the power supply 50 from the main control module 30, thereby realizing delayed power shutdown with a simple circuit, saving circuit cost, and the delay time is controllable.

[0127] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A power control circuit, characterized in that: include: Power on / off control module, logic control module, main control module and power switch module; The logic control module is connected to the power on / off control module, the main control module and the power switch module respectively, and the main control module is also connected to the power on / off control module and the power switch module respectively; the power switch module is also used to connect to a power supply; The on / off control module is used to provide an on / off control signal, and transmit the on / off control signal to the main control module and the logic control module respectively; The logic control module is used to generate a first switch control signal according to the power-on control signal in the power-on / off control signal, and transmit the first switch control signal to the power switch module; The power switch module is used to control the connection between the power supply and the main control module according to the first switch control signal; The main control module is used to generate a timing output signal after a preset delay time when detecting that the power on / off control signal is a power off control signal, and transmit the timing output signal to the logic control module; The logic control module is further used to generate a second switch control signal according to the shutdown control signal and the timing output signal, and transmit the second switch control signal to the power switch module; The power switch module is further used to control the power supply to be disconnected from the main control module according to the second switch control signal.

2. The power control circuit according to claim 1, characterized in that: The logic control module is further used to generate a first switch control signal when the power on / off control signal is a power on control signal, so that the power switch module controls the power supply to connect to the main control module according to the first switch control signal; The power-on control signal and the second switch control signal are both high-level signals; the power-off control signal, the timing output signal and the first switch control signal are all low-level signals.

3. The power control circuit according to claim 1, characterized in that: The main control module includes: a monitoring unit and a timing unit; The timing unit is respectively connected to the logic control module, the monitoring unit and the power switch module, and the monitoring unit is also respectively connected to the logic control module and the power on / off control module; The monitoring unit is used to monitor the power on / off control signal, and when it is detected that the power on / off control signal is the shutdown control signal, generates a timing start signal, and transmits the timing start signal to the timing unit; The timing unit is used to start timing according to the timing start signal, generate the timing output signal after the preset delay time, and transmit the timing output signal to the logic control module.

4. The power control circuit according to claim 3, characterized in that: The logic control module includes: an OR gate; a first input port of the OR gate is connected to the power on / off control module, a second input port of the OR gate is connected to the timing unit, and an output end of the OR gate is connected to the power switch module.

5. The power control circuit according to claim 4, characterized in that: The power switch module includes: a switch tube and a power input port; the first end of the switch tube is connected to the output end of the OR gate, the second end of the switch tube is connected to the power input port, and the third end of the switch tube is connected to the main control module; the power input port is used to connect to the power supply.

6. The power control circuit according to claim 5, characterized in that: The switch tube includes: a triode; the first end is the base of the triode, the second end is the collector of the triode; and the third end is the emitter of the triode.

7. The power control circuit according to claim 5, characterized in that: The switch tube includes: a field effect tube; the first end is the gate of the field effect tube, the second end is the source of the field effect tube; and the third end is the drain of the field effect tube.

8. A power supply control method, characterized in that: include: Control the power on / off control module to output a power on control signal to the logic control module; The logic control module outputs a first switch control signal to the power switch module according to the power-on control signal, so that the power switch module controls the power supply to be connected to the main control module according to the first switch control signal; When the main control module detects that the power on / off control module outputs a power off control signal, the main control module starts timing, and outputs a timing output signal to the logic control module when the timing ends; The logic control module generates a second switch control signal according to the shutdown control signal and the timing output signal, and transmits the second switch control signal to the power switch module, so that the power switch module controls the power supply to be disconnected from the main control module according to the second switch control signal.

9. The power control method according to claim 8, characterized in that: The power-on control signal and the second switch control signal are both high-level signals; the power-off control signal, the timing output signal and the first switch control signal are all low-level signals.

10. A power control device, comprising a PCB board, characterized in that: The PCB board is provided with a power control circuit as described in any one of claims 1 to 7.