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.
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
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [Zero-knowledge ESP8266 tutorial] Quick Start 12- Making a flame alarm
- Ask: MOS tube switch circuit
- Introduction to the classification and manufacturing methods of PCB copper-clad laminates
- Problems that should be paid attention to in the development and design of TMS320C2XX
- Goodbye 2018, hello 2019
- STM32 related altium library files (F0, F1, F2, F3, F4, etc.)
- "Me and Intel SoC FPGA" + ARM hardcore development that is difficult to understand
- STM32L151C8T6 wake-up problem from standby mode
- A brief discussion on the causes of blistering on the copper electroplating board surface of the circuit board
- Friends who don't know how to start power supply design, please take a look at the good things shared by TI designers