Reset circuit, chip and electronic equipment
By using two voltage acquisition points and delay discharge circuits in the reset circuit to generate a hysteresis reset signal, the problem of insufficient response to reset signal when the power supply changes rapidly in the prior art is solved, and the stability and response capability of the reset circuit are improved.
Patent Information
- Application Number
- CN202410967965.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-19
AI Technical Summary
The existing reset circuit cannot effectively respond to the extremely fast power supply up and down situation, resulting in glitches and reset oscillations during power-on, and poor stability, so it cannot give the correct reset signal when the power supply changes rapidly.
Design a reset circuit to monitor the power-up and power down voltages through two voltage acquisition points, and use the delay circuit and the drain circuit to generate a hysteresis reset signal to ensure that the correct reset signal is given when the power supply changes rapidly, and through logic The combination unit generates a target reset signal to avoid oscillation.
It can provide normal reset signals for both slow and fast power supply up and down, and avoid reset oscillation through the hysteresis interval, which improves the stability of the reset circuit.
Smart Images

Figure CN118984151A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a reset circuit, a chip and an electronic equipment. Background Art
[0002] The power-on reset circuit is a common functional module in integrated circuits. Its main function is to ensure that the device starts in a controllable and predictable state when it is powered on. When an electronic device is powered on for the first time, or when the power is reconnected, the power supply voltage may be unstable for a period of time. The goal of the power-on reset circuit is to generate a reset pulse when the power supply voltage reaches a stable level, which helps to avoid unexpected behavior when the device is turned on. The main purpose of brownout detection is to monitor the supply voltage of the device and prevent the device from operating when the supply voltage drops below a predetermined threshold.
[0003] In the related art, there is a problem that a reset circuit can only detect one of the situations of fast power on / off or slow power on / off. And for extremely fast power on / off, the response speed of the reset circuit lags behind the power on / off speed, resulting in glitches in the circuit when it is powered on, and the inability to give a correct reset signal during the power on process; the inability to give a reset signal in time when it is powered off. In addition, in the reset circuit, there is only one voltage collection point for power on / off reset, resulting in the same upper and lower reset voltages. The same reset voltage is prone to reset oscillation, which makes the stability of the reset circuit poor. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to provide a reset circuit that can give a normal reset signal for both slow and fast power-on and power-off of the power supply, and respectively collect the power-on monitoring voltage and the power-off monitoring voltage through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the reset oscillation phenomenon and improve the stability of the reset circuit.
[0005] The second objective of the present invention is to provide a chip.
[0006] A third objective of the present invention is to provide an electronic device.
[0007] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a reset circuit, comprising: a voltage monitoring unit, used to monitor the power supply voltage of a power supply, and obtain a power-on monitoring voltage when the power supply is powered on and a power-off monitoring voltage when the power supply is powered off; a first reset unit, used to generate a first power-on reset signal and a first power-off reset signal based on the power-on monitoring voltage, the power-off monitoring voltage and a reference voltage; a second reset unit, used to generate a second power-on reset signal and a second power-off reset signal based on the power supply voltage, and the generation time of the second power-on reset signal is greater than or equal to the time when the reference voltage is established and less than or equal to the generation time of the first power-on reset signal; a logic combination unit, used to generate a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal, and to generate a target power-off reset signal based on the first power-off reset signal and the second power-off reset signal.
[0008] According to the reset circuit of the embodiment of the present invention, the voltage monitoring unit monitors the power supply voltage of the power supply to obtain the power-on monitoring voltage when the power supply is powered on and the power-off monitoring voltage when the power supply is powered off; the first reset unit generates a first power-on reset signal and a first power-off reset signal based on the power-on monitoring voltage, the power-off monitoring voltage and the reference voltage; the second reset unit generates a second power-on reset signal and a second power-off reset signal based on the power supply voltage, and the generation time of the second power-on reset signal is greater than or equal to the time when the reference voltage is established and less than or equal to the generation time of the first power-on reset signal; the logic combination unit generates a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal, and generates a target power-off reset signal based on the first power-off reset signal and the second power-off reset signal. Thus, the circuit can give a normal reset signal for both slow and fast power on and off of the power supply, and the power-on monitoring voltage and the power-off monitoring voltage are respectively collected through two voltage collection points, so that there is a certain hysteresis interval between the power on and power off reset voltages, which can avoid the phenomenon of reset oscillation and improve the stability of the reset circuit.
[0009] In addition, the reset circuit according to the above embodiment of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the second reset unit includes: a delay circuit, used to delay the output of the power supply voltage; a discharge circuit, used to output the power supply voltage when the power supply is powered on, and discharge the power supply voltage when the power supply is powered off; a second reset signal generating circuit, used to generate the second power-on reset signal and the second power-off reset signal based on the power supply voltage output by the discharge circuit.
[0011] According to one embodiment of the present invention, the delay circuit includes: a first resistor, one end of which is connected to the power supply; a first capacitor, one end of which is respectively connected to the other end of the first resistor and the discharge circuit, and the other end of the first capacitor is grounded.
[0012] According to an embodiment of the present invention, the discharge circuit includes: a voltage-controlled current source, one end of which is respectively connected to the delay circuit and the second reset signal generating circuit, and the other end of which is grounded.
[0013] According to one embodiment of the present invention, the voltage-controlled current source includes: a first switch tube, a first end of the first switch tube is respectively connected to the delay circuit and the second reset signal generating circuit, a second end of the first switch tube is grounded, and a control end of the first switch tube is connected to the power supply.
[0014] According to one embodiment of the present invention, the second reset signal generating circuit includes: a second trigger, used to generate the second power-on reset signal and the second power-down reset signal based on the power supply voltage output by the discharge circuit; a first inverter, used to invert the second power-on reset signal and the second power-down reset signal once; and a second inverter, used to invert the second power-on reset signal and the second power-down reset signal after the first inversion twice.
[0015] According to an embodiment of the present invention, the voltage monitoring unit includes a power-on voltage monitoring terminal and a power-off voltage monitoring terminal, the power-on voltage monitoring terminal is used to output the power-on monitoring voltage, and the power-off voltage monitoring terminal is used to output the power-off monitoring voltage.
[0016] According to one embodiment of the present invention, the voltage monitoring unit also includes: a second resistor, one end of which is connected to the power supply; a third resistor, one end of which is connected to the other end of the second resistor and forms a first connection point, and the first connection point serves as the power-down voltage monitoring end; a fourth resistor, one end of which is connected to the other end of the third resistor and forms a second connection point, the other end of the fourth resistor is grounded, and the second connection point serves as the power-up voltage monitoring end.
[0017] According to one embodiment of the present invention, the first reset unit includes: a selection circuit for selectively outputting the power-on monitoring voltage or the power-off monitoring voltage; a first reset signal generating circuit for generating the first power-on reset signal based on the power-on monitoring voltage and the reference voltage, and generating the first power-down reset signal based on the power-off monitoring voltage and the reference voltage, and controlling the selection circuit based on the first power-on reset signal and the first power-down reset signal.
[0018] According to one embodiment of the present invention, the first reset signal generating circuit includes: a reference voltage generating circuit for generating the reference voltage; a comparator for generating a first power-on reset initial signal based on the power-on monitoring voltage and the reference voltage, and generating a first power-down reset initial signal based on the power-off monitoring voltage and the reference voltage; a first trigger for generating the first power-on reset signal based on the first power-on reset initial signal, and generating the first power-down reset signal based on the first power-down reset initial signal, and controlling the selection circuit based on the first power-on reset signal and the first power-down reset signal; a third inverter for inverting the first power-on reset signal and the first power-down reset signal once, and controlling the selection circuit based on the first power-on reset signal and the first power-down reset signal after the first inversion; and a fourth inverter for double inverting the first power-on reset signal and the first power-down reset signal after the first inversion.
[0019] According to one embodiment of the present invention, the selection circuit includes: a first switch, wherein the first end of the first switch is connected to the power-on voltage monitoring end, the second end of the first switch is connected to the first input end of the comparator, and the control end of the first switch is connected to the output end of the third inverter; and a second switch, wherein the first end of the second switch is connected to the power-off voltage monitoring end, the second end of the second switch is connected to the first input end of the comparator, and the control end of the second switch is connected to the output end of the first trigger.
[0020] According to an embodiment of the present invention, the first reset unit further includes: a filter circuit, configured to filter the power-on monitoring voltage and the power-off monitoring voltage.
[0021] According to one embodiment of the present invention, the logic combination unit includes: an AND gate, which is used to perform an AND operation on the first power-on reset signal and the second power-on reset signal to obtain the target power-on reset signal, and to perform an AND operation on the first power-down reset signal and the second power-down reset signal to obtain the target power-down reset signal.
[0022] To achieve the above object, a second embodiment of the present invention provides a chip including the above reset circuit.
[0023] According to the chip of the embodiment of the present invention, through the above-mentioned reset circuit, a normal reset signal can be given for both slow and fast power on and off of the power supply, and the power-on monitoring voltage and the power-off monitoring voltage are respectively collected through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the occurrence of reset oscillation and improve the stability of the chip.
[0024] To achieve the above-mentioned purpose, a third aspect of the present invention provides an electronic device, including the above-mentioned reset circuit or the above-mentioned chip.
[0025] The electronic device according to the embodiment of the present invention can give a normal reset signal for both slow and fast power on and off of the power supply through the above-mentioned reset circuit or chip, and respectively collect the power-on monitoring voltage and the power-off monitoring voltage through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the reset oscillation phenomenon and improve the stability of the electronic device.
[0026] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a block diagram of a reset circuit according to an embodiment of the present invention;
[0028] Figure 2 A topological diagram and input and output waveform diagram of a commonly used reset circuit in the related art;
[0029] Figure 3 A topological diagram and input and output waveform diagram of another commonly used reset circuit in the related art;
[0030] Figure 4 Schematic diagram of input and output waveforms of a reset circuit according to an embodiment of the present invention;
[0031] Figure 5 A topological diagram of a reset circuit according to an embodiment of the present invention;
[0032] Figure 6 A topological diagram of a discharge circuit according to an embodiment of the present invention;
[0033] Figure 7 is a block diagram of a chip according to an embodiment of the present invention;
[0034] Figure 8 is a block diagram of an electronic device according to an embodiment of the present invention;
[0035] Fig. 9 FIG. 4 is a block diagram of an electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0036] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0037] The reset circuit, chip and electronic device provided in the embodiments of the present invention are described below with reference to the accompanying drawings.
[0038] In the field of chip design, the power-on / down reset circuit (PODR) is an essential reset circuit in the system. Its function is to ensure that the analog and digital modules are initialized to a known state after the chip is powered on and off.
[0039] Its basic working principle is that when the power supply voltage rises or drops to a known threshold, the reset circuit will release the internal reset signal, and the state machine will start to initialize the internal devices. The correct initialization value can ensure that the chip can enter the normal working state after powering on this time or again.
[0040] In general, the PODR circuit must meet the following technical requirements:
[0041] 1. The PODR circuit is a normally open circuit in the chip. Its own power consumption will affect the overall power consumption of the chip. In order to reduce the overall power consumption of the chip, the power consumption of the PODR circuit should be designed to be as low as possible;
[0042] 2. The power-on and power-off reset thresholds of the PODR circuit are strongly related to the overall operating voltage range of the chip. It is required that the chip can normally respond to the power-on and power-off reset signals at the voltage points of the power-on and power-off reset signals;
[0043] 3. In different chip systems, the power supply may be fast or slow. For extremely fast and slow power-on, PODR must be able to give a reset signal normally;
[0044] 4. There is usually a delay when the PODR circuit is powered on, and powering off generally requires a reset signal to be given immediately;
[0045] 5. In order to avoid the oscillation phenomenon of power on and off, that is, frequent power on and off, there is a certain hysteresis interval between the power-on voltage and the power-off voltage.
[0046] In the related art, the commonly used PODR circuit structure is as follows Figure 2 and Figure 3 There are two types shown. Figure 2The basic working principle of the circuit shown is that when the power supply is powered on quickly, due to the presence of capacitor C1', the voltage at the PG point follows the VDD voltage, and the PD voltage remains low. As the voltage at the PG point rises, the leakage of the two tubes N1 and N2 to the ground increases. After the power supply is powered on, as the leakage continues, the voltage at the PG point gradually decreases. When the voltage at the PG point drops to the threshold of P1, P1 is turned on, and the power supply quickly charges the PD point through P1. When the charging voltage reaches the threshold of the Schmitt trigger, the output values of PD and PODR quickly change from low to high, completing the reset signal. From the above working process analysis, it can be seen that the circuit has the following disadvantages: 1. The power-on signal detection of the power supply is realized through capacitor coupling. The capacitor can respond normally to the coupling of fast power-on. When the power supply is powered on slowly, the capacitor coupling function fails, which leads to circuit failure. Therefore, the circuit is invalid for full power-on reset detection; 2. The threshold point of circuit flipping is determined by the threshold point of P1, and the threshold of P1 is greatly affected by the process angle and temperature. Therefore, the power-on flip threshold of the structure will vary greatly with temperature and process angle; 3. The time that the output signal remains low is determined by the leakage of N1 and N2 and the size of C1' and C2', and these values are also affected by temperature and process angle. Therefore, the time that the output signal of the structure remains low will also vary greatly with temperature and process angle; 4. This structure only has the function of power-on reset, but not the function of power-off reset.
[0047] Figure 3 The structure of the circuit shown is composed of three parts. The first part is the resistor string that collects the power-on and power-off of the power supply voltage and outputs Vsample; the second part is the reference generation unit that generates a reference voltage Vref; the third part is the comparator, which compares Vsample with Vref to generate a reset signal. This circuit has the following disadvantages: 1. The comparator and the reference generation unit both require a safe working voltage. When VDD is lower than the safe working voltage, the reference comparison unit and the comparator may output errors, and the output lower than the safe working voltage is unreliable; 2. The comparator and the reference generation unit circuits themselves have a certain bandwidth. When the VDD power-on and power-off speed is greater than the bandwidth value, the circuit may output errors. Therefore, the output under the power-on and power-off speed higher than the bandwidth is unreliable; 3. There is only one voltage collection point for power-on and power-off reset, resulting in the same upper and lower reset voltages. The same reset voltage is prone to chip reset oscillation.
[0048] In order to solve the above technical problems, the present invention proposes a reset circuit, which can give a normal reset signal for both slow and fast power on and off of the power supply, and respectively collect the power-on monitoring voltage and the power-off monitoring voltage through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the reset oscillation phenomenon and improve the stability of the reset circuit.
[0049] Figure 1 FIG. 4 is a block diagram of a reset circuit according to an embodiment of the present invention.
[0050] like Figure 1 As shown, the reset circuit 1000 according to the embodiment of the present invention may include: a voltage monitoring unit 100 , a first reset unit 200 , a second reset unit 300 and a logic combination unit 400 .
[0051] Among them, the voltage monitoring unit 100 is connected to the power supply VDD, and is used to monitor the power supply voltage of the power supply VDD, and obtain the power-on monitoring voltage when the power supply VDD is powered on and the power-off monitoring voltage when the power supply VDD is powered off. The first reset unit 200 is connected to the voltage monitoring unit 100, and is used to generate a first power-on reset signal and a first power-off reset signal based on the power-on monitoring voltage, the power-off monitoring voltage and the reference voltage. The second reset unit 300 is connected to the power supply VDD, and is used to generate a second power-on reset signal and a second power-off reset signal based on the power supply voltage, and the generation time of the second power-on reset signal is greater than or equal to the time when the reference voltage is established and less than or equal to the generation time of the first power-on reset signal. The logic combination unit 400 is respectively connected to the first reset unit 200 and the second reset unit 300, and is used to generate a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal, and to generate a target power-off reset signal based on the first power-off reset signal and the second power-off reset signal.
[0052] Specifically, the signal waveforms of each unit during the power-on and power-off process of the power supply VDD are as follows: Figure 4 As shown. When the power supply VDD is powered on slowly from zero, the voltage monitoring unit 100 obtains the power-on monitoring voltage, and the reference voltage is gradually established as the power supply VDD is powered on. The establishment speed of the reference voltage is faster than the establishment speed of the power-on monitoring voltage of the voltage monitoring unit 100. In the process of the gradual increase of the power supply VDD voltage, when the power supply voltage does not rise to the power-on threshold (vthr), the first reset unit 200 generates a low-level first power-on reset signal based on the power-on monitoring voltage and the reference voltage. When the power supply VDD voltage rises to the power-on threshold vthr, the first reset unit 200 outputs a high-level signal. When the power supply VDD voltage is powered off slowly, the voltage monitoring unit 100 obtains the power-off monitoring voltage, and when the power supply VDD voltage drops to the power-off threshold Vthf, the first reset unit 200 generates a low-level first power-off reset signal based on the power-off monitoring voltage and the reference voltage.
[0053] It should be understood that, ideally, the reference voltage is established faster than the power-on monitoring voltage of the voltage monitoring unit 100. However, when the power-on speed of the power supply VDD voltage is fast enough, the output establishment speed of the voltage monitoring unit 100 is faster than the reference voltage establishment speed, which will cause the waveform output by the first reset unit 200 to appear similar to Figure 4 The power-on glitch waveform in area 1. If the glitch waveform lasts too long, the first reset unit 200 will not be able to give a correct reset signal during the power-on process. The main reason for this problem is that the bandwidth of the circuit that generates the reference voltage limits the speed at which its output reference voltage is established. In order to solve the power-on risk of this problem, usually, a filter unit is connected to the output of the voltage monitoring unit 100 so that the establishment speed of the voltage monitoring unit 100 output is slower than the establishment speed of the reference voltage. However, this will result in that when the power supply VDD is powered off, the output of the voltage monitoring unit 100 cannot keep up with the change of the power supply VDD voltage in time, resulting in the output failing to give a reset signal in time, which does not meet the power-on reset requirements of the power supply VDD. Therefore, ideally, it is hoped that the operating voltage of the circuit that generates the reference voltage itself should be as low as possible and the establishment speed should be fast enough, but this is also at the expense of consuming the power consumption of the circuit itself, and does not meet the low-power design requirements.
[0054] In order to solve the above contradiction, the present invention adds a second reset unit 300, and the working principle of the second reset unit 300 is as follows: when the power supply VDD is powered on quickly, the second reset unit 300 generates a second power-on reset signal based on the power supply voltage. Since the power-on speed of the second reset unit 300 lags behind the power supply VDD, the generation time of the second power-on reset signal is greater than or equal to the time when the reference voltage is established and less than or equal to the generation time of the first power-on reset signal; the logic combination unit 400 can generate a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal. When the power supply VDD is powered off quickly, the second reset unit 300 responds quickly and generates a second power-down reset signal based on the power supply voltage. The logic combination unit 400 can generate a target power-down reset signal based on the first power-down reset signal and the second power-down reset signal. During the slow power-on process of the power supply VDD, the time when the second reset unit 300 generates the second power-on reset signal lags behind the time when the first reset unit 200 generates the first power-on reset signal; during the slow power-off process of the power supply VDD, the time when the second reset unit 300 generates the second power-off reset signal lags behind the time when the first reset unit 200 generates the first power-off reset signal.
[0055] According to one embodiment of the present invention, Figure 5As shown, the second reset unit 300 includes: a delay circuit 310, the delay circuit 310 is connected to the power supply VDD, and is used to delay the output of the power supply voltage; a discharge circuit 320, the discharge circuit 320 is connected to the delay circuit 310, and is used to output the power supply voltage when the power supply VDD is powered on, and discharge the power supply voltage when the power supply VDD is powered off; a second reset signal generating circuit 330, the second reset signal generating circuit 330 is respectively connected to the discharge circuit 320 and the logic combination unit 400, and is used to generate a second power-on reset signal and a second power-off reset signal based on the power supply voltage output by the discharge circuit 320.
[0056] Specifically, when the power supply VDD is powered on quickly, the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320, and the discharge circuit 320 is in a closed state at this time, so that the power supply voltage can be output to the second reset signal generating circuit 330, and the second reset signal generating circuit 330 generates a second power-on reset signal based on the power supply voltage output by the discharge circuit 320, and transmits the second power-on reset signal to the logic combination unit 400. Since the voltage at point A (i.e., the power supply voltage output by the discharge circuit 320) lags behind the power supply voltage, before the power supply voltage reaches the power-on threshold, the second reset signal generating circuit 330 always outputs a low-level second power-on reset signal. When the power supply VDD is powered off quickly, the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320, and the discharge circuit 320 is in an open state at this time, so that the power supply voltage can be discharged, and the voltage at point A is quickly pulled down, so that the second reset signal generating circuit 330 generates a low-level second power-off reset signal.
[0057] According to one embodiment of the present invention, Figure 5 As shown, the delay circuit 310 includes: a first resistor R1, one end of which is connected to the power supply VDD; a first capacitor C1, one end of which is respectively connected to the other end of the first resistor R1 and the discharge circuit 320, and the other end of the first capacitor C1 is grounded.
[0058] Specifically, the first resistor R1 and the first capacitor C1 form a low-pass filter, which can filter out high-frequency signals on the power supply VDD voltage. When the power supply VDD changes rapidly from power on to power off, the first resistor R1 and the first capacitor C1 form a low-pass filter, which can delay the output of the power supply voltage to the discharge circuit 320, so that the output voltage at point A has a certain delay.
[0059] According to one embodiment of the present invention, Figure 5 As shown, the discharge circuit 320 includes: a voltage-controlled current source 321, one end of the voltage-controlled current source 321 is respectively connected to the delay circuit 310 and the second reset signal generating circuit 330, and the other end of the voltage-controlled current source 321 is grounded.
[0060] Specifically, when the power supply VDD is powered on quickly, the voltage-controlled current source 321 is in a closed state; when the power supply VDD is powered off quickly, the voltage-controlled current source 321 is in an open state to discharge the power supply voltage.
[0061] According to one embodiment of the present invention, Figure 6 As shown, the voltage-controlled current source 321 includes: a first switch tube Q1, a first end of the first switch tube Q1 is connected to the delay circuit 310 and the second reset signal generating circuit 330 respectively, a second end of the first switch tube Q1 is grounded, and a control end of the first switch tube Q1 is connected to the power supply VDD. The first switch tube Q1 can be a P-type MOS tube, and the on-voltage threshold of the first switch tube Q1 is less than the off-voltage threshold.
[0062] Specifically, when the power supply VDD is powered on quickly, the voltage of the power supply VDD is quickly greater than the on-voltage threshold of the first switch tube Q1, so that the first switch tube Q1 is in the off state before the voltage at point A rises. When the power supply VDD is powered off quickly, the voltage of the power supply VDD is quickly less than the on-voltage threshold of the first switch tube Q1, so that the first switch tube Q1 is in the on state before the voltage at point A rises.
[0063] According to one embodiment of the present invention, Figure 5 As shown, the second reset signal generating circuit 330 includes: a second trigger T2, the input end of the second trigger T2 is connected to the discharge circuit 320, and is used to generate a second power-on reset signal and a second power-down reset signal based on the power supply voltage output by the discharge circuit 320; a first inverter X1, the input end of the first inverter X1 is connected to the output end of the second trigger T2, and is used to invert the second power-on reset signal and the second power-down reset signal once; a second inverter X2, the input end of the second inverter X2 is connected to the output end of the first inverter X1, and the output end of the second inverter X2 is connected to the logic combination unit 400, and is used to invert the second power-on reset signal and the second power-down reset signal after the first inversion twice. Among them, the second trigger T2 can be a Schmitt trigger.
[0064] Specifically, when the power supply VDD is powered on quickly, the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320, and the discharge circuit 320 is in a closed state at this time. Before the voltage at point A (i.e., the power supply voltage output by the discharge circuit 320) reaches the power-on threshold, the second trigger T2 generates a low-level second power-on reset signal based on the power supply voltage output by the discharge circuit 320. After being detected twice by the first inverter X1 and the second inverter X2, the low-level second power-on reset signal is output to the logic combination unit 400, that is, the potential at point C is low. At this time, regardless of whether the potential at point B is high or low, the output of the reset circuit 1000 is low, thereby ensuring that the reset signal can be normally given during the power-on process. The second trigger T2 can also filter out the voltage fluctuation at point A.
[0065] When the power supply VDD is powered off quickly, the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320. The discharge circuit 320 is in an open state at this time, so that the power supply voltage can be discharged, and the voltage at point A is quickly pulled down. The second trigger T2 generates a low-level second power-off reset signal based on the power supply voltage output by the discharge circuit 320. After being detected twice by the first inverter X1 and the second inverter X2, the low-level second power-off reset signal is output to the logic combination unit 400, that is, the potential at point C is low. At this time, no matter whether the potential at point B is high or low, the output of the reset circuit 1000 is low, thereby ensuring that the reset signal can be given normally during the power-off process.
[0066] According to an embodiment of the present invention, the voltage monitoring unit 100 includes a power-on voltage monitoring terminal and a power-off voltage monitoring terminal. The power-on voltage monitoring terminal is used to output a power-on monitoring voltage, and the power-off voltage monitoring terminal is used to output a power-off monitoring voltage.
[0067] According to one embodiment of the present invention, Figure 5 As shown, the voltage monitoring unit 100 also includes: a second resistor R2, one end of the second resistor R2 is connected to the power supply VDD; a third resistor R3, one end of the third resistor R3 is connected to the other end of the second resistor R2 and forms a first connection point J1, the first connection point J1 is used as a power-down voltage monitoring end; a fourth resistor R4, one end of the fourth resistor R4 is connected to the other end of the third resistor R3 and forms a second connection point J2, the other end of the fourth resistor R4 is grounded, and the second connection point J2 is used as a power-up voltage monitoring end. It can be seen that the value of the power-up monitoring voltage is Power-off monitoring voltage value Therefore, the present invention has two voltage collection points, namely the power-on voltage monitoring terminal and the power-off voltage monitoring terminal, which respectively output the power-on monitoring voltage and the power-off monitoring voltage with different voltage values, so that there is a certain hysteresis interval between the power-on and power-off reset voltages to avoid reset oscillation.
[0068] According to one embodiment of the present invention, Figure 5 As shown, the first reset unit 200 includes: a selection circuit 210, the selection circuit 210 is respectively connected to the power-on voltage monitoring terminal and the power-off voltage monitoring terminal, and is used to selectively output the power-on monitoring voltage or the power-off monitoring voltage; a first reset signal generating circuit 220, the first reset signal generating circuit 220 is respectively connected to the selection circuit 210 and the logic combination unit 400, and is used to generate a first power-on reset signal based on the power-on monitoring voltage and the reference voltage, and to generate a first power-off reset signal based on the power-off monitoring voltage and the reference voltage, and to control the selection circuit 210 based on the first power-on reset signal and the first power-off reset signal.
[0069] Specifically, when the power supply VDD is powered on from zero, the selection circuit 210 selectively outputs a power-on monitoring voltage, and the first reset signal generating circuit 220 generates a first power-on reset signal based on the power-on monitoring voltage and the reference voltage, and simultaneously controls the selection circuit 210 to selectively output a power-off monitoring voltage; when the power supply VDD is powered off, the first reset signal generating circuit 220 generates a first power-off reset signal based on the power-off monitoring voltage and the reference voltage, and simultaneously controls the selection circuit 210 to selectively output a power-on monitoring voltage.
[0070] According to one embodiment of the present invention, Figure 5As shown, the first reset signal generating circuit 220 includes: a reference voltage generating circuit 221, which is used to generate a reference voltage; a comparator M1, wherein the first input terminal of the comparator M1 is connected to the selection circuit 210, and the second input terminal of the comparator M1 is connected to the reference voltage generating circuit 221, which is used to generate a first power-on reset initial signal based on the power-on monitoring voltage and the reference voltage, and to generate a first power-down reset initial signal based on the power-off monitoring voltage and the reference voltage; a first trigger T1, wherein the input terminal of the first trigger T1 is connected to the output terminal of the comparator M1, and the output terminal of the first trigger T1 is connected to the selection circuit 210, which is used to generate a first power-on reset signal based on the first power-on reset initial signal, and to generate a first power-down reset signal based on the first power-down reset initial signal. signal, and controls the selection circuit 210 based on the first power-on reset signal and the first power-down reset signal; a third inverter X3, the input end of the third inverter X3 is connected to the output end of the first trigger T1, the output end of the third inverter X3 is connected to the selection circuit 210, and is used to invert the first power-on reset signal and the first power-down reset signal once, and control the selection circuit 210 based on the first power-on reset signal and the first power-down reset signal after the first inversion; a fourth inverter X4, the input end of the fourth inverter X4 is connected to the output end of the third inverter X3, the output end of the fourth inverter X4 is connected to the logic combination unit 400, and is used to invert the first power-on reset signal and the first power-down reset signal after the first inversion twice. Among them, the first trigger T1 can be a Schmitt trigger, which can filter the indeterminate state output by the comparator M1.
[0071] According to one embodiment of the present invention, Figure 5 As shown, the selection circuit 210 includes: a first switch K1, a first end of the first switch K1 is connected to the power-on voltage monitoring end, a second end of the first switch K1 is connected to the first input end of the comparator M1, and a control end of the first switch K1 is connected to the output end of the third inverter X3; a second switch K2, a first end of the second switch K2 is connected to the power-off voltage monitoring end, a second end of the second switch K2 is connected to the first input end of the comparator M1, and a control end of the second switch K2 is connected to the output end of the first trigger T1.
[0072] Specifically, when the power supply VDD is slowly powered on from zero, the power-on voltage monitoring terminal in the voltage monitoring unit 100 is connected to the first input terminal (positive input terminal) of the comparator M1 through the first switch K1. At this time, the output reference voltage of the reference voltage generating circuit 221 is also gradually established as the power supply voltage is established. The establishment speed of the output reference voltage of the reference voltage generating circuit 221 is faster than the establishment speed of the power-on monitoring voltage of the voltage monitoring unit 100. When the power supply voltage does not rise to the power-on threshold vthr, the comparator M1 generates a first power-on reset initial signal based on the power-on monitoring voltage and the reference voltage, that is, the comparator M1 outputs a low-level first power-on reset initial signal. At this time, the first trigger T1 generates a low-level first power-on reset signal according to the low-level first power-on reset initial signal, and the low-level first power-on reset signal controls the second switch K2 to remain in the open state; the third inverter X3 reverses the low-level first power-on reset signal once, outputs a high-level signal, and controls the first switch K1 to remain closed; the fourth inverter X4 inverts the first power-on reset signal after the first inversion for a second time, and outputs a low-level signal to the logic combination unit 400, and point B is a low level. When the power supply voltage rises to the power-on threshold (vthr), the output signal of the comparator M1 is converted from a low level to a high level, the first trigger T1 outputs a high level signal, controls the second switch K2 to close, and the power-off voltage monitoring terminal is connected to the first input terminal of the comparator M1; the third inverter X3 outputs a low level signal, controls the first switch K1 to open; the fourth inverter X4 outputs a high level signal to the logic combination unit 400, and point B is a high level.
[0073] When the power supply VDD is powered off slowly and the power supply voltage drops to the power-off threshold Vthf, the output signal of the comparator M1 is converted from a high level to a low level, that is, the comparator M1 generates a low-level first power-off reset initial signal based on the power-off monitoring voltage and the reference voltage. At this time, the first trigger T1 generates a low-level first power-off reset signal according to the low-level first power-off reset initial signal, and the low-level first power-off reset signal controls the second switch K2 to be disconnected; the third inverter X3 reverses the low-level first power-off reset signal once, outputs a high-level signal, and controls the first switch K1 to be closed; the fourth inverter X4 reverses the first power-off reset signal after the first inversion twice, and outputs a low-level signal to the logic combination unit 400, and point B is a low level.
[0074] When the power supply VDD is powered on quickly, the reference voltage establishment speed of the reference voltage generating circuit in the first reset unit 200 is slower than the output establishment speed of the voltage monitoring unit 100, which will cause the waveform output by the first reset unit 200 to appear similar to Figure 4The power-on glitch waveform in area 1, if the glitch waveform lasts too long, will cause the first reset unit 200 to fail to give a correct reset signal during the power-on process. Therefore, the second reset unit 300 is required to give a reset signal. Specifically: the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320, and the discharge circuit 320 is in a closed state at this time. Before the voltage at point A (i.e., the power supply voltage output by the discharge circuit 320) reaches the power-on threshold, the second trigger T2 generates a low-level second power-on reset signal based on the power supply voltage output by the discharge circuit 320. After being discovered twice by the first inverter X1 and the second inverter X2, the low-level second power-on reset signal is output to the logic combination unit 400, that is, the potential at point C is low. At this time, regardless of whether the potential at point B is high or low, the output of the reset circuit 1000 is low, thereby ensuring that the reset signal can be given normally during the power-on process. The second trigger T2 can also filter out the voltage fluctuation at point A.
[0075] When the power supply VDD is powered off quickly, the first reset unit 200 has a more complex circuit and a slower response speed than the second reset unit 300. At this time, the second reset unit 300 gives a reset signal. Specifically: the delay circuit 310 can delay the output of the power supply voltage to the discharge circuit 320. The discharge circuit 320 is in an open state at this time, so that the power supply voltage can be discharged, and the voltage at point A can be quickly pulled down. The second trigger T2 generates a low-level second power-down reset signal based on the power supply voltage output by the discharge circuit 320. After being detected twice by the first inverter X1 and the second inverter X2, the low-level second power-down reset signal is output to the logic combination unit 400, that is, the potential at point C is low. At this time, no matter whether the potential at point B is high or low, the output of the reset circuit 1000 is low, thereby ensuring that the reset signal can be normally given during the power-off process.
[0076] According to one embodiment of the present invention, Figure 5 As shown, the first reset unit 200 further includes: a filter circuit 230, which is connected to the selection circuit 210 and the first reset signal generation circuit 220 respectively, and is used to filter the power-on monitoring voltage and the power-off monitoring voltage.
[0077] Specifically, the filter circuit 230 can filter out the ripples in the power-on monitoring voltage and the power-off monitoring voltage output by the voltage monitoring unit 100, and can avoid frequent power-on and power-off reset actions of the circuit.
[0078] According to one embodiment of the present invention, Figure 5As shown, the logic combination unit 400 includes: an AND gate AND1, a first input end of the AND gate AND1 is connected to the first reset unit 200, and a second input end of the AND gate AND1 is connected to the second reset unit 300, and is used to perform an AND operation on the first power-on reset signal and the second power-on reset signal to obtain a target power-on reset signal, and to perform an AND operation on the first power-down reset signal and the second power-down reset signal to obtain a target power-down reset signal.
[0079] Specifically, when one of the first power-on reset signal and the second power-on reset signal is a low-level signal, the AND gate AND1 can output a low-level target power-on reset signal; when one of the first power-off reset signal and the second power-off reset signal is a low-level signal, the AND gate AND1 can output a low-level target power-off reset signal.
[0080] In summary, comparison Figure 2 The present invention has the following advantages: the present invention realizes the timing through resistance monitoring, and can give a normal reset signal for both slow and fast power on and off of the power supply. Figure 2 The intelligent detection power supply quickly powers on the scene; the circuit flip threshold point of this solution is determined by the output reference voltage of the reference generation circuit, and the threshold is not affected by the process angle and temperature; this solution not only has the function of power-on reset, but also has the function of power-off reset. Figure 3 The present invention has the following advantages: although the comparator and the reference generating unit in the present invention also need a safe working voltage and have a certain bandwidth, the present invention has a fast response part (the second reset unit), which not only has a fast working speed but also has a low working voltage. Therefore, under the above-mentioned safe working voltage and under the power-on and power-off speeds higher than the bandwidth, it can ensure normal operation and give a correct reset signal; the present invention has two voltage collection points, which are switched through the output state of the comparator, so that the power-on and power-off reset voltages have a certain hysteresis interval to avoid reset oscillation.
[0081] In summary, according to the reset circuit of the embodiment of the present invention, the voltage monitoring unit monitors the power supply voltage of the power supply to obtain the power-on monitoring voltage when the power supply is powered on and the power-off monitoring voltage when the power supply is powered off; the first reset unit generates a first power-on reset signal and a first power-off reset signal based on the power-on monitoring voltage, the power-off monitoring voltage and the reference voltage; the second reset unit generates a second power-on reset signal and a second power-off reset signal based on the power supply voltage, and the generation time of the second power-on reset signal is greater than or equal to the time when the reference voltage is established and less than or equal to the generation time of the first power-on reset signal; the logic combination unit generates a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal, and generates a target power-off reset signal based on the first power-off reset signal and the second power-off reset signal. Thus, the circuit can give a normal reset signal for both slow and fast power on and off of the power supply, and the power-on monitoring voltage and the power-off monitoring voltage are respectively collected through two voltage collection points, so that there is a certain hysteresis interval between the power on and power off reset voltages, which can avoid the reset oscillation phenomenon and improve the stability of the reset circuit.
[0082] Corresponding to the above embodiment, the present invention also proposes a chip.
[0083] Figure 7 FIG. 4 is a block diagram of a chip according to an embodiment of the present invention.
[0084] like Figure 7 As shown, the chip 2000 according to the embodiment of the present invention includes the reset circuit 1000 mentioned above.
[0085] According to the chip of the embodiment of the present invention, through the above-mentioned reset circuit, a normal reset signal can be given for both slow and fast power on and off of the power supply, and the power-on monitoring voltage and the power-off monitoring voltage are respectively collected through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the occurrence of reset oscillation and improve the stability of the chip.
[0086] Corresponding to the above embodiment, the present invention further provides an electronic device.
[0087] like Figure 8 As shown, the electronic device 3000 of the embodiment of the present invention includes the reset circuit 1000 described above; or Fig. 9 As shown, an electronic device 3000 according to another embodiment of the present invention includes the above-mentioned chip 2000 .
[0088] The electronic device according to the embodiment of the present invention can give a normal reset signal for both slow and fast power on and off of the power supply through the above-mentioned reset circuit or chip, and respectively collect the power-on monitoring voltage and the power-off monitoring voltage through two voltage collection points, so that the power-on and power-off reset voltages have a certain hysteresis interval, which can avoid the reset oscillation phenomenon and improve the stability of the electronic device.
[0089] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0090] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0092] 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. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0093] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0094] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A reset circuit, characterized in that: include: A voltage monitoring unit, used to monitor the power supply voltage of the power supply, and obtain a power-on monitoring voltage when the power supply is powered on and a power-off monitoring voltage when the power supply is powered off; a first reset unit, configured to generate a first power-on reset signal and a first power-off reset signal based on the power-on monitoring voltage, the power-off monitoring voltage and a reference voltage; A second reset unit, configured to generate a second power-on reset signal and a second power-off reset signal based on the power supply voltage, wherein the second power-on reset signal is generated at a time greater than or equal to the time when the reference voltage is established and less than or equal to the time when the first power-on reset signal is generated; A logic combination unit is used to generate a target power-on reset signal based on the first power-on reset signal and the second power-on reset signal, and to generate a target power-down reset signal based on the first power-down reset signal and the second power-down reset signal.
2. The reset circuit according to claim 1, characterized in that: The second resetting unit comprises: A delay circuit, used for delaying the output of the power supply voltage; a discharge circuit, used for outputting the power supply voltage when the power supply is powered on, and discharging the power supply voltage when the power supply is powered off; The second reset signal generating circuit is used to generate the second power-on reset signal and the second power-down reset signal based on the power supply voltage output by the discharge circuit.
3. The reset circuit according to claim 2, characterized in that: The delay circuit comprises: A first resistor, one end of which is connected to the power supply; A first capacitor, one end of the first capacitor is respectively connected to the other end of the first resistor and the discharge circuit, and the other end of the first capacitor is grounded.
4. The reset circuit according to claim 2 or 3, characterized in that: The discharge circuit includes: a voltage-controlled current source, one end of which is respectively connected to the delay circuit and the second reset signal generating circuit, and the other end of which is grounded.
5. The reset circuit according to claim 4, characterized in that: The voltage-controlled current source includes: a first switch tube, a first end of the first switch tube is connected to the delay circuit and the second reset signal generating circuit respectively, a second end of the first switch tube is grounded, and a control end of the first switch tube is connected to the power supply.
6. The reset circuit according to claim 2, characterized in that: The second reset signal generating circuit comprises: a second trigger, configured to generate the second power-on reset signal and the second power-down reset signal based on the power supply voltage output by the discharge circuit; a first inverter, configured to invert the second power-on reset signal and the second power-off reset signal once; The second inverter is used for performing a second inversion on the second power-on reset signal and the second power-off reset signal after the first inversion.
7. The reset circuit according to claim 1, characterized in that: The voltage monitoring unit includes a power-on voltage monitoring terminal and a power-off voltage monitoring terminal. The power-on voltage monitoring terminal is used to output the power-on monitoring voltage, and the power-off voltage monitoring terminal is used to output the power-off monitoring voltage.
8. The reset circuit according to claim 7, characterized in that: The voltage monitoring unit also includes: a second resistor, one end of which is connected to the power supply; a third resistor, one end of the third resistor being connected to the other end of the second resistor to form a first connection point, the first connection point serving as the power-off voltage monitoring end; A fourth resistor, one end of the fourth resistor is connected to the other end of the third resistor to form a second connection point, the other end of the fourth resistor is grounded, and the second connection point serves as the power-on voltage monitoring terminal.
9. The reset circuit according to claim 7 or 8, characterized in that: The first resetting unit comprises: A selection circuit, used for selectively outputting the power-on monitoring voltage or the power-off monitoring voltage; A first reset signal generating circuit is used to generate the first power-on reset signal based on the power-on monitoring voltage and the reference voltage, generate the first power-down reset signal based on the power-off monitoring voltage and the reference voltage, and control the selection circuit based on the first power-on reset signal and the first power-down reset signal.
10. The reset circuit according to claim 9, characterized in that: The first reset signal generating circuit comprises: A reference voltage generating circuit, used for generating the reference voltage; a comparator, configured to generate a first power-on reset initial signal based on the power-on monitoring voltage and the reference voltage, and to generate a first power-off reset initial signal based on the power-off monitoring voltage and the reference voltage; a first trigger, configured to generate the first power-on reset signal based on the first power-on reset initial signal, generate the first power-down reset signal based on the first power-down reset initial signal, and control the selection circuit based on the first power-on reset signal and the first power-down reset signal; a third inverter, configured to invert the first power-on reset signal and the first power-down reset signal once, and control the selection circuit based on the first power-on reset signal and the first power-down reset signal after the once inversion; The fourth inverter is used for performing a second inversion on the first power-on reset signal and the first power-off reset signal after the first inversion.
11. The reset circuit according to claim 10, characterized in that: The selection circuit comprises: a first switch, wherein a first end of the first switch is connected to the power-on voltage monitoring end, a second end of the first switch is connected to the first input end of the comparator, and a control end of the first switch is connected to the output end of the third inverter; A second switch, wherein a first end of the second switch is connected to the power-down voltage monitoring end, a second end of the second switch is connected to the first input end of the comparator, and a control end of the second switch is connected to the output end of the first trigger.
12. The reset circuit according to claim 9, characterized in that: The first reset unit further includes: a filter circuit, configured to filter the power-on monitoring voltage and the power-off monitoring voltage.
13. The reset circuit according to claim 1, characterized in that: The logic combination unit includes: an AND gate, which is used to perform an AND operation on the first power-on reset signal and the second power-on reset signal to obtain the target power-on reset signal, and to perform an AND operation on the first power-down reset signal and the second power-down reset signal to obtain the target power-down reset signal.
14. A chip, characterized in that: include: A reset circuit according to any one of claims 1 to 13.
15. An electronic device, characterized in that: include: A reset circuit according to any one of claims 1 to 13, or a chip according to claim 14.
Citation Information
Cited By
Power-on reset circuit based on resistance voltage division type detection
CN121308732A
