Key reset control circuit and method
Patent Information
- Application Number
- CN202610645753.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-12
- Publication Date
- 2026-09-22
AI Technical Summary
[0002]针对现有技术存在的复用按键复位电路复杂且持续按键易导致二次复位的问题,本申请通过一种按键复位控制电路及方法,利用储能元件放电延时触发复位并在复位后受控快速充电恢复状态,实现简化电路结构并屏蔽持续按键信号防止二次复位的目的
[0023]有益效果:本申请通过复位信号处理单元基于触发信号进行放电延时输出有效复位信号,并在主控单元复位重启后受控地对复位信号处理单元进行快速充电使有效复位信号恢复至无效复位信号,且快速充电的速率大于放电延时的放电速率,利用充电与放电的速率差,在按键持续按住的情况下,使得复位信号处理单元迅速脱离复位阈值区间,从而屏蔽了持续按键带来的二次触发信号,无需增加额外的提示告警功能,既简化了电路设计、降低了成本,又彻底避免了因用户按键时间过长导致的系统二次复位问题。同时,通过限定充电回路的充电时间长度小于主控单元的复位时间长度,确保了在主控单元复位完成前复位信号已恢复至无效状态,进一步保障了防二次复位的可靠性。
Smart Images

Figure CN122801940A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic circuit control, specifically to a key reset control circuit and method. Background Technology Currently, in electronic products controlled by microcontroller units (MCUs), when a product crashes and needs to be reset, the reset pin of the MCU chip is typically pulled low. Since the MCU reset time is very short and the reset and power-on pins are usually separate, users often need to add a separate reset button when using a physical button. However, for many products, it's not possible to add an extra button for reset, necessitating the integration of the reset function with other function buttons onto a single button. Existing solutions typically define the reused button as a long-press reset, requiring additional logic and control circuitry, complicating the design and increasing product cost. Furthermore, if the product lacks additional warning or alarm functions, users might continuously press and hold the button, causing the reset signal to not be quickly released, resulting in a secondary system reset and affecting restarting. Adding additional warning or alarm functions further increases product cost. Summary of the Invention
[0002] To address the problems of complex multiplexed button reset circuits and the tendency for continuous button presses to cause secondary resets in existing technologies, this application proposes a button reset control circuit and method. This method utilizes an energy storage element to trigger a reset by discharging and delaying the reset, and then rapidly charges the device under controlled conditions to restore the state after the reset. This simplifies the circuit structure and shields the continuous button press signal to prevent secondary resets.
[0003] To achieve the above objectives, this application adopts the following technical solution: A button reset control circuit includes: a button triggering unit configured to output a trigger signal in response to a button operation; a reset signal processing unit connected to the button triggering unit configured to perform a discharge delay based on the trigger signal and output a valid reset signal to a main control unit; and a charging control unit connected to the reset signal processing unit configured to controllably perform rapid charging on the reset signal processing unit after the main control unit is reset and restarted, so that the valid reset signal is restored to an invalid reset signal, wherein the rapid charging rate is greater than the discharge rate of the discharge delay.
[0004] The above solution rapidly charges the reset signal processing unit in a controlled manner after a reset and restart, so that the effective reset signal is quickly restored to the invalid reset signal. Moreover, the rapid charging rate is greater than the discharge rate of the discharge delay, so that the reset signal can be quickly cut off even when the button is continuously pressed. This achieves the effect of simplifying the reset circuit structure and completely shielding the continuous button signal to prevent secondary reset.
[0005] In some embodiments, the reset signal processing unit includes an energy storage element and a discharge circuit; the discharge circuit is configured to be turned on when the button triggering unit outputs the trigger signal, so that the energy storage element discharges for a delay until a reset threshold is reached, so as to output the valid reset signal.
[0006] The above scheme achieves precise control of the reset duration and outputs an effective reset signal by utilizing the physical process of reaching the reset threshold through the cooperation of energy storage elements and discharge circuits and the discharge delay.
[0007] In some embodiments, the charging control unit includes a charging circuit; the charging circuit is configured to be turned on by the main control unit after a reset and restart, so as to charge the reset signal processing unit.
[0008] The above solution achieves the controlled recovery of the reset signal processing unit's state by controlling the charging circuit to be turned on after a reset and restart, thus providing a control basis for disabling continuous button presses.
[0009] In some embodiments, the charging time of the charging circuit is less than the reset time of the main control unit.
[0010] The above solution ensures that the reset signal is restored to an invalid state before the main control unit completes its reset by limiting the charging time to less than the reset time of the main control unit, thus achieving the effect of completely shielding the continuous button signal and avoiding secondary reset.
[0011] In some embodiments, a judgment unit is further included, connected to the reset signal processing unit, configured to judge whether the signal output by the reset signal processing unit reaches a preset threshold, and output the valid reset signal when the preset threshold is reached.
[0012] The above solution achieves the effect of adapting to the reset signal edge requirements of different main control units by using a judgment unit to perform precise threshold judgment on the signal.
[0013] In some embodiments, the button triggering unit is also connected to the power-on signal terminal of the main control unit and configured to output a power-on trigger signal to the power-on signal terminal in response to the button operation.
[0014] The above solution connects the power-on signal terminal to the button trigger unit simultaneously, achieving the effect of using the same button for both power-on and reset functions, further simplifying the circuit design.
[0015] In some embodiments, the discharge circuit includes a discharge resistor, and the energy storage element includes a capacitor; the button triggering unit is connected to the discharge resistor via a unidirectional conduction element.
[0016] The above solution isolates the button trigger signal from other signals by using a unidirectional conductive element, thus achieving the effect of button triggering discharge without affecting the normal operation of other functions.
[0017] In addition, this application also provides a button reset control method, including: responding to a button operation, performing a discharge delay and outputting a valid reset signal; a main control unit performing a reset restart based on the valid reset signal; and performing controlled fast charging after the reset restart to restore the valid reset signal to an invalid reset signal, wherein the fast charging rate is greater than the discharge rate of the discharge delay.
[0018] The above solution restores the signal state through controlled fast charging after a reset and restart, with the charging rate exceeding the discharging rate. This achieves the effect of blocking continuous button signals from the logical perspective to prevent secondary resets.
[0019] In some embodiments, the charging time of the fast charging is less than the reset time of the main control unit that performs the reset and restart.
[0020] The above solution ensures that the signal is restored before the reset is completed by limiting the charging time to be shorter than the reset time on the method side, thus achieving the effect of completely shielding the continuous key press signal in the method logic.
[0021] In addition, this application also provides an electronic device, including a main control unit and a button reset control circuit as described above.
[0022] The above solution applies a button reset control circuit to electronic devices, achieving the effect of preventing secondary resets when the electronic device reuses button reset and keeping the circuit structure simple.
[0023] Beneficial Effects: This application utilizes a reset signal processing unit to output a valid reset signal after a discharge delay based on a trigger signal. After the main control unit resets and restarts, the reset signal processing unit is rapidly charged in a controlled manner, restoring the valid reset signal to an invalid reset signal. The rapid charging rate is greater than the discharge rate during the discharge delay. Utilizing the rate difference between charging and discharging, when a button is continuously pressed, the reset signal processing unit quickly moves out of the reset threshold range, thus shielding against secondary trigger signals caused by continuous button presses. This eliminates the need for additional warning or alarm functions, simplifying circuit design, reducing costs, and completely preventing secondary system resets caused by prolonged user button presses. Furthermore, by limiting the charging time of the charging circuit to be shorter than the reset time of the main control unit, it ensures that the reset signal is restored to an invalid state before the main control unit completes its reset, further guaranteeing the reliability of the anti-secondary reset mechanism. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein: Figure 1 This is a circuit diagram of Embodiment 1 of the button reset control circuit provided in this application; Figure 2 This is a circuit diagram of Embodiment 2 of the button reset control circuit provided in this application; Figure 3 This is a circuit diagram of another embodiment of the button reset control circuit provided in this application; Figure 4 This is a circuit diagram of Embodiment 3 of the button reset control circuit provided in this application; Figure 5 This is a circuit diagram of Embodiment 4 of the button reset control circuit provided in this application; Figure 6 This is a circuit diagram of Embodiment 5 of the button reset control circuit provided in this application; Figure 7 This is a circuit diagram of an application embodiment 1 of the button reset control circuit provided in this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0026] The terms "first," "second," and "third" used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0028] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.
[0030] Example 1 like Figure 1 As shown, this embodiment provides a button reset control circuit. The circuit mainly includes a button triggering unit 10, a reset signal processing unit 20, and a charging control unit 30.
[0031] The button trigger unit 10 is configured to output a trigger signal in response to a button operation. Specifically, the button trigger unit 10 can be implemented by a mechanical button, a touch button, or an equivalent switching element. When the user performs a button operation such as pressing or holding down, the button trigger unit 10 generates a change in level state as a trigger signal output. For example, the trigger signal can be a falling edge signal that changes from high to low, or a rising edge signal that changes from low to high, depending on the logic design requirements of the subsequent circuit.
[0032] The reset signal processing unit 20, connected to the key triggering unit 10, is configured to perform a discharge delay based on the trigger signal and output a valid reset signal to the main control unit 40. Specifically, when the reset signal processing unit 20 receives the trigger signal output by the key triggering unit 10, the energy stored inside it begins to be released, i.e., it enters the discharge process. Since the discharge process is not completed instantaneously but requires a time span, a discharge delay is formed. During the discharge delay, the electrical parameters output by the reset signal processing unit 20 gradually change. When the electrical parameters cross the threshold that the main control unit 40 considers a reset condition, the reset signal processing unit 20 outputs a valid reset signal to the main control unit 40, thereby notifying the main control unit 40 to execute the reset action. This discharge delay mechanism ensures that short-term key bounce or accidental touch will not easily trigger a reset; only valid key operations lasting for a certain period of time can ultimately generate a valid reset signal.
[0033] The charging control unit 30, connected to the reset signal processing unit 20, is configured to controllably perform rapid charging on the reset signal processing unit 20 after the main control unit 40 resets and restarts, thereby restoring the valid reset signal to an invalid reset signal. The rapid charging rate is greater than the discharge rate of the discharge delay. Specifically, after receiving a valid reset signal, the main control unit 40 begins a reset and restart operation. At a specific moment during or after the reset and restart process, the main control unit 40 sends a control command to the charging control unit 30. Based on this control command, the charging control unit 30 intervenes and begins charging the reset signal processing unit 20. Because the charging process is controlled and the rate is configured to be greater than the discharge rate of the aforementioned discharge delay, the electrical parameters of the reset signal processing unit 20 change in the opposite direction at an extremely rapid speed, quickly moving away from the threshold range for generating a valid reset signal, thus rapidly restoring the originally output valid reset signal to an invalid reset signal. This embodiment establishes a core causal chain to shield against continuous button presses and prevent secondary resets through the aforementioned mechanism: When the user continuously presses and holds the button, although the button triggering unit 10 continuously outputs trigger signals to attempt to keep the reset signal processing unit 20 in a discharging state, the charging control unit 30 intervenes under control, and the charging rate is much greater than the discharging rate, so the charging effect dominates. The reset signal processing unit 20 can be forcibly pulled back to an invalid reset signal state in a very short time. This means that after the main control unit 40 is reset and restarted, the valid reset signal on its reset pin is quickly revoked. Even if the button is still pressed, the main control unit 40 will not detect a valid reset signal again, thereby completely cutting off the secondary reset path caused by continuous button presses and ensuring the normal startup and operation of the system.
[0034] Example 2 Based on Embodiment 1, this embodiment further elaborates on the internal structure and cooperative logic of the reset signal processing unit 20 and the charging control unit 30.
[0035] like Figure 2 As shown, the reset signal processing unit 20 includes an energy storage element 21 and a discharge circuit 22. The energy storage element 21 is a component capable of storing electrical energy and releasing it when needed, such as a capacitor C1, a battery, or a supercapacitor C1. The discharge circuit 22 is a conductive path that provides a discharge path for the energy storage element 21. The discharge circuit 22 is configured to conduct when the button trigger unit 10 outputs a trigger signal, causing the energy storage element 21 to discharge for a delay until the reset threshold is reached, thereby outputting a valid reset signal.
[0036] Specifically, when the button triggering unit 10 responds to the user's button operation and outputs a trigger signal, the trigger signal will control the discharge circuit 22 to enter the conduction state, at which time the energy stored in the energy storage element 21 will begin to be released through the discharge circuit 22.
[0037] Because there is usually an impedance limitation in the discharge circuit 22, the discharge process of the energy storage element 21 is not completed instantaneously, but rather presents a delayed process in which the voltage or current gradually changes. When the electrical parameters at both ends of the energy storage element 21 decrease or increase to the reset threshold required by the main control unit 40 as the discharge process continues, the reset signal processing unit 20 outputs a valid reset signal.
[0038] The mechanism of delay generated by the energy storage element 21 and the discharge circuit 22 ensures that the reset action can only be triggered after a period of continuous button press, effectively shielding against instantaneous accidental touch operation.
[0039] like Figure 3 As shown, the charging control unit 30 includes a charging circuit 31. The charging circuit 31 is configured to be turned on after a reset and restart, controlled by the main control unit 40, to charge the reset signal processing unit 20.
[0040] Specifically, the charging circuit 31 is a conductive path that provides a fast charging path for the energy storage element 21. Its circuit impedance is typically configured to be less than that of the discharging circuit 22, thus providing the hardware foundation for fast charging. When the main control unit 40 receives a valid reset signal and begins to execute a reset and restart operation, the main control unit 40 will output a control signal at a specific moment during the reset and restart process. This control signal acts on the charging circuit 31 to make it conduct, thereby rapidly injecting energy from the external power supply into the energy storage element 21, realizing fast charging of the reset signal processing unit 20.
[0041] This embodiment achieves the controlled recovery of the state of the reset signal processing unit 20 by designing the charging circuit 31 to be turned on after reset and restart by the main control unit 40, thus providing a solid control foundation for shielding continuous button presses.
[0042] Furthermore, the charging time of the charging circuit 31 is less than the reset time of the main control unit 40. The charging time refers to the time required after the charging circuit 31 is turned on to charge the energy storage element 21 from its discharged electrical parameter state until the valid reset signal is restored to an invalid reset signal; the reset time refers to the time required for the main control unit 40 to start executing the reset operation from receiving the valid reset signal until the reset is completed and the program begins normal execution.
[0043] Specifically, this embodiment ensures that the reset signal is restored to an invalid state before the main control unit 40 completes the reset by configuring the charging time to be shorter than the reset time. If the charging time is longer than the reset time of the main control unit 40, it means that when the main control unit 40 completes the reset and restarts detecting the reset pin status, the energy storage element 21 has not yet been charged to leave the reset threshold range. At this time, the reset signal processing unit 20 still outputs a valid reset signal, which will cause the main control unit 40 to detect a valid reset signal again after completing one reset, thereby triggering a secondary reset and causing the system to fall into a predicament of repeated resets or failure to start normally.
[0044] Therefore, the constraint that the charging time is shorter than the reset time is a necessary condition to ensure that the signal is restored before the reset is completed and to completely shield the continuous button signal to avoid secondary reset. It has irreplaceable technical significance.
[0045] Example 3 like Figure 4 As shown, based on Embodiment 1, this embodiment further expands the description of the structure of the button reset control circuit. The button reset control circuit of this embodiment also includes a judgment unit 50, connected to the reset signal processing unit 20, configured to judge whether the signal output by the reset signal processing unit 20 reaches a preset threshold, and output a valid reset signal when the preset threshold is reached.
[0046] Specifically, the judgment unit 50 is a functional module that accurately identifies and digitizes the analog or gradual electrical signal output by the reset signal processing unit 20. In hardware implementation, the judgment unit 50 can be implemented using a voltage comparator M1. The signal output by the reset signal processing unit 20 is input to the positive input terminal of the comparator M1, and a stable reference voltage is input to the negative input terminal of the comparator M1 as a preset threshold. When the signal output by the reset signal processing unit 20 decreases or rises with the discharge delay and crosses the preset threshold, the output terminal of the comparator M1 undergoes a level flip, thereby outputting a valid reset signal. It should be understood that the judgment unit 50 is not limited to a single voltage comparator M1; it can also be implemented using logic gate circuits with threshold judgment functions, an analog-to-digital converter integrated within the microcontroller unit combined with software judgment logic, or a reset monitoring module in a dedicated power management chip, etc., as long as it can compare the signal with the preset threshold and generate a rising edge or level flip output when the threshold is reached.
[0047] This embodiment introduces a judgment unit 50 to provide a clear action boundary for the gradual signal output by the reset signal processing unit 20, ensuring that the final reset signal input to the main control unit 40 has a steep edge characteristic. This design is particularly suitable for the main control unit 40, which has strict requirements for the edge of the reset signal. If some main control units 40 receive a slowly changing reset signal, it may cause abnormal initialization of their internal state machine, thus failing to reliably perform a reset and restart. The judgment unit 50 ensures that a sharp-edge valid reset signal is output to the main control unit 40 only when the discharge delay truly meets the reset condition, improving the reliability and accuracy of the reset action.
[0048] It should also be noted that the judgment unit 50 is not indispensable in all application scenarios. If the main control unit 40 does not have high requirements for the reset signal edge and can tolerate slowly changing levels as reset trigger conditions, the judgment unit 50 can be omitted, and the reset signal processing unit 20 can directly output the signal after discharge delay to the main control unit 40. This omitting design establishes a layer of defense that allows the scope of protection of this application to cover not only complex circuits with precise threshold judgments but also simplified circuits that directly trigger reset using analog delay signals. Users can flexibly choose whether to set up the judgment unit 50 based on the characteristics and cost requirements of the actual main control unit 40.
[0049] Example 4 like Figure 5 As shown, based on Embodiment 1, this embodiment further expands the explanation of the connection relationship and functional multiplexing logic of the button trigger unit 10. The button trigger unit 10 is also connected to the power-on signal terminal of the main control unit 40, configured to output a power-on trigger signal to the power-on signal terminal in response to a button operation. Specifically, the button trigger unit 10 is not only electrically connected to the reset signal processing unit 20 in its physical structure, but also connected to the power-on signal terminal of the main control unit 40 through another signal path. When the user performs a button operation, the level change generated by the button trigger unit 10 is simultaneously transmitted to two objects: one is sent as a trigger signal to the reset signal processing unit 20, and the other is sent as a power-on trigger signal to the power-on signal terminal of the main control unit 40. This dual-output connection topology allows a single button operation to be perceived by different functional modules of the system simultaneously.
[0050] To achieve harmonious reuse of the power-on and reset functions on the same button without logical conflicts, this embodiment distinguishes different functional intentions by the duration of button press. A short press triggers the power-on signal, while a long press triggers a discharge delay to achieve reset, realizing the reuse of a single button and further simplifying circuit design. Specifically, when the system is powered off, if the user presses the button briefly, the button trigger unit 10 outputs a brief power-on trigger signal to the power-on signal terminal of the main control unit 40. The main control unit 40 detects this valid level and performs the power-on action. At this time, because the press time is extremely short, the discharge delay process of the reset signal processing unit 20 has not yet reached the reset threshold, so no reset action is triggered. However, when the system is frozen or requires a forced restart, if the user presses and holds the button for a long time, the discharge delay process of the reset signal processing unit 20 continues until it eventually reaches the reset threshold, thereby outputting a valid reset signal to trigger the main control unit 40 to reset and restart. It should be understood that the time limits for short press and long press can be flexibly configured according to the system requirements of specific products. For example, a short press can be defined as a press of less than two seconds, and a long press can be defined as a press of more than five seconds.
[0051] Furthermore, the specific implementation of the button triggering unit 10 is not limited to traditional mechanical tactile buttons. It can also be a touch-sensitive button, a membrane button, or an electronic component with similar switch characteristics, as long as it can generate a corresponding level change signal under the user's operation.
[0052] This embodiment utilizes a function reuse mechanism based on press duration, eliminating the need for an additional independent reset button on the product and the introduction of complex logic control chips. By simply using the existing power-on button in conjunction with the discharge delay and controlled fast charging mechanism, the dual functions of power-on and reset are achieved, greatly simplifying the complexity of circuit design, reducing material costs, and saving external structural space of the product.
[0053] Example 5 like Figure 6As shown, based on Embodiment 2, this embodiment further specifies the underlying hardware structure of the reset signal processing unit 20 and the button triggering unit 10. The discharge circuit 22 includes a discharge resistor R1, and the energy storage element 21 includes a capacitor C1. Specifically, the capacitor C1, as a typical and extremely low-cost energy storage element 21, has very stable charging and discharging characteristics that are easy to control. By selecting capacitors C1 with different capacitance values, the discharge delay time span can be flexibly adjusted. The discharge resistor R1, together with the capacitor C1, forms a classic RC discharge network. The resistance value of the discharge resistor R1 directly determines the magnitude of the discharge current of the capacitor C1, and thus determines the discharge delay rate. When the button triggering unit 10 outputs a trigger signal, the circuit containing the discharge resistor R1 is turned on, and the charge stored in the capacitor C1 is slowly released through the discharge resistor R1. The voltage across the capacitor C1 gradually decreases over time. When the voltage drops to the reset threshold identified by the main control unit 40 or the judgment unit 50, a valid reset signal is output. It should be understood that the energy storage element 21 is not limited to the capacitor C1, but can also be a supercapacitor C1 or other devices with charge storage capabilities; the discharge circuit 22 is not limited to a single discharge resistor R1, but can also be a discharge network containing multiple impedance elements, as long as it can achieve the function of controlling the discharge rate.
[0054] The button trigger unit 10 is connected to the discharge resistor R1 via a unidirectional conducting element 60. Specifically, the unidirectional conducting element 60 is an electronic component that allows current to flow in one direction while blocking it in the opposite direction; the most typical implementation is a diode. In the topology, one end of the button trigger unit 10 is connected to the anode of the unidirectional conducting element 60, and the cathode of the unidirectional conducting element 60 is connected to the connection node between the discharge resistor R1 and the capacitor C1. When the user performs a button operation, the button trigger unit 10 pulls down the anode potential of the unidirectional conducting element 60. Since the unidirectional conducting element 60 is forward conducting, the potential of the connection node between the discharge resistor R1 and the capacitor C1 is also pulled down, allowing the capacitor C1 to discharge through the discharge resistor R1.
[0055] This embodiment achieves crucial signal isolation by introducing a unidirectional conduction element 60: ensuring that the discharge resistor R1 is pulled low to discharge capacitor C1 when the button is triggered, while preventing the high potential of the reset signal processing unit 20 or the charging control unit 30 from flowing back into the button triggering unit 10 or the power-on signal terminal of the main control unit 40. Without this unidirectional conduction element 60, when the charging control unit 30 intervenes to rapidly charge capacitor C1, the high potential at the end of capacitor C1 would be directly conducted to the button triggering unit 10, and then to the power-on signal terminal of the main control unit 40. This could cause the power-on signal terminal of the main control unit 40 to be abnormally pulled high or receive excessive current, interfering with the power-on logic and potentially damaging the pins of the main control unit 40.
[0056] Therefore, the unidirectional conducting element 60 acts like a one-way valve, ensuring smooth transmission of the trigger signal while completely blocking reverse interference during reset and charging, greatly improving the reliability and safety of the circuit. As another optional implementation, in addition to a common diode, the unidirectional conducting element 60 can also use a Schottky diode to reduce the forward voltage drop, or a transistor circuit with switching characteristics to achieve equivalent unidirectional isolation, adapting to application scenarios with different voltage levels and cost requirements.
[0057] Example 6 This embodiment provides a button reset control method, which describes the technical solution of this application from the perspective of timing logic on the method side. It corresponds to the circuit-side structural description in the previous embodiment, thus constructing a complete protection system.
[0058] This method mainly includes the following steps: In step S100, in response to a button press, a discharge delay is performed and a valid reset signal is output. Specifically, when the user presses or holds a button, the system detects the operation and activates its internal discharge delay mechanism. The discharge process is not instantaneous but proceeds slowly at a certain discharge rate. This delay design effectively filters out interference signals caused by button bounce or short-term accidental touches. Only when the button press continues for a sufficiently long time, allowing the discharge process to reach the preset reset conditions, will the system output a valid reset signal, thereby triggering subsequent reset actions.
[0059] In step S200, the main control unit 40 performs a reset and restart based on a valid reset signal. Specifically, after receiving the valid reset signal output in step S100, the main control unit 40's internal processor state machine begins initialization operations, clearing the current running state and preparing to reload the system program. This reset and restart process requires a fixed time span, namely the reset time length of the main control unit 40. During this period, the main control unit 40 cannot respond to external interrupts or normal business logic.
[0060] In step S300, after a reset and restart, a controlled fast charging process is initiated to restore the valid reset signal to an invalid reset signal. The fast charging rate is greater than the discharge rate during the discharge delay. Specifically, when the main control unit 40 begins the reset and restart operation, the system initiates a controlled fast charging mechanism. This fast charging mechanism is not continuous but only intervenes during or after the main control unit 40's reset and restart process, replenishing the energy storage components involved in the aforementioned discharge delay. Because the fast charging rate is configured to be greater than the discharge rate during the discharge delay, the charging effect dominates the competition. This means that even if the user continues to hold down the button, attempting to maintain the discharge state, fast charging can still forcibly pull the system back to its original state at a much faster speed. Through this rate difference design, the system can quickly restore the originally output valid reset signal to an invalid reset signal in a very short time, thereby completely shielding the risk of secondary triggering caused by continuous button presses from a logical perspective, ensuring that the main control unit 40 will not re-enter the reset loop due to the button not being released.
[0061] Furthermore, in step S300, the charging time of the fast charging is less than the reset time of the main control unit 40 performing the reset and restart. Specifically, the charging time refers to the time required for the fast charging mechanism to restore the system state from the reset threshold range after discharge to a safe invalid state. Configuring the charging time to be less than the reset time of the main control unit 40 is a necessary condition to ensure that the signal has been restored before the reset is completed. If the charging time is greater than the reset time of the main control unit 40, then when the main control unit 40 completes the reset and restart and begins to detect the reset pin status, the charging process has not yet been completed, the valid reset signal has not yet been restored to the invalid reset signal, and the main control unit 40 will detect the valid reset signal again, thus triggering a secondary reset. Therefore, the charging time must be less than the reset time to ensure that the reset signal has been completely canceled before the main control unit 40 completes the reset and restores the pin detection function, thus eliminating the possibility of a secondary reset from a timing logic perspective.
[0062] By coordinating the timing of the above steps, this embodiment constructs a logical closed loop of slow discharge triggering and controlled fast recovery from the method side, achieving the beneficial effect of preventing secondary reset caused by continuous button presses without additional alarm prompts.
[0063] Example 7 This embodiment provides an electronic device. The electronic device includes a main control unit 40 and a button reset control circuit as described in any one of embodiments 1 to 5. Specifically, the electronic device refers to any electronic product that requires a button reset operation to cope with system crashes or abnormal states, including but not limited to smartwatches, smartphones, tablets, IoT gateways, industrial sensor nodes, or portable medical monitors. In these electronic devices, the main control unit 40, as the core processing module, is typically implemented by a microcontroller or microprocessor chip, responsible for the logical operations and function scheduling of the entire system. The button reset control circuit, as a peripheral hardware protection mechanism, works in conjunction with the main control unit 40 to ensure that the device can be forcibly restored to its initial working state through physical button operation when encountering software crashes or logical instability.
[0064] In this embodiment, the interaction logic between the main control unit 40 and the button reset control circuit constitutes the core closed loop of product-level anti-secondary reset. On one hand, the reset pin of the main control unit 40 is connected to the output terminal of the button reset control circuit, configured to receive a valid reset signal output by the button reset control circuit, and perform a reset restart operation after receiving the valid reset signal. On the other hand, the control pin of the main control unit 40 is connected to the charging control unit 30 of the button reset control circuit, configured to output a control signal after the main control unit 40 resets and restarts, so as to control the charging control unit 30 to quickly charge the reset signal processing unit 20, so that the valid reset signal is quickly restored to the invalid reset signal. It should be understood that although the above interaction description focuses on the implementation of the reset function, in the scenario of multi-functional multiplexing, the power-on signal terminal of the main control unit 40 is also connected to the button trigger unit 10 of the button reset control circuit to realize the dual functions of power-on and multiplexing. This embodiment integrates the button reset control circuit into the electronic device, enabling the device to quickly cut off the reset signal after a reset and restart when faced with extreme operations such as continuous long-pressing of the button by the user. This is due to the difference in discharge rate between slow discharge and fast charging rate, completely eliminating the risk of repeated system resets or failure to start normally, and greatly improving the reliability of the electronic device and the user experience.
[0065] Comparative Example 1 To more clearly illustrate the irreplaceable nature of the rate and time constraints in this application, this comparative example provides an analogy with a contrasting scenario.
[0066] Scenario 1: If the charging rate of the charging control unit 30 is less than or equal to the discharge rate of the discharge delay. Specifically, when the user holds down the button, the button trigger unit 10 continuously outputs a trigger signal, and the reset signal processing unit 20 is in a continuous discharge trend. At this time, although the main control unit 40 intervenes in the charging process under control after a reset and restart, the charging rate fails to exceed the discharge rate, and the charging effect cannot dominate the competition with the discharge effect. In this scenario, the electrical parameters of the reset signal processing unit 20 cannot be forcibly pulled back to a safe range, and charging cannot quickly restore the signal of the reset signal processing unit 20 to an invalid state. As the discharge process continues or dominates, the signal output by the reset signal processing unit 20 will remain within the threshold range of a valid reset signal, causing the main control unit 40 to detect a valid reset signal again after resetting, leading to serious consequences such as repeated system resets or failure to start normally.
[0067] Scenario 2: If the charging time of charging circuit 31 is greater than the reset time of main control unit 40. Specifically, from receiving a valid reset signal to completing internal initialization and restarting the detection of the reset pin status, the main control unit 40 needs a certain reset time. If the time required for charging circuit 31 to charge and restore energy storage element 21 exceeds this reset time, it means that when the main control unit 40 has completed the reset and restart and started detecting the pin status, the charging process is not yet complete, and the electrical parameters of energy storage element 21 have not yet left the reset threshold range. At this time, the reset signal processing unit 20 still outputs a valid reset signal to the main control unit 40, and the main control unit 40 will immediately capture the valid reset signal again, thus mistakenly believing that the user has triggered the reset operation again. This will also cause the system to fall into a dead loop of repeated resets, and the product will not be able to enter the working state normally.
[0068] The above comparative analysis clearly concludes that the charging rate must be greater than the discharging rate, and the charging time must be less than the reset time of the main control unit 40. These two parameters are interrelated and cannot be arbitrarily changed. Only under the premise of satisfying the above rate and time constraints can the system, in the extreme case of continuous button pressing, use the forced pull-back effect of fast charging to completely cut off the reset signal before the main control unit 40 completes its reset, thereby effectively shielding the risk of secondary triggering caused by continuous button pressing. This, in turn, confirms the irreplaceability of the above-mentioned limitations of this application and consolidates the inventiveness of the technical solution.
[0069] Application Example 1 Figure 7 This is a circuit diagram of the button reset control circuit provided in this application, embodiment 1. To more clearly illustrate the technical solution of this application and its beneficial effects, the following is combined with... Figure 7The button reset control circuit of this application will be described in detail in the specific application scenario of microcontroller unit (MCU) crash reset.
[0070] In this scenario, when an electronic product crashes due to software malfunction or interference causing the microcontroller unit to freeze, the user needs to force a system reset by pressing and holding a button. Specifically, after the product freezes, the user presses and holds button S1, and the button trigger unit 10 responds to this long press operation by outputting a trigger signal. The energy storage element 21 in the reset signal processing unit 20, specifically capacitor C1, discharges slowly to ground through the discharge resistor R1 in the discharge circuit 22 and the unidirectional conducting element, specifically diode D1. Due to the impedance limitation of the discharge circuit 22, the discharge process of capacitor C1 exhibits a discharge delay characteristic, and the voltage across capacitor C1 gradually decreases over time. When the voltage of capacitor C1 reaches the preset threshold of the judgment unit 50, the judgment unit 50, specifically comparator M1, flips its output level, pulling down the reset pin of the microcontroller unit, that is, outputting a valid reset signal to the microcontroller unit, causing the microcontroller unit to perform a reset and restart operation.
[0071] Upon receiving a valid reset signal, the microcontroller unit (MCU) begins executing its internal initialization and restart program. After the MCU resets and restarts, the charging control unit 30 intervenes under control. Specifically, during or after the MCU resets and restarts, its general-purpose input / output port or a controllable power supply quickly outputs a control signal, activating the charging circuit 31 to rapidly charge capacitor C1 through charging resistor R2. Because the impedance of the charging circuit 31 is much smaller than that of the discharging circuit 22, the rapid charging rate is much greater than the discharge rate of the discharge delay, and the voltage across capacitor C1 is rapidly pulled up in a very short time. When the voltage across capacitor C1 reaches the preset threshold of the judgment unit 50, comparator M1 flips its level again, releasing the reset pin of the MCU, causing the valid reset signal to quickly return to the invalid reset signal.
[0072] If the user does not release the button at this time because they are unaware that the reset is complete, the button trigger unit 10 continues to output a trigger signal in an attempt to keep the discharge circuit 22 conducting. However, since the charging speed is much faster than the discharging speed, the charging effect dominates the competition with the discharging effect, and capacitor C1 can maintain a high level, so the reset signal remains invalid. The reset pin of the microcontroller will not be pulled low again, thus ensuring that the microcontroller can start up normally and enter the working state, completely eliminating the problem of secondary reset caused by the continuous pressing of the button.
[0073] It should be understood that this application embodiment is only used as an example of a microcontroller crash reset scenario. The button reset control circuit of this application is also applicable to other processors or logic control systems that need to prevent secondary reset. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be covered within the protection scope of this application.
[0074] Application Example 2 To more clearly illustrate the technical solution of this application in the power-off scenario and its beneficial effects, the button reset control circuit of this invention will be described in detail below by substituting it into a specific application scenario of powering on again after power-off.
[0075] In this scenario, when the electronic device is powered off, the energy storage element in the reset signal processing unit, specifically capacitor C1, will not immediately disappear due to its inherent charge retention characteristics, but will continue to be retained for a period of time.
[0076] This charge retention characteristic allows capacitor C1 to maintain a level higher than the preset discharge level threshold even after a short power outage. The reset signal processing unit can provide a normal initial level, and the system can be powered on normally without additional charging operations.
[0077] However, capacitors, as energy storage components, exhibit self-discharge, meaning the charge stored in them slowly leaks out over time, and the voltage across the capacitor gradually decreases as the power outage time extends. If the electronic device is powered off for an extended period, exceeding the self-discharge time of capacitor C1, the voltage across capacitor C1 will gradually drop below a preset discharge level threshold.
[0078] In this scenario, when the user presses the button again to try to power on, the button triggering unit responds to the button operation and outputs a power-on trigger signal to the power-on signal terminal of the main control unit. However, since the voltage of capacitor C1 is already lower than the preset threshold, the judgment unit may mistakenly judge it as a valid reset signal and output a valid reset signal to the main control unit, or the reset signal processing unit may not be able to provide a normal initial high-level state, causing the system to fail to power on normally.
[0079] To address the issue of abnormal power-on caused by capacitor self-discharge after prolonged power outages, this embodiment employs a charging control unit to rapidly charge the energy storage element C1 upon power-on. Specifically, when the main control unit detects the power-on trigger signal output by the button trigger unit, it controls the charging circuit in the charging control unit to conduct simultaneously with or before performing the power-on operation. This utilizes a controllable power supply to rapidly charge capacitor C1, allowing the voltage across capacitor C1 to recover to a normal level higher than the preset discharge level threshold within a very short time.
[0080] Because the charging rate of the charging circuit is much greater than the self-discharge rate of the capacitor, capacitor C1 can quickly recover to its effective working state during the power-on process, thus ensuring that the system can be powered on normally again. It should be understood that whether or not capacitor C1 needs to be quickly charged during power-on depends on the user's actual usage habits and the length of the power outage. If the user's usage habits result in short power outages each time, the self-discharge of capacitor C1 will not cause its voltage to fall below the preset discharge level threshold. In this case, capacitor C1 will still be at a normal level during the first power-on, and there is no need to trigger the charging control unit to perform additional fast charging operations; the system can be powered on normally directly.
[0081] This conditional charging design allows the button reset control circuit of this invention to flexibly adapt to different usage scenarios. It ensures reliable system startup after prolonged power outages while avoiding unnecessary charging operations during short-term power outages, demonstrating the flexibility and economy of the technical solution. It should be understood that Figures 1 to 7 This only illustrates one logical architecture among the various implementation methods of each embodiment. In practical applications, the physical boundaries and connection methods of each unit or structure can be flexibly adjusted, as long as the corresponding signal processing and control functions are met.
[0082] Unlike existing technologies, this application addresses the problems of complex multiplexed button reset circuits and the tendency for continuous button presses to cause secondary resets. It employs a discharge delay trigger and controlled fast charging recovery. The reset signal processing unit utilizes an energy storage element and a discharge circuit to form a discharge delay mechanism. When the button is pressed, it slowly discharges, outputting a valid reset signal upon reaching a threshold. After the main control resets and restarts, the charging control unit intervenes under control to rapidly charge the energy storage element. Crucially, the fast charging rate is greater than the discharge rate, and the charging time is less than the main control reset time. These two factors work together, utilizing the difference in charging and discharging rates, to allow the charging effect to dominate when the user continuously presses the button, causing the reset signal to quickly move out of the threshold range and return to an invalid state. This completely eliminates the secondary trigger signal caused by continuous button presses, fundamentally avoiding the system's secondary reset problem, and eliminating the need for additional prompts or alarms.
[0083] This application also includes a setting judgment unit, introducing a judgment unit between the reset signal processing unit and the main control unit to perform precise threshold judgment on the gradually changing discharge signal. This method provides a clear action boundary for the analog delay signal, outputs an effective reset signal with a steep edge, adapts to the main control unit with strict requirements for the reset signal edge, and improves the reliability of the reset.
[0084] This application also introduces a unidirectional conduction element, through which the button trigger unit is connected to the discharge resistor. This method achieves critical signal isolation, ensuring that the potential is pulled low to trigger discharge when the button is triggered, while preventing the high potential during rapid charging of the charging control unit from flowing back into the button terminal or the main control power-on signal terminal, thus avoiding logic interference and hardware damage.
[0085] The core invention of this application lies in the multiplexing of power-on and reset functions. The button trigger unit is simultaneously connected to the power-on signal terminal of the main controller. A short press triggers power-on, and a long press triggers a discharge delay reset. With a minimalist RC charging and discharging and logic control circuit, button multiplexing, signal isolation, and precise triggering are achieved. This not only simplifies circuit design and reduces product costs but also completely eliminates the risk of system dead loop reset caused by continuous button presses.
[0086] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A button reset control circuit, characterized in that, include: A button triggering unit is configured to output a trigger signal in response to a button operation; A reset signal processing unit is connected to the button triggering unit and configured to perform a discharge delay based on the triggering signal and output a valid reset signal to the main control unit. A charging control unit, connected to the reset signal processing unit, is configured to perform controlled fast charging on the reset signal processing unit after the main control unit is reset and restarted, so that the valid reset signal is restored to the invalid reset signal, wherein the fast charging rate is greater than the discharge rate of the discharge delay.
2. The button reset control circuit according to claim 1, characterized in that, The reset signal processing unit includes an energy storage element and a discharge circuit; The discharge circuit is configured to be turned on when the button triggering unit outputs the trigger signal, so that the energy storage element discharges for a delay until the reset threshold is reached, so as to output the effective reset signal.
3. The button reset control circuit according to claim 2, characterized in that, The discharge circuit includes a discharge resistor, and the energy storage element includes a capacitor; The button triggering unit is connected to the discharge resistor via a unidirectional conduction element.
4. The button reset control circuit according to claim 1, characterized in that, The charging control unit includes a charging circuit; The charging circuit is configured to be turned on after a reset and restart, under the control of the main control unit, to charge the reset signal processing unit.
5. The button reset control circuit according to claim 4, characterized in that, The charging time of the charging circuit is shorter than the reset time of the main control unit.
6. The button reset control circuit according to claim 1, characterized in that, It also includes a judgment unit connected to the reset signal processing unit, configured to judge whether the signal output by the reset signal processing unit reaches a preset threshold, and output the valid reset signal when the preset threshold is reached.
7. The button reset control circuit according to claim 1, characterized in that, The button triggering unit is also connected to the power-on signal terminal of the main control unit and is configured to output a power-on trigger signal to the power-on signal terminal in response to the button operation.
8. A button reset control method, characterized in that, include: In response to a button press, a discharge delay is performed and a valid reset signal is output. The main control unit performs a reset and restart based on the valid reset signal; After the reset and restart, a controlled fast charge is performed to restore the valid reset signal to an invalid reset signal, and the fast charge rate is greater than the discharge rate of the discharge delay.
9. The button reset control method according to claim 8, characterized in that, The charging time of the fast charging is less than the reset time of the main control unit that performs the reset and restart.
10. An electronic device, characterized in that, It includes a main control unit and a button reset control circuit as described in any one of claims 1 to 7.