MCU minimum system composition and power supply/reset/oscillation circuit analysis

Publisher:Xiaoxue666Latest update time:2015-01-20 Source: dzscKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    The minimum system of the single-chip microcomputer is mainly composed of power supply, reset, oscillation circuit and expansion part. The minimum system schematic is shown in the figure.

   Power Module

    For a complete electronic design, the first problem is to provide a power supply module for the entire system. The stability and reliability of the power supply module is the premise and basis for the smooth operation of the system. Although the 51 single-chip microcomputer has been used for the earliest time and has the widest application range, in actual use, a typical problem is that compared with other series of single-chip microcomputers, the 51 single-chip microcomputer is more susceptible to interference and the program will run away. An important means to overcome this phenomenon is to configure a stable and reliable power supply module for the single-chip microcomputer system.

    Power module circuit diagram

    The power supply module in this minimum system can be powered by the USB port of the computer or by an external stable 5V power supply module. A power indicator LED is connected to the power circuit. R11 in the figure is the current limiting resistor of the LED. S1 is the power switch.

    Reset Circuit

    The setting and resetting of a microcontroller are both to initialize the circuit to a certain state. Generally speaking, the function of a microcontroller reset circuit is to initialize a state machine to an empty state, for example. Inside the microcontroller, when it is reset, the microcontroller loads some registers and storage devices with a value preset by the manufacturer.

    The principle of the microcontroller reset circuit is to connect an external resistor and capacitor to the reset pin RST of the microcontroller to achieve power-on reset. The reset is valid when the reset level lasts for more than two machine cycles. The duration of the reset level must be greater than two machine cycles of the microcontroller. The specific value can be calculated by the time constant of the RC circuit.

    The reset circuit consists of two parts: button reset and power-on reset.

    (1) Power-on reset: The STC89 series single chip is reset at a high level. Usually, a capacitor is connected to VCC on the reset pin RST, and then a resistor is connected to GND. This forms an RC charge and discharge loop to ensure that the RST pin has a high level for a sufficient time to reset the microcontroller when it is powered on, and then returns to a low level to enter normal working state. The typical values ​​of this resistor and capacitor are 10K and 10uF.

    (2) Push-button reset: Push-button reset is to connect a switch in parallel with the reset capacitor. When the switch is pressed, the capacitor is discharged and RST is pulled to a high level. Moreover, due to the charging of the capacitor, the high level will be maintained for a period of time to reset the microcontroller.

    Oscillator Circuit

    There are crystal oscillators in the microcontroller system. The crystal oscillator plays a very important role in the microcontroller system. The full name of the crystal oscillator is crystal oscillator. It combines with the internal circuit of the microcontroller to generate the clock frequency required by the microcontroller. The higher the clock frequency provided by the microcontroller crystal oscillator, the faster the microcontroller runs. The execution of all instructions connected to the chip is based on the clock frequency provided by the microcontroller crystal oscillator.

    Under normal working conditions, the absolute accuracy of ordinary crystal oscillator frequency can reach 50 parts per million. Advanced ones have higher accuracy. Some crystal oscillators can also adjust the frequency within a certain range by applying an external voltage, which is called a voltage-controlled oscillator (VCO). Crystal oscillators use a crystal that can convert electrical energy and mechanical energy to each other in a resonant state to provide stable and accurate single-frequency oscillation.

    The function of the microcontroller crystal oscillator is to provide a basic clock signal for the system. Usually a system shares a crystal oscillator to facilitate synchronization of various parts. Some communication systems use different crystal oscillators for baseband and radio frequency, and synchronize them by electronically adjusting the frequency.

    Crystal oscillators are usually used in conjunction with phase-locked loop circuits to provide the clock frequency required by the system. If different subsystems require clock signals of different frequencies, they can be provided by different phase-locked loops connected to the same crystal oscillator.

    STC89C51 uses an 11.0592MHz crystal oscillator as the oscillation source. Since the microcontroller has an internal oscillation circuit, it only needs to connect a crystal oscillator and two capacitors externally. The capacitance is generally between 15pF and 50pF.

Keywords:MCU Reference address:MCU minimum system composition and power supply/reset/oscillation circuit analysis

Previous article:Digital display eight-way broken wire detector composed of 89C2051 single chip microcomputer
Next article:Understanding MCU from the perspective of integrated circuits

Recommended ReadingLatest update time:2024-11-16 15:49

DC motor PID control speed source code based on STC15 single chip microcomputer chip
STC15W4K56S4 MCU PID controls the speed of the DC motor. The following is a picture of the actual product: The motor runs smoothly after power on L298N controls motor speed STC control panel   The microcontroller source program is as follows: #include "STC15W4K56S2.h" #include "Counter1.h" #include "USART.h" #
[Microcontroller]
DC motor PID control speed source code based on STC15 single chip microcomputer chip
[MCU][N76E003][MCP4017][MCP4018][MCP4019] Digital potentiometer usage example code
7-bit: resistance resolution - 127 resistors (128 steps) -- W /* -----------------------------------------Macro definition-----------------------------------------*/ /* -----------------------------------------head File-----------------------------------------*/ #include "main.h" /* --------------------------
[Microcontroller]
[MCU][N76E003][MCP4017][MCP4018][MCP4019] Digital potentiometer usage example code
AVR MCU design I/O port usage precautions
  1. Correctly set the DDRx direction register before performing read and write operations on the I/O port.   2. The initial state of the I/O port after reset is all input working mode, the internal pull-up resistor is invalid, and the external pin is in a three-state high-impedance input state.   3. When the I/O
[Microcontroller]
Microcontroller Learning - Independent Button 2
Title: The first three digits of the digital tube display a stopwatch, running from 000 to 999 at a speed of 0.01 seconds. When an independent button is pressed, the stopwatch stops, and the second button starts counting, and the third button resets the count value and starts from the beginning. (Using timer interrupt
[Microcontroller]
What kind of microcontroller is the most promising?
This is a question often asked by microcontroller beginners. I don't think anyone dares to make a conclusion on this question. Because each microcontroller has its own strengths and is suitable for the field where it can fully play a role, there is no difference between good and bad. To learn microcontrollers, you sho
[Microcontroller]
Introduction of energy-saving elevator based on AVR microcontroller
1. Project Overview 1.1 Introduction With the development of society, high-rise buildings and intelligent buildings are constantly emerging. As a vertical transportation tool, elevators have been more and more widely used, and people have put forward higher and higher requirements for the service quality and reliable
[Microcontroller]
Introduction of energy-saving elevator based on AVR microcontroller
Design of serial communication between AT89S52 single chip microcomputer and PC
O Introduction Serial communication between microcontroller and PC is also called serial communication between lower and upper computers. This communication method can solve the harm caused by poor working conditions to workers, and can also realize real-time online remote centralized monitoring. The control pla
[Microcontroller]
Design of serial communication between AT89S52 single chip microcomputer and PC
Realization of Master-Slave Communication between PC and Single-Chip Microcomputer
  0 Introduction   The master-slave system composed of PC and MCU is very common and has been applied in many fields. In these systems, serial communication is generally used between PC and MCU to exchange data and instructions in a certain format, so as to complete the control of MCU by PC, forward data, or return
[Microcontroller]
Realization of Master-Slave Communication between PC and Single-Chip Microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号