Parameter calculation of RC automatic reset circuit of single chip microcomputer

Publisher:qin199099Latest update time:2015-08-07 Source: dzscKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In the relevant single-chip circuit, the minimum system includes an RC power-on automatic reset circuit. The RC power-on automatic reset circuit (hereinafter referred to as the RC circuit), as the name implies, automatically gives the RST foot a valid high level or low level to reset the MCU when the system is powered on. Therefore, when building the RC circuit, it is necessary to calculate the values ​​of the resistor and capacitor in the RC circuit.
The following is an example of calculating various parameters using the most common 51 and AVR microcontroller RC circuits:
================================================== =====================================
Example 1: 51 MCU reset circuit
 
Parameter calculation of MCU RC automatic reset circuit (original)
 
 
The simulation waveform in Multisim is as follows:
Parameter calculation of MCU RC automatic reset circuit (original)
 

Analysis: At the moment of power-on, the voltage across the capacitor cannot change suddenly, so the voltage of RST is basically equal to Vcc (that is, the point where the blue line intersects the horizontal axis in the above figure). As time goes by, the voltage waveform of the RST pin is the same as the above figure. Assume that the voltage of the RST pin at the moment of power-on is V0 , the voltage of RST at time t is Vt , and the system power supply voltage is 5V

 

 

Then the following formula holds:Parameter calculation of MCU RC automatic reset circuit (original)


 

Because V0 is equal to Vcc at the moment of power-on , the following equation is obtained (set as equation 1):Parameter calculation of MCU RC automatic reset circuit (original)

 

 

 

In formula 1 , VCC is 5V , e is a constant of 2.71828 , RC depends on the selection of components. Taking the above figure as an example, the RC value is 0.1 , and t is the elapsed time.

Calculate the voltage of the RST pin at t=50ms: , the result is about 3.03VParameter calculation of MCU RC automatic reset circuit (original)

 

 

 

Calculate how long time t has passed when the RST pin is 4V : Parameter calculation of MCU RC automatic reset circuit (original)The result t is 22ms

 [page]

 

================================================== =========================================

AVR microcontroller RC circuit:

:Parameter calculation of MCU RC automatic reset circuit (original)


 

The simulation waveform in Multisim is as follows:

Parameter calculation of MCU RC automatic reset circuit (original)
 

 

Analysis: The analysis method is the same as that of the 51 single-chip microcomputer, but the calculation formula is quite different. Because one end of the capacitor of this RC circuit is connected to the ground, at the moment of power-on, V0 is 0 volts, and Vt is the voltage value after power-on at time t, and the formula is as follows:

 

Parameter calculation of MCU RC automatic reset circuit (original)
 

 

Calculate the voltage of the RST pin after t=50ms when Vcc is 5V: Parameter calculation of MCU RC automatic reset circuit (original)The calculated result Vt is about 1.96v


 

Calculate the value of t when Vcc is 5V and RST pin is 4V: Parameter calculation of MCU RC automatic reset circuit (original)The calculated result is about 160ms

 

Keywords:MCU Reference address:Parameter calculation of RC automatic reset circuit of single chip microcomputer

Previous article:51 MCU crystal oscillator and reset common typical circuit
Next article:51 MCU read and write SD card program

Recommended ReadingLatest update time:2024-11-15 11:02

51 MCU serial communication interruption
Start with a program to realize that the computer sends some data to the microcontroller, and the microcontroller returns Iget + data #include #define uchar unsigned char  #define uint unsigned int unsigned char flag,a,i; //declare the flag bit flag  uchar code table ="I get"  void init()  {   TMOD=0x20; //S
[Microcontroller]
What is used to implement the timing function of the microcontroller? What are the ways?
There are several ways to implement the 2-hour delay function in STM32: 1. Use the delay function You can use the delay function provided by STM32 to implement the delay function. The delay function calculates the delay time based on the CPU clock frequency and delay time. During the delay period, the CPU is in a busy
[Microcontroller]
51 single chip microcomputer ~ photosensor, comparator
1. Photosensitive sensor description: (II) Voltage comparator function: (ii) Output mode: Since the output voltage of the comparator is between 0 and 36V, if Vout is connected to the VCC of the comparator, the voltage of Vout will also output 0 to 36V, causing the comparator to be unable to communicate with the
[Microcontroller]
51 single chip microcomputer ~ photosensor, comparator
51 MCU RS485 communication program simulation and MODBUS RTU static time detailed explanation
The simulation schematic is as follows MODBUS-RTU requires that the data interval in each frame of information must not exceed the static time of 1.5 characters.  Therefore:  (1) When the serial port generates a receive interrupt, the initial value of the "timeout timer" is immediately reloaded. (Note: The initial
[Microcontroller]
51 MCU RS485 communication program simulation and MODBUS RTU static time detailed explanation
Circuit of fixed frequency, width and speed control system based on Atmega8L single chip computer voltage stabilization control
    In order to simulate the deep-sea high-pressure environment, a deep-sea environment simulation test device was developed. Based on the analysis of the structural principle of the control system of the deep-sea environment simulation device, a wide-loop control strategy for pressure was proposed. The main control c
[Microcontroller]
Circuit of fixed frequency, width and speed control system based on Atmega8L single chip computer voltage stabilization control
51 single chip calculator with error correction function
utilities.h #ifndef UTILITIES_H_INCLUDED   #define UTILITIES_H_INCLUDED      typedef unsigned char uchar, BYTE, uint8;   typedef unsigned int uint, WORD, uint16;   typedef unsigned long ulong, DWORD, uint32;   typedef char int8;   typedef int int16;   typedef long int32;   typedef unsigned char * uchar_p; 
[Microcontroller]
The microcontroller generates a 38KHZ square wave at the IO port
/************************************************   This function will continuously generate a 38KHZ square wave at the P3^0 port of the microcontroller. **********************************************/ #include reg51.h //Includes special function register library sbit P3_0=P3^0; void main() { TMOD = 0x02; //TMOD is th
[Microcontroller]
MCU serial communication source code
This test program uses the STC12C4052AD microcontroller, uses the internal crystal oscillator 6M to start the oscillation, and the transmission baud rate is 2400bps. The test was passed on November 17, 2012. Use STC-ISP, V488 version to flash the machine, and use its own serial port assistant program to test. The sourc
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号