CN107342758B - Closed-loop control reset circuit based on RC reset module - Google Patents

Closed-loop control reset circuit based on RC reset module Download PDF

Info

Publication number
CN107342758B
CN107342758B CN201710593426.6A CN201710593426A CN107342758B CN 107342758 B CN107342758 B CN 107342758B CN 201710593426 A CN201710593426 A CN 201710593426A CN 107342758 B CN107342758 B CN 107342758B
Authority
CN
China
Prior art keywords
reset
gate circuit
circuit
oscillator
loop control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710593426.6A
Other languages
Chinese (zh)
Other versions
CN107342758A (en
Inventor
朱伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Haosheng Automation Technology Co ltd
Original Assignee
Suzhou Jingcheng Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Jingcheng Intelligent Technology Co ltd filed Critical Suzhou Jingcheng Intelligent Technology Co ltd
Priority to CN201710593426.6A priority Critical patent/CN107342758B/en
Publication of CN107342758A publication Critical patent/CN107342758A/en
Application granted granted Critical
Publication of CN107342758B publication Critical patent/CN107342758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/22Modifications for ensuring a predetermined initial state when the supply voltage has been applied

Landscapes

  • Electronic Switches (AREA)
  • Microcomputers (AREA)

Abstract

A closed-loop control reset circuit based on an RC reset module comprises an RC reset module U1, a NOT gate circuit U2, a NOT gate circuit U3, a single chip microcomputer U4, a resistor R3 and a capacitor C2, wherein the NOT gate circuit U2, the resistor R3 and the capacitor C2 form an oscillator; the default input pin of the singlechip U4 is connected with the input of the oscillator, the output of the oscillator is connected with the input end of the NOT gate circuit U3, and the output end of the NOT gate circuit U3 is connected with the reset pin of the singlechip U4, so that closed-loop control is formed, the problem that the traditional reset mode is controlled in a single direction is solved, the problem that the machine cannot be started due to the failure of normal reset is solved, and the reliability of system reset can be greatly improved.

Description

Closed-loop control reset circuit based on RC reset module
Technical Field
The invention relates to a closed-loop control reset circuit based on an RC reset module, and belongs to the field of single chip Microcomputer (MCU) reset control.
Background
In order to ensure the stable and reliable operation of the circuit in the singlechip system, the reset circuit is an indispensable part, and no matter which type of singlechip is used by a user, the design of the singlechip reset circuit is always involved. The reliability of the whole system work is directly influenced by the design of the reset circuit of the single chip microcomputer. Many users have the phenomena of dead halt, program flying and the like on the site after designing a singlechip system and successfully debugging in a laboratory, which is mainly caused by unreliable design of a reset circuit of the singlechip. The single chip microcomputer is reset when being started, so that the MCU and all parts of the system are in a determined initial state, and the single chip microcomputer starts to work from the initial state. The reset signal of 89 series single-chip computer is inputted into Schmitt trigger in the chip from RST pin. When the system is in normal operation and the oscillator is stable, if there is a high on the RST pin for more than 2 machine cycles (24 oscillation cycles), the MCU can respond and reset the system.
In the prior art, the means for starting the reset circuit mainly include the following: firstly, when the circuit is electrified, the reset operation is immediately carried out; secondly, manual operation can be performed when necessary; and thirdly, the operation is automatically carried out according to the requirements of a program or a circuit. For some conventional resets, an RC manual reset is generally used or a dedicated reset chip is used for resetting. When the traditional reset circuit is powered on during starting, the reset circuit outputs a low level for a certain time to enable the reset chip to be in a reset state, so that reset is completed, the reset action is completed at the moment that an RC reset module or a reset chip is changed from low to high, and then the system starts a normal working mode. The method generally has no great problem for reliable MCU, but many MCU always have the situation that the probability can not be normally started, and the normal start can be restarted again only by re-electrifying the system or manually pressing a reset key. A conventional reset circuit is shown in fig. 1. As can be seen from fig. 1, the existing reset circuits based on the RC reset module are all unidirectional, and it is not known whether the reset IC is really reset, and if the reset IC is an MCU, it is also not known whether the MCU is reset and started normally.
Disclosure of Invention
The invention provides a closed-loop control reset circuit based on an RC reset module, which aims to solve the problem of single direction of the traditional reset mode and overcome the problem of incapability of starting a machine due to failure of normal reset.
This closed-loop control reset circuit based on RC resets module includes RC resets module U1, NOT gate circuit U2, NOT gate circuit U3, singlechip U4, resistance R3, electric capacity C2, its characterized in that: the NOT gate circuit U2, the resistor R3 and the capacitor C2 form an oscillator; the default input pin GPIO2 of the singlechip U4 is connected with the input of an oscillator, the output of the oscillator is connected with the input end of a NOT gate circuit U3, and the output end of the NOT gate circuit U3 is connected with the RESET pin RESET of the singlechip U4. The output end of the oscillator is the output end of a NOT gate circuit U2, the input end of the oscillator is the input end of a NOT gate circuit U2, the input end of the NOT gate circuit U2 is connected with the output end of a NAND gate circuit U2 through a resistor R3, and the input end of the NOT gate circuit U2 is grounded through a capacitor C2. The power supply pin of the RC reset module U1 is grounded through a resistor R1 and a capacitor C1, a reset button is connected in parallel with two ends of the capacitor C1, and the connection point of the resistor R1 and the capacitor C1 is a reset output terminal nRESET. The reset output terminal nRESET of the RC reset module U1 is connected with the cathode of a diode D2 through a current limiting resistor R2, and the anode of a diode D2 is connected with the input terminal of the oscillator. And a default input pin of the singlechip U4 is connected with the ground through a pull-down resistor R4 and is connected with the input end of the oscillator through a diode D1 and a current-limiting resistor R5. And the reset pin of the singlechip U4 is effective in low level. The default state of the default input pin of the singlechip U4 is low level, and the default input pin outputs high level after the singlechip U4 normally operates. The diodes are all Schottky diodes. The discharge time constant of the oscillator is larger than the time required by normal reset of the single chip microcomputer. After the reset button is pressed, the reset output terminal nRESET of the RC reset module U1 outputs low level. The closed-loop control reset circuit can greatly improve the reset reliability of the system.
Drawings
FIG. 1 is a schematic diagram of a conventional reset circuit
FIG. 2 is a schematic diagram of a closed-loop control reset circuit based on an RC reset module according to the present invention
Detailed Description
As shown in fig. 2, the closed-loop control reset circuit of the present invention includes an RC reset module U1, a single chip microcomputer U4, a not gate circuit U2, a not gate circuit U3, a diode D1, a diode D2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a capacitor C1, and a capacitor C2.
The VCC input requirement of the power supply pin of the RC reset module U1 is 3.3V, the power supply pin is grounded through a resistor R1 and a capacitor C1, and the reset button is connected in parallel at two ends of the capacitor C1. When the reset button is pressed, the stored electric energy at the two ends of the capacitor C1 is quickly released, and then after the reset button is released, the power supply VCC charges the capacitor C1 through the resistor R1, and the reset output nrest of the RC reset module U1 becomes high after the low level of about 200ms, so that the process that the reset output nrest of the RC reset module U1 goes from low level to high level is completed. In the normal state, the capacitor C1 ensures that the reset output nrest of the RC reset block U1 is maintained at a high level.
The RESET of the single chip Microcomputer (MCU) U4 is the RESET pin of the MCU, which is active low, i.e., when the pin level is low, it indicates RESET. The GPIO2 of the single chip Microcomputer (MCU) U4 is a default input pin (input pin), the pin is grounded through a pull-down resistor R4, so that the pin can be pulled down in level through the pull-down resistor R4, the GPIO2 is in low level in a default state, and when a program written in the U4 normally runs, the GPIO2 is pulled up, so that the peripheral circuit judges that the program is normally started, and the reset process is finished.
U2 is a non-gate, U2 forms an oscillator with resistor R3 and capacitor C2, and performs level inversion, and U3 is also a non-gate and performs level inversion. And under the coordination of the two NOT gate circuits, the closed-loop control of the reset circuit is realized. The diodes D1 and D2 are schottky diodes, which can achieve fast response and unidirectional conduction, and reduce loss by using their small voltage drop. The resistor R5 and the resistor R2 are current limiting resistors and play a role in limiting current, and the resistor R3 is matched with the capacitor C2 to finish the design of a discharge time constant.
The working process of the closed-loop control reset circuit is as follows: when the reset button is pressed, the RC reset module U1 immediately outputs low level, keeps the low level for about 200ms, and then becomes high level, during the low level keeping period of 200ms, if the system program is normally started, the GPIO2 is pulled high, the process of system reset is completed, if the U4 is not normally started, the GPIO2 will keep low level, then the PIN5 of the U2 inputs low level, the PIN 465 of the U2 outputs high level, the PIN6 of the U5857323 outputs low level, since the PIN6 of the U2 is high level and the PIN5 is low level, then the capacitor C2 is charged through the resistor R3, when the level on the capacitor C2 reaches the input high level threshold of the U2, the PIN5 of the U2 becomes high level, the PIN6 of the U2 outputs low level, then the 3 of the U3 outputs high level, if the U3 is not normally reset, the above process is cycled, so that the above process forms a square wave at the low PIN 3 of the PIN 3, the duty ratio and time of the square wave are determined by the values of the resistor R3 and the capacitor C2, that is, the charging and discharging time of the capacitor, the waveform of the PIN6 of the U3 is opposite to the waveform of the PIN6 of the U2, and is also a square wave of high and low levels, as long as the U4 is not RESET, the square wave will always occur and form high and low levels on the RESET PIN RESET of the U4, the width of the low level is larger than the time required by the normal RESET of the U4, until the U4 completes the normal RESET procedure and operates, once the U4 completes the RESET at the moment when the PIN 4 of the U4 becomes high level, the GPIO 4 immediately outputs high level, at this time, the PIN 4 of the U4 is high level, the PIN 4 is low level, the square wave oscillator composed of the U4, the R4 and the C4, the PIN 4 of the U4 keeps high level, the system completes the whole RESET procedure, and the whole procedure is formed by the input PIN 4 of the RC RESET module U4, the inverter composed of the U4, the PIN 4, the oscillator 4, therefore, the whole closed-loop process is completed, the absolute closed loop of the system is ensured, the MCU is successfully reset, and the program is operated.

Claims (6)

1. The utility model provides a closed loop control reset circuit based on RC resets module, this reset circuit include RC resets module U1, NOT gate circuit U2, NOT gate circuit U3, singlechip U4, resistance R3, electric capacity C2, its characterized in that: the NOT gate circuit U2, the resistor R3 and the capacitor C2 form an oscillator; a GPIO2 default input pin of a singlechip U4 is connected with the input of an oscillator, the output of the oscillator is connected with the input end of a NOT gate circuit U3, the output end of the NOT gate circuit U3 is connected with a RESET pin RESET of a singlechip U4, the output end of the oscillator is the output end of a NOT gate circuit U2, the input end of the oscillator is the input end of a NOT gate circuit U2, the input end of the NOT gate circuit U2 is connected with the output end of a NAND gate circuit U2 through a resistor R3, the input end of the NOT gate circuit U2 is grounded through a capacitor C2, a power supply pin of the RC RESET module U1 is grounded through a resistor R1 and a capacitor C1, a RESET button is connected in parallel with two ends of a capacitor C1, the connection point of the resistor R1 and the capacitor C1 is a RESET output end nRESET, the RESET output end nRESET of the RC RESET module U1 is connected with the cathode of a diode D2 through a current limiting resistor R2, the anode of a diode D2 is connected, and is connected with the input end of the oscillator through a diode D1 and a current limiting resistor R5.
2. The RC reset module based closed-loop control reset circuit of claim 1, wherein: and the reset pin of the singlechip U4 is effective in low level.
3. The RC reset module based closed-loop control reset circuit of claim 1, wherein: the default state of the default input pin of the singlechip U4 is low level, and the default input pin outputs high level after the singlechip U4 normally operates.
4. The RC reset module based closed-loop control reset circuit of claim 1, wherein: the diodes are all Schottky diodes.
5. The RC reset module based closed-loop control reset circuit of claim 1, wherein: the discharge time constant of the oscillator is larger than the time required by normal reset of the single chip microcomputer.
6. The RC reset module based closed-loop control reset circuit of claim 1, wherein: after the reset button is pressed, the reset output terminal nRESET of the RC reset module U1 outputs low level.
CN201710593426.6A 2017-07-20 2017-07-20 Closed-loop control reset circuit based on RC reset module Active CN107342758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710593426.6A CN107342758B (en) 2017-07-20 2017-07-20 Closed-loop control reset circuit based on RC reset module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710593426.6A CN107342758B (en) 2017-07-20 2017-07-20 Closed-loop control reset circuit based on RC reset module

Publications (2)

Publication Number Publication Date
CN107342758A CN107342758A (en) 2017-11-10
CN107342758B true CN107342758B (en) 2020-11-27

Family

ID=60217198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710593426.6A Active CN107342758B (en) 2017-07-20 2017-07-20 Closed-loop control reset circuit based on RC reset module

Country Status (1)

Country Link
CN (1) CN107342758B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368171B (en) * 2017-07-20 2019-10-22 北京永安多谱检测科技有限公司 A kind of reset circuit of closed-loop control

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5329174A (en) * 1992-10-23 1994-07-12 Xilinx, Inc. Circuit for forcing known voltage on unconnected pads of an integrated circuit
CN201298160Y (en) * 2008-08-11 2009-08-26 比亚迪股份有限公司 Reset circuit for singlechip
CN101873125A (en) * 2009-04-22 2010-10-27 北京芯技佳易微电子科技有限公司 Reset circuit
CN102761322A (en) * 2011-04-28 2012-10-31 飞兆半导体公司 Power-on reset circuit and reset method thereof
CN102832915A (en) * 2012-08-23 2012-12-19 中国科学院微电子研究所 Programmable power-on reset system
CN103218025A (en) * 2013-04-25 2013-07-24 北京空间机电研究所 Modified Xilinx FPGA power-on reset circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5329174A (en) * 1992-10-23 1994-07-12 Xilinx, Inc. Circuit for forcing known voltage on unconnected pads of an integrated circuit
CN201298160Y (en) * 2008-08-11 2009-08-26 比亚迪股份有限公司 Reset circuit for singlechip
CN101873125A (en) * 2009-04-22 2010-10-27 北京芯技佳易微电子科技有限公司 Reset circuit
CN102761322A (en) * 2011-04-28 2012-10-31 飞兆半导体公司 Power-on reset circuit and reset method thereof
CN102832915A (en) * 2012-08-23 2012-12-19 中国科学院微电子研究所 Programmable power-on reset system
CN103218025A (en) * 2013-04-25 2013-07-24 北京空间机电研究所 Modified Xilinx FPGA power-on reset circuit

Also Published As

Publication number Publication date
CN107342758A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN109194317B (en) Reset circuit and wearable equipment
CN102081558B (en) Watchdog circuit in on-board unit and on-board unit
CN204810248U (en) Power delay switch circuit and have terminal of this circuit
US20160380451A1 (en) Overcurrent protection circuit and method for battery discharge
CN203643779U (en) Outage wake-up circuit of ammeter metering terminal
CN105468470B (en) D-trigger watchdog MCU monitoring circuit and use method thereof
CN107342758B (en) Closed-loop control reset circuit based on RC reset module
CN106787739A (en) Produce the power-supplying circuit and power circuit of sequential
CN201937560U (en) Reset circuit
CN103713912B (en) A kind of computer automatic boot circuit
CN205453082U (en) Anti latch circuit based on current detection
CN102868387B (en) A kind of level saltus step reset IC design circuit
CN107368171B (en) A kind of reset circuit of closed-loop control
CN206948673U (en) A kind of BUCK type LED drive circuits for preventing lower electric backflash
CN204258758U (en) A kind of power down does not produce the reset circuit of reset signal
CN209462355U (en) Time-delay reset circuit and electronic equipment
CN104965579A (en) Long press key reset circuit of device microprocessor and complex function method thereof
CN206757593U (en) Watchdog circuit for concentrator
CN203520090U (en) Hand-held terminal hard switching circuit
CN106151087A (en) A kind of fan stall observation circuit
CN201966879U (en) Reset circuit
CN112165246B (en) Power supply chip self-restarting device, method and system
CN210157163U (en) Starting circuit
CN205015670U (en) Dual power supply and outage time schedule control device
CN208062858U (en) A kind of electric power management circuit for hand-held equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201105

Address after: 215000 station 1709-11, 17 / F, building 4, 209 Zhuyuan Road, high tech Zone, Suzhou City, Jiangsu Province (cluster registration)

Applicant after: Suzhou Jingcheng Intelligent Technology Co.,Ltd.

Address before: 100000 Beijing City, Chaoyang District Huizhong Lane 102 Building No. 507

Applicant before: Zhu Wei

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240115

Address after: F13, 5th Floor, No. 59 Tiyu West Road, Tianhe District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Haosheng Automation Technology Co.,Ltd.

Address before: 215000 station 1709-11, 17 / F, building 4, 209 Zhuyuan Road, high tech Zone, Suzhou City, Jiangsu Province (cluster registration)

Patentee before: Suzhou Jingcheng Intelligent Technology Co.,Ltd.