An adaptive reset module
Through the design of the adaptive reset module, the power supply and environmental conditions are monitored, which solves the problem that the reset circuit cannot monitor the button status when the system power is disabled, achieving stable operation of the system and safe power supply, and providing dual protection functions and low power consumption. features, suitable for environmentally sensitive applications.
Patent Information
- Application Number
- CN202410074920.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-01-18
AI Technical Summary
The reset circuit is unable to monitor button status when system power is disabled, resulting in an inability to respond promptly to abnormal conditions, which may result in erroneous results or damage to circuit components.
An adaptive reset module is designed, including output detection unit, transient protection unit, output control unit, status indication unit, temperature and humidity monitoring unit and interrupt output reset unit, through MOSFET transistors, DC-DC converters and voltage regulators and other components, monitor the power supply and environmental conditions, ensure the safety of power supply and respond to user operations in a timely manner.
It achieves stable operation of the system in extreme environments and power supply abnormalities, ensures the safety of power supply, provides dual protection functions, reduces failures, supports low-power operation, and is suitable for environment-sensitive application scenarios.
Smart Images

Figure CN117908656B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic engineering technology, and in particular to an adaptive reset module. Background Art
[0002] The reset circuit is a key component in embedded systems. It is usually used to monitor the power supply voltage and generate a reset signal when a power supply abnormality is detected. It can prevent the circuit from continuing to operate under abnormal conditions, producing erroneous results or damaging circuit components. However, the reset circuit and the system power supply are in one system. If the system power supply is disabled, the button will not be monitored. Summary of the invention
[0003] To solve the above technical problems, the present invention proposes an adaptive reset module to monitor the status of the connected button and control the power supply of the application through MOSFET transistors, DC-DC converters, voltage regulators, etc. to ensure the safety of the power supply voltage; at the same time, when the temperature and humidity are under extreme conditions, the system may require a longer reset delay to ensure that the internal components are not adversely affected.
[0004] To achieve the above object, the present invention provides an adaptive reset module, comprising:
[0005] Output detection unit: used to detect the high threshold voltage of the power supply;
[0006] Transient protection unit: used to provide transient protection for the power supply;
[0007] Output control unit: used to enable and control power supply output;
[0008] Status indication unit: used to indicate the level status;
[0009] Temperature and humidity monitoring unit: used to monitor the temperature and humidity range of the power supply;
[0010] Interrupt output and reset unit: used to start the application or trigger an interrupt during normal operation;
[0011] The output detection unit, the transient protection unit, the output control unit, the state indication unit, the temperature and humidity monitoring unit and the interrupt output and reset unit are connected in sequence.
[0012] Preferably, the output detection unit includes a resistor R8 and a diode D5, one end of the resistor R8 is connected to a power supply VCC, the other end is connected to an anode of the diode D5, and a cathode of the diode D5 is connected to a VCClo pin of the switch controller U2.
[0013] Preferably, the transient protection unit includes a resistor R3, a voltage regulator D4 and a capacitor C1, one end of the resistor R3 is connected to a power supply VCC, the other end of the resistor R3 is connected to a cathode of the voltage regulator D4, an anode of the voltage regulator D4 is grounded, and the capacitor C1 is connected in parallel with the voltage regulator D4.
[0014] Preferably, the output control unit includes a voltage regulator tube D3, a field effect tube Q1, a CPU U3 and a resistor R4, the cathode of the voltage regulator tube D3 is connected to the power supply VCC and the source of the field effect tube Q1, the drain of the field effect tube Q1 is connected to the VDD of the CPU U3 and the common end of the resistors R5, R6 and R7 in parallel, the anode of the voltage regulator tube D3 and the gate of the field effect tube Q1 are connected in parallel to one end of the resistor R4, and the other end of the resistor R4 is connected to the EN pin of the switch controller U2.
[0015] Preferably, the status indicating unit includes a resistor R1, a light emitting diode D1, a resistor R2 and a light emitting diode D2, one end of the resistor R1 is connected to the power supply VCC, the other end of the resistor R1 is connected to the anode of the light emitting diode D1, the cathode of the light emitting diode D1 is simultaneously connected to the EN pin of the switch controller U2 and one end of the resistor R2, the other end of the resistor R2 is connected to the anode of the light emitting diode D2, and the cathode of the light emitting diode D2 is grounded.
[0016] Preferably, when EN enables a low level and is effective, the light emitting diode D1 indicates, and when EN enables a high level and is effective, the light emitting diode D2 indicates.
[0017] Preferably, the temperature and humidity monitoring unit includes a temperature and humidity monitoring device U1 and a capacitor C6, the VCC pin of the temperature and humidity monitoring device U1 is connected to the power supply, the OUT output pin is connected to the I / O port of the CPU U3, the three pins of the temperature and humidity monitoring device U1 are connected to one end of the capacitor C6, and the other end of the capacitor C6 is grounded.
[0018] Preferably, the interrupt output and reset unit includes a switch SW1, a capacitor C2, a switch SW2, a capacitor C3, a resistor R5, a resistor R6 and a resistor R7, wherein one end of the switch SW1 connected in parallel with the capacitor C2 is grounded, and the other end is connected to the PB of the switch controller U2; one end of the switch SW2 connected in parallel with the capacitor C3 is grounded, and the other end is connected to the SR of the switch controller U2; one end of the resistor R5 is connected to the RST reset pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the RST pin; one end of the resistor R6 is connected to the INT pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the INT pin; one end of the resistor R7 is connected to the PBout of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the PBout pin.
[0019] Preferably, the module also includes a Pshold state output indication unit, including a resistor R9 and a light-emitting diode D6, wherein one end of the resistor R9 is connected to the pshold output end of the switch controller U2, the other end of the resistor R9 is connected to the anode of the light-emitting diode D6, and the cathode of the light-emitting diode D6 is grounded.
[0020] Compared with the prior art, the present invention has the following advantages and technical effects:
[0021] (1) The present invention has an environmental monitoring function and can control the reset time according to the ambient temperature;
[0022] (2) The present invention enables safe startup and shutdown of applications with one or two buttons, which helps ensure that the system does not encounter unexpected problems during startup and shutdown;
[0023] (3) When the application becomes unresponsive, for example, when the code is stuck in an infinite loop, the module can reset the processor or disable the power supply to prevent the system from being unresponsive for a long time;
[0024] (5) The present invention monitors the status of the connected buttons so as to respond to the user's operation in a timely manner;
[0025] (6) The present invention can control the power supply of the application program to ensure that the power supply voltage is within a safe range;
[0026] (7) Low power consumption, the power consumption during standby is only 0.6uA. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0028] Figure 1 A schematic diagram of the working process of the adaptive reset module according to an embodiment of the present invention;
[0029] Figure 2 FIG. 4 is a schematic diagram of the structure of an adaptive reset module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] The reset module with dual protection function can provide more comprehensive system protection, reduce potential failures caused by environmental and power problems, and thus improve system availability and performance. Changes in temperature, humidity and power supply voltage may affect the performance and stability of the system. By timely detection and response, the reset module can help maintain the stable operation of the system and reduce failures caused by environmental changes and power problems. Modules with temperature and humidity detection, power detection and reset can monitor the temperature and humidity of the system's working environment. This is very important for some application scenarios that are sensitive to environmental conditions. By detecting temperature and humidity, system failures caused by extreme environmental conditions can be prevented.
[0033] The present invention proposes an adaptive reset module, such as Figure 2 ,include:
[0034] Output detection unit: used to detect the high threshold voltage of the power supply;
[0035] It includes: a resistor R8 and a diode D5, one end of the resistor R8 is connected to the power supply VCC, the other end is connected to the anode of the diode D5, and the cathode of the diode D5 is connected to the VCClo pin of U2.
[0036] At power-up, VCCLO is low when the VCC supply voltage is below the VTH+ threshold. After successful power-up (i.e., during normal operation), VCCLO is low whenever a low voltage is detected.
[0037] Transient protection unit: used to provide transient protection for the power supply;
[0038] It includes: a resistor R3, a voltage regulator tube D4 and a capacitor C1, one end of the resistor R3 is connected to the power supply VCC, the other end of the resistor R3 is connected to the cathode of the voltage regulator tube D4, the anode of the voltage regulator tube D4 is grounded, and the capacitor C1 is connected in parallel with the voltage regulator tube D4. The combination of the resistor R3 and the voltage regulator tube D4 can improve the immunity to high voltage transients.
[0039] Output control unit: used to enable and control power supply output;
[0040] It includes: a voltage regulator tube D3, a field effect tube Q1, U3 and a resistor R4, the cathode of the voltage regulator tube D3 is connected to the power supply VCC and the source of the field effect tube Q1, the drain of the field effect tube Q1 is connected to the VDD of U3 and the common end of the resistors R5, R6 and R7 in parallel, the anode of the voltage regulator tube D3 and the gate of the field effect tube Q1 are connected in parallel and connected to one end of the resistor R4, the other end of the resistor R4 is connected to the EN pin of U2, the other end of the resistor R5 is connected to the RST pin of U2, the other end of the resistor R6 is connected to the INT pin of U2, and the other end of the resistor R7 is connected to the PBout pin of U2.
[0041] Status indication unit: used to indicate the level status;
[0042] It includes: a resistor R1, a light emitting diode D1, a resistor R2 and a light emitting diode D2, one end of the resistor R1 is connected to a power supply VCC, the other end of the resistor R1 is connected to an anode of the light emitting diode D1, the cathode of the light emitting diode D1 is connected to an EN pin of U2 and one end of the resistor R2 at the same time, the other end of the resistor R2 is connected to an anode of the light emitting diode D2, and the cathode of the light emitting diode D2 is grounded.
[0043] When EN enables low level and is effective, the light-emitting diode D1 indicates; when EN enables high level and is effective, the light-emitting diode D2 indicates.
[0044] Temperature and humidity monitoring unit: used to monitor the temperature and humidity range of the power supply;
[0045] It includes: U1 and capacitor C6, the VCC pin of U1 is connected to the power supply, the OUT output pin is connected to the I / O port of U3, the three pins of U1 are connected to one end of the capacitor C6, and the other end of the capacitor C6 is grounded.
[0046] The monitoring humidity range is 0-99.9% RH, and the monitoring temperature range is -40-80℃ to avoid power-on short circuit caused by ambient temperature.
[0047] One end of the switch SW1 connected in parallel with the capacitor C2 is connected to GND, and the other end is connected to PB of U2; one end of the switch SW2 connected in parallel with the capacitor C3 is connected to GND, and the other end is connected to SR.
[0048] When switch SW1 is active, it is used to start the application or trigger an interrupt during normal operation to close the application. When switch SW2 is active, the reset button, when pressed together with PB, can close the application or reset the device regardless of the system response.
[0049] Interrupt output and reset unit: used to start the application or trigger an interrupt during normal operation;
[0050] The interrupt output and reset unit includes a switch SW1, a capacitor C2, a switch SW2, a capacitor C3, a resistor R5, a resistor R6 and a resistor R7, wherein one end of the switch SW1 connected in parallel with the capacitor C2 is grounded, and the other end is connected to the PB of the switch controller U2; one end of the switch SW2 connected in parallel with the capacitor C3 is grounded, and the other end is connected to the SR of the switch controller U2; one end of the resistor R5 is connected to the RST reset pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the RST pin; one end of the resistor R6 is connected to the INT pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the INT pin; one end of the resistor R7 is connected to the PBout of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the PBout pin.
[0051] The module also includes a Pshold state output indication unit, including a resistor R9 and a light-emitting diode D6, wherein one end of the resistor R9 is connected to the pshold output end of the switch controller U2, the other end of the resistor R9 is connected to the anode of the light-emitting diode D6, and the cathode of the light-emitting diode D6 is grounded.
[0052] like Figure 1 , the module is powered on normally, INT remains high before power-on, the Vcc voltage is greater than the Vth + threshold voltage, the edge detection of PB, the PSHOLD pull-down LED is off, press the PB button to start, the start signal is activated, EN enable is valid, RST is activated, and then the processor executes the startup procedure. During initialization, the processor sets the PSHOLD signal to high, otherwise the enable signal will be canceled, cancel the enable output, and thus turn off the system power. PB status, INT status, and VCC undervoltage detection are not monitored until power-on is completed.
[0053] The button interrupts the power supply. If the device is in normal operation (i.e. PSHOLD is high) and the button PB is pressed for more than a certain time, a negative pulse with a minimum width is generated on the INT output. By connecting INT to the processor interrupt input, a safety routine can be executed, and the processor shuts down the power supply by setting PSHOLD low.
[0054] Undervoltage detection, if the VCC voltage drops below the VTH-voltage threshold during normal operation, the INT output will be pulled low and the enable output will be deactivated. If the system is unresponsive, the PB and SR buttons can be pressed simultaneously for a certain time, which will activate the reset output RST and reset the processor or disable the power supply through the EN signal. If the enable output is deactivated, EN is invalid and the module will enter a low-power standby mode. In standby mode, only the falling edge of the PB input is detected.
[0055] The adaptive reset module enables safe startup and shutdown of applications through one or two buttons. It can reset the processor or disable the power supply when the application is unresponsive. It is suitable for a variety of devices such as terminals, audio and video players, motor controllers, etc. The module monitors the status of the connected buttons and controls the power supply of the application through MOSFET transistors, DC-DC converters, regulators, etc. to ensure the safety of the power supply voltage. In addition, it also supports environmental monitoring, setting different times according to different ambient temperatures to protect the device to a greater extent. The module has low power consumption, with a current consumption of only 6μA during normal operation and only 0.6μA during standby. The tiny package gives it better integration and installation flexibility in space-constrained applications, and is particularly suitable for reliability testing applications.
[0056] The module of the present invention is independent of the embedded system. When the system is powered on, it not only detects the stability of the power supply voltage, but also monitors the environmental conditions in real time. If the temperature and humidity are under extreme conditions, the system may require a longer reset delay to ensure that the internal components are not adversely affected.
[0057] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An adaptive reset module, characterized in that: include: Output detection unit: used to detect the high threshold voltage of the power supply; Transient protection unit: used to provide transient protection for the power supply; Output control unit: used to enable and control power supply output; Status indication unit: used to indicate the level status; Temperature and humidity monitoring unit: used to monitor the temperature and humidity range of the power supply; Interrupt output and reset unit: used to start the application or trigger an interrupt during normal operation; The output detection unit, the transient protection unit, the output control unit, the state indication unit, the temperature and humidity monitoring unit and the interrupt output and reset unit are connected in sequence; The output detection unit includes a resistor R8 and a diode D5, one end of the resistor R8 is connected to the power supply VCC, the other end is connected to the anode of the diode D5, and the cathode of the diode D5 is connected to the VCClo pin of the switch controller U2; The transient protection unit includes a resistor R3, a voltage regulator tube D4 and a capacitor C1, one end of the resistor R3 is connected to a power supply VCC, the other end of the resistor R3 is connected to a cathode of the voltage regulator tube D4, the anode of the voltage regulator tube D4 is grounded, and the capacitor C1 is connected in parallel with the voltage regulator tube D4; The output control unit includes a voltage regulator tube D3, a field effect tube Q1, a CPU U3 and a resistor R4, the cathode of the voltage regulator tube D3 is connected to the power supply VCC and the source of the field effect tube Q1, the drain of the field effect tube Q1 is connected to the VDD of the CPU U3 and the common end of the resistors R5, R6 and R7 in parallel, the anode of the voltage regulator tube D3 and the gate of the field effect tube Q1 are connected in parallel and then connected to one end of the resistor R4, and the other end of the resistor R4 is connected to the EN pin of the switch controller U2; The state indicating unit comprises a resistor R1, a light emitting diode D1, a resistor R2 and a light emitting diode D2, one end of the resistor R1 is connected to the power supply VCC, the other end of the resistor R1 is connected to the anode of the light emitting diode D1, the cathode of the light emitting diode D1 is connected to the EN pin of the switch controller U2 and one end of the resistor R2, the other end of the resistor R2 is connected to the anode of the light emitting diode D2, and the cathode of the light emitting diode D2 is grounded; When EN enables a low level and is effective, the light emitting diode D1 indicates, and when EN enables a high level and is effective, the light emitting diode D2 indicates; The temperature and humidity monitoring unit includes a temperature and humidity monitoring device U1 and a capacitor C6. The VCC pin of the temperature and humidity monitoring device U1 is connected to the power supply, the OUT output pin is connected to the I / O port of the CPU U3, the three pins of the temperature and humidity monitoring device U1 are connected to one end of the capacitor C6, and the other end of the capacitor C6 is grounded, wherein the monitoring humidity range is 0-99.9% RH, and the monitoring temperature range is -40-80°C; The interrupt output and reset unit includes a switch SW1, a capacitor C2, a switch SW2, a capacitor C3, a resistor R5, a resistor R6 and a resistor R7, wherein one end of the switch SW1 connected in parallel with the capacitor C2 is grounded, and the other end is connected to the PB of the switch controller U2; one end of the switch SW2 connected in parallel with the capacitor C3 is grounded, and the other end is connected to the SR of the switch controller U2; one end of the resistor R5 is connected to the RST reset pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the RST pin; the resistor One end of R6 is connected to the INT pin of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the INT pin; one end of resistor R7 is connected to the PBout of the switch controller U2, and the other end is connected to the drain of the field effect transistor Q1, serving as a pull-up resistor of the PBout pin; wherein, when switch SW1 is valid, it is used to start the application or trigger an interrupt during normal operation to close the application; when switch SW2 is valid, the reset button, when pressed together with PB, closes the application or resets the device, regardless of the system response.
2. The adaptive reset module according to claim 1, characterized in that: The module also includes a Pshold state output indication unit, including a resistor R9 and a light emitting diode D6, wherein one end of the resistor R9 is connected to the pshold output end of the switch controller U2, the other end of the resistor R9 is connected to the anode of the light emitting diode D6, and the cathode of the light emitting diode D6 is grounded.
Citation Information
Patent Citations
Protection-access-included power supply circuit for communication module in environmental temperature and humidity monitoring system
CN106411123A
Temperature and humidity detection device and control circuit thereof
CN109460090A
Intelligent control circuit, charger, leakage protector and intelligent socket
CN109792217A
Power supply module with service life monitoring function
CN215415805U
Temperature control circuit
US20110160931A1
