Restart circuit, doorbell and electronic equipment
By introducing delay circuits and switching circuits into the control circuit, the combination of trigger signals and enable signals is achieved, and the problem of high cost and high power consumption of watchdog circuits is solved, which improves the system's Reliability and battery life.
Patent Information
- Application Number
- CN202420339465.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2034-02-23
AI Technical Summary
Existing watchdog circuits have problems with high cost and high power consumption, especially in low-power products. Adding additional watchdog chips will increase costs and affect battery life.
A restart circuit is designed, including control circuit, main control circuit and delay circuit. Through the coordination of trigger signal, interrupt signal and enable signal, the control circuit automatically restarts in the event of a fault, avoiding the additional increase of the watchdog chip. Demand, reducing costs and power consumption.
It realizes automatic restart when the control circuit fails, reduces the cost and power consumption of the system, and improves the reliability and battery life of the system.
Smart Images

Figure CN222016519U_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of reset circuits, and in particular, relates to a restart circuit, a doorbell, and an electronic device. Background Art
[0002] Low-power products usually contain main control circuits, control circuits, batteries and other parts. The control circuit is a permanent power supply circuit, and the battery is a power supply. Since the batteries of most lithium battery products are built-in and cannot be removed by users, and because the control circuit is a permanent power supply, the entire system is controlled by the control circuit, so it is necessary to ensure that the control circuit has a very high stability to avoid system paralysis due to the control circuit being stuck and unable to recover.
[0003] When the system is stuck or the program is running away, and there is no built-in watchdog or the built-in watchdog fails, an additional watchdog chip is usually added to restore the normal operation of the system. The specific implementation method is: the existing chip in the system feeds the watchdog regularly, and when the system is stuck, the watchdog will stop feeding the watchdog. After the watchdog detects that the watchdog stops feeding the watchdog, it will reset the system to resume normal operation.
[0004] However, adding an extra watchdog chip will increase costs, and when using watchdog reset, the system needs to feed the watchdog chip regularly. Each feeding will increase power consumption and affect the battery life of low-power products.
[0005] Based on this, a low-cost and low-power restart circuit is urgently needed. Utility Model Content
[0006] The purpose of the present application is to provide a restart circuit, a doorbell, and an electronic device, aiming to solve the problems of high cost and high power consumption of existing watchdog circuits.
[0007] The present application embodiment provides a restart circuit, including:
[0008] A restart circuit comprises a control circuit, a main control circuit and a delay circuit;
[0009] The control circuit is configured to output a trigger signal;
[0010] The main control circuit is connected to the control circuit and configured to output an interrupt signal based on the trigger signal;
[0011] The control circuit is further configured to stop working according to the interrupt signal;
[0012] The delay circuit is connected to the control circuit and the main control circuit, and is configured to charge after the main control circuit outputs the interrupt signal, and output an enable signal after a preset time;
[0013] The control circuit is further configured to resume operation according to the enable signal.
[0014] In one embodiment, the control circuit is further configured to output a switch signal in response to a fault of the control circuit itself; and the restart circuit further includes:
[0015] a switch circuit, connected to the control circuit and the main control circuit, configured to access a power supply voltage and transmit the power supply voltage according to the switch signal;
[0016] The main control circuit is further configured to output an interrupt signal based on the supply voltage and the trigger signal.
[0017] In one embodiment, the switch circuit includes a PMOS;
[0018] The gate of the PMOS serves as a switching signal input terminal of the switching circuit, and is connected to the control circuit to input the switching signal; the drain of the PMOS serves as a power supply voltage input terminal of the switching circuit, and is input to the power supply voltage; the source of the PMOS serves as a power supply voltage output terminal of the switching circuit, and is connected to the main control circuit to output the power supply voltage.
[0019] In one of the embodiments, the control circuit includes a Wi-Fi chip;
[0020] The first universal input / output terminal of the Wi-Fi chip serves as a trigger signal output terminal of the control circuit, and is connected to the main control circuit to output the trigger signal; the enable terminal of the Wi-Fi chip serves as an interrupt signal input terminal of the control circuit and an enable signal input terminal of the control circuit, and is connected to the main control circuit and the delay circuit to input the interrupt signal and the enable signal; the second universal input / output terminal of the Wi-Fi chip serves as a switch signal output terminal of the control circuit, and is connected to the switch circuit to output the switch signal.
[0021] In one embodiment, the main control circuit includes a microprocessor;
[0022] The first general input and output terminal of the microprocessor serves as the trigger signal input terminal of the main control circuit and is connected to the control circuit to input the trigger signal; the second general input and output terminal of the microprocessor serves as the interrupt signal output terminal of the main control circuit and is connected to the control circuit to output the interrupt signal; the power supply terminal of the microprocessor serves as the power supply voltage terminal of the main control circuit and is connected to the switch circuit to input the power supply voltage.
[0023] In one of the embodiments, the delay circuit includes a resistor and a capacitor;
[0024] The first end of the resistor and the first end of the capacitor serve together as the enable signal output end of the delay circuit, and are connected to the control circuit and the main control circuit to output the enable signal; the first end of the resistor is connected to the second power supply, and the second end of the capacitor is connected to the power ground.
[0025] In one of the embodiments, the delay circuit includes a reset chip;
[0026] The reset end of the reset chip serves as the enable signal output end of the delay circuit, and is connected to the control circuit and the main control circuit to output the enable signal; the power supply end of the reset chip is connected to the second power supply, and the ground end of the reset chip is connected to the power ground.
[0027] In one embodiment, it also includes:
[0028] The power supply circuit is configured to provide working voltage to each functional circuit.
[0029] An embodiment of the present application also provides a doorbell, which includes the above-mentioned restart circuit.
[0030] An embodiment of the present application further provides an electronic device, which includes the above-mentioned restart circuit.
[0031] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the control circuit outputs a trigger signal in response to its own fault; the main control circuit outputs an interrupt signal based on the trigger signal; the control circuit stops working according to the interrupt signal; the delay circuit is charged after the main control circuit outputs the interrupt signal, and outputs an enable signal after a preset time; the control circuit resumes working according to the enable signal; thus, there is no need to add an additional watchdog chip and continuously output a dog feeding signal, and restart can be achieved when the control circuit fails, thereby reducing cost and power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical application in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 A schematic diagram of a structure of a restart circuit provided in one embodiment of the present application;
[0034] Figure 2 Another structural schematic diagram of a restart circuit provided in an embodiment of the present application;
[0035] Figure 3A partial exemplary circuit schematic diagram of a restart circuit provided in an embodiment of the present application;
[0036] Figure 4 Another partial exemplary circuit schematic diagram of a restart circuit provided in an embodiment of the present application;
[0037] Figure 5 This is a voltage waveform diagram of the Wi-Fi chip enable terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0040] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0041] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0042] Figure 1 The structure diagram of the restart circuit provided by an embodiment of the present application is shown. For the convenience of description, only the part related to the present embodiment is shown, which is described in detail as follows:
[0043] The restart circuit comprises a control circuit 100 , a main control circuit 200 and a delay circuit 300 .
[0044] The control circuit 100 is configured to output a trigger signal.
[0045] The main control circuit 200 is connected to the control circuit 100 and is configured to output an interrupt signal based on a trigger signal.
[0046] The control circuit 100 is further configured to stop operating according to the interrupt signal.
[0047] The delay circuit 300 is connected to the control circuit 100 and the main control circuit 200, and is configured to charge after the main control circuit 200 outputs an interrupt signal, and output an enable signal after a preset time.
[0048] The control circuit 100 is further configured to resume operation according to the enable signal.
[0049] It should be noted that the interrupt signal can be a low level, and the enable signal can be a high level.
[0050] There is no need to add an additional watchdog chip. The control circuit 100 can output a trigger signal when it fails. The main control circuit 200 outputs an interrupt signal based on the trigger signal to stop the control circuit 100. The delay circuit 300 outputs an enable signal after a preset time to ensure that the control circuit 100 will not restart immediately after stopping, thereby avoiding the control circuit 100 from failing to restart due to insufficient reset time, achieving low-cost and low-power fault restart, and improving system reliability.
[0051] By way of example and not limitation, Figure 2 As shown, the control circuit 100 is further configured to output a switch signal in response to a fault of the control circuit 100 itself; the restart circuit further includes a switch circuit 400 .
[0052] The switch circuit 400 is connected to the control circuit 100 and the main control circuit 200, and is configured to access the power supply voltage and transmit the power supply voltage according to the switch signal.
[0053] The main control circuit 200 is further configured to output an interrupt signal based on the supply voltage and the trigger signal.
[0054] In actual use, the main control circuit 200 consumes relatively high power when working, and constant power supply will affect the system endurance. Therefore, a switching circuit 400 needs to be added between the power supply and the main control circuit 200. The switching circuit 400 transmits the power supply voltage to the main control circuit 200 according to the switching signal, thereby reducing unnecessary power consumption.
[0055] As an example but not a limitation, the restart circuit further includes a power supply circuit, and the power supply circuit is configured to provide a working voltage to each functional circuit.
[0056] The normal operation of the circuit is ensured by the power supply circuit.
[0057] Figure 3 A partial exemplary circuit structure of a restart circuit provided in an embodiment of the present application is shown. Figure 4 Another partial exemplary circuit structure of the restart circuit provided in the embodiment of the present application is shown. For the convenience of description, only the part related to the embodiment of the present application is shown, which is described in detail as follows:
[0058] like Figure 3 and Figure 4 As shown, the control circuit 100 includes a wireless network communication technology (Wi-Fi) chip U1.
[0059] The first universal input-output terminal P2.0 of the Wi-Fi chip U1 serves as a trigger signal output terminal of the control circuit 100, and is connected to the main control circuit 200 to output a trigger signal; the enable terminal EN of the Wi-Fi chip U1 serves as an interrupt signal input terminal of the control circuit 100 and an enable signal input terminal of the control circuit 100, and is connected to the main control circuit 200 and the delay circuit 300 to input an interrupt signal and an enable signal; the second universal input-output terminal P2.1 of the Wi-Fi chip U1 serves as a switch signal output terminal of the control circuit 100, and is connected to the switch circuit 400 to output a switch signal.
[0060] The Wi-Fi chip U1 may be a low-power Wi-Fi chip.
[0061] According to actual tests, when the Wi-Fi chip U1 is stuck due to a fault, the input pin and input interrupt function become invalid, but the general input and output terminal can still have an output function. Therefore, when the chip fails, a trigger signal can be output through the general input and output terminal to restart the Wi-Fi chip U1. There is no need to add an additional watchdog chip, which simplifies the circuit and reduces costs.
[0062] like Figure 3 and Figure 4 As shown, the main control circuit 200 includes a microprocessor U2.
[0063] The first general input and output terminal P1.0 of the microprocessor U2 serves as a trigger signal input terminal of the main control circuit 200, and is connected to the control circuit 100 to input a trigger signal; the second general input and output terminal P1.1 of the microprocessor U2 serves as an interrupt signal output terminal of the main control circuit 200, and is connected to the control circuit 100 to output an interrupt signal; the power supply terminal VCC of the microprocessor U2 serves as a power supply voltage terminal of the main control circuit 200, and is connected to the switch circuit 400 to input a power supply voltage.
[0064] The circuit is simple and reliable.
[0065] like Figure 3 As shown, the delay circuit 300 includes a resistor R1 and a capacitor C1.
[0066] They serve together as the enable signal output terminal of the delay circuit 300, connected to the control circuit 100 and the main control circuit 200 to output the enable signal; the first end of the resistor R1 is connected to the second power supply, and the second end of the capacitor C1 is connected to the power ground.
[0067] like Figure 5 As shown, the high level threshold is the working level threshold of the enable terminal EN of the Wi-Fi chip U1 in actual use, and the reset time △t is determined by the values of the resistor R1 and the capacitor C1. The values of the resistor R1 and the capacitor C1 need to be adjusted according to the reset time required by the chip manual.
[0068] The circuit has simple structure, good stability and low cost.
[0069] like Figure 4 As shown, the delay circuit includes a reset chip U3.
[0070] The reset terminal RESET of the reset chip U3 serves as the enable signal output terminal of the delay circuit, and is connected to the control circuit and the main control circuit to output an enable signal; the power supply terminal VCC of the reset chip U3 is connected to the second power supply, and the ground terminal GND of the reset chip U3 is connected to the power ground.
[0071] The reset chip U3 is used as a delay circuit with high control accuracy.
[0072] like Figure 3 and Figure 4 As shown, the switch circuit 400 includes a P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS).
[0073] The gate of PMOS Q1 serves as a switch signal input terminal of the switch circuit 400, and is connected to the control circuit 100 to input a switch signal; the drain of PMOS Q1 serves as a power supply voltage input terminal of the switch circuit 400, and is connected to the power supply voltage; the source of PMOS Q1 serves as a power supply voltage output terminal of the switch circuit 400, and is connected to the main control circuit 200 to output a power supply voltage.
[0074] In addition, the switch circuit 400 may further include a load switch, and the PMOS may also be replaced by a power switch.
[0075] Using PMOS Q1 as a switch has low operating loss and high control accuracy.
[0076] The following is a combination of working principles Figure 3 and Figure 4 As shown for further explanation:
[0077] like Figure 3As shown, when the Wi-Fi chip U1 fails, the Wi-Fi chip U1 outputs a low-level switching signal from the second universal input and output terminal P2.1 of the Wi-Fi chip U1 to the gate of the PMOS Q1, and the PMOS Q1 is turned on, and the power supply voltage input from the drain of the PMOS Q1 is output from the source of the PMOS Q1 to the power supply terminal VCC of the microprocessor U2; the Wi-Fi chip U1 also outputs a high-level trigger signal from the first universal input and output terminal P2.0 of the Wi-Fi chip U1 to the first universal input and output terminal P1.0 of the microprocessor U2, and the microprocessor U2 outputs a low-level interrupt signal from the second universal input and output terminal P1.1 of the microprocessor U2 to the enable terminal EN of the Wi-Fi chip U1 according to the power supply voltage and the high-level trigger signal, the enable terminal EN level is pulled low, the levels of the first end of the resistor R1 and the first end of the capacitor are pulled low, the capacitor starts to charge slowly according to the power supply of the second power supply, and outputs a high-level enable signal after a preset time, pulls up the level of the enable terminal EN, and the Wi-Fi chip U1 resumes normal operation.
[0078] Figure 4 In the embodiment, the microprocessor U2 outputs a low-level interrupt signal from the second general input / output terminal P1.1 of the microprocessor U2 to the enable terminal EN of the Wi-Fi chip U1 according to the power supply voltage and the high-level trigger signal, the enable terminal EN level is pulled low, the reset terminal RESET level of the reset chip U3 is pulled low, and after a preset time, the reset terminal RESET of the reset chip U3 outputs a high-level enable signal, pulling up the level of the enable terminal EN, and other circuit parts are connected with the Figure 3 The working principle is the same and will not be described here.
[0079] An embodiment of the present application further provides an electronic device, which includes the above-mentioned restart circuit.
[0080] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0081] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A restart circuit, characterized in that: The restart circuit includes a control circuit, a main control circuit and a delay circuit; The control circuit is configured to output a trigger signal; The main control circuit is connected to the control circuit and configured to output an interrupt signal based on the trigger signal; The control circuit is further configured to stop working according to the interrupt signal; The delay circuit is connected to the control circuit and the main control circuit, and is configured to charge after the main control circuit outputs the interrupt signal, and output an enable signal after a preset time; The control circuit is further configured to resume operation according to the enable signal.
2. The restart circuit according to claim 1, characterized in that: The control circuit is further configured to output a switch signal in response to a fault of the control circuit itself; and the restart circuit further includes: a switch circuit, connected to the control circuit and the main control circuit, configured to access a power supply voltage and transmit the power supply voltage according to the switch signal; The main control circuit is further configured to output an interrupt signal based on the supply voltage and the trigger signal.
3. The restart circuit according to claim 2, characterized in that: The switch circuit includes a PMOS; The gate of the PMOS serves as a switch signal input terminal of the switch circuit, and is connected to the control circuit to input the switch signal; the drain of the PMOS serves as a power supply voltage input terminal of the switch circuit to input the power supply voltage; The source of the PMOS serves as the power supply voltage output terminal of the switch circuit and is connected to the main control circuit to output the power supply voltage.
4. The restart circuit according to claim 1, characterized in that: The control circuit includes a Wi-Fi chip; The first universal input / output terminal of the Wi-Fi chip serves as a trigger signal output terminal of the control circuit, and is connected to the main control circuit to output the trigger signal; the enable terminal of the Wi-Fi chip serves as an interrupt signal input terminal of the control circuit and an enable signal input terminal of the control circuit, and is connected to the main control circuit and the delay circuit to input the interrupt signal and the enable signal; the second universal input / output terminal of the Wi-Fi chip serves as a switch signal output terminal of the control circuit, and is connected to the switch circuit to output the switch signal.
5. The restart circuit according to claim 1, characterized in that: The main control circuit includes a microprocessor; The first general input / output terminal of the microprocessor is used as a trigger signal input terminal of the main control circuit and is connected to the control circuit to input the trigger signal; The second general input and output terminal of the microprocessor serves as the interrupt signal output terminal of the main control circuit and is connected to the control circuit to output the interrupt signal; the power supply terminal of the microprocessor serves as the power supply voltage terminal of the main control circuit and is connected to the switch circuit to input the power supply voltage.
6. The restart circuit according to claim 1, characterized in that: The delay circuit includes a resistor and a capacitor; The first end of the resistor and the first end of the capacitor serve together as the enable signal output end of the delay circuit, and are connected to the control circuit and the main control circuit to output the enable signal; the first end of the resistor is connected to the second power supply, and the second end of the capacitor is connected to the power ground.
7. The restart circuit according to claim 1, characterized in that: The delay circuit includes a reset chip; The reset end of the reset chip serves as the enable signal output end of the delay circuit, and is connected to the control circuit and the main control circuit to output the enable signal; the power supply end of the reset chip is connected to the second power supply, and the ground end of the reset chip is connected to the power ground.
8. The restart circuit according to any one of claims 1 to 7, characterized in that: Also includes: The power supply circuit is configured to provide working voltage to each functional circuit.
9. A doorbell, characterized in that: The doorbell comprises a restart circuit as claimed in any one of claims 1 to 8.
10. An electronic device, characterized in that: The electronic device comprises the restart circuit according to any one of claims 1 to 8.
