Introduction to the topic:
Content: Introduce the basic circuit structure of single chip microcomputer;
Source: Based on comprehensive actual use;
Function: To summarize the circuits required for microcontroller design to avoid omissions;
PCB environment: Altium Designer, PADS;
Date: 2018-03-06;
=====================Dividing line========================
Detailed explanation of the topic:
I have introduced the "STM32" and "STM8" microcontrollers before. For those who are new to microcontrollers, most of them start with the "89C51"; the "89C51" is indeed a "classic microcontroller". Decades ago, microcontroller technology was not well developed, and the popularity of 8-bit microcontrollers was very low. However, the "89C51" gradually occupied the market with its price and performance. Even today, the "89C51" is still used in many occasions; for example, the "automatic door" designed "outside the campus" now has the "89C51" or "89C52" as its "control chip";
But for a "microcontroller", its "basic circuit" consists of four parts: "power supply circuit", "crystal oscillator circuit", "reset circuit" and "download circuit".
1) "Power circuit":
The microcontroller must be provided with a suitable operating voltage. Please note the following two points:
i) It is recommended to connect a "104 capacitor" between the "chip VCC" and "GND" pins, and this capacitor should be as close to the "chip" as possible; since "capacitor filtering" has a "filtering radius", if the distance between the "capacitor" and the required "filtering circuit" exceeds the "filtering radius", this capacitor will lose the "filtering effect" on the "required filtering circuit";
ii) It is not recommended to use a "switching power supply" to directly supply power to the "power supply circuit". Since the "switching power supply" works in a "chopping mode", its output voltage and current have "large pulsations" and its "transient response performance" to "load changes" is also weak. Even if "output π-type circuit filtering" is added, its "stability" when used is still not as good as "LDO chip output". It is recommended to use a "switching power supply" for "first-stage voltage reduction" and then use an "LDO chip" to "power" the "single-chip microcomputer";
2) "Crystal oscillator circuit":
During design, most microcontrollers require an external crystal oscillator circuit to ensure that the microcontroller has a suitable operating frequency. In general, the crystal oscillator circuit does not occupy too much PCB area, but when arranging the crystal oscillator circuit, the following three points should be noted:
i) "Crystal oscillator" is divided into two types: "active crystal oscillator" and "passive crystal oscillator". If it is a "passive crystal oscillator", you need to add a suitable "starting capacitor", otherwise the "crystal oscillator will not work";
ii) The “connecting line” between the “crystal oscillator circuit” and the “single-chip microcomputer” must be a “differential signal line”;
iii) It is recommended to "cover the periphery of the crystal oscillator" to improve the circuit's "stability";
3) “Reset circuit”:
When designing, "reset circuit" is divided into two types: "high level reset" and "low level reset". The following three points should be noted:
i) The "reset circuit" must refer to the "reset method" in the "chip manual" to finally determine the "reset circuit";
ii) The “reset circuit” can use a “special reset chip” or a “simple RC reset”, and the specific parameters are determined according to the needs;
iii) The “reset button” can be omitted in the “reset circuit”, but if “reset device” is required, “power-off reset” is required to “reset device”;
4) "Download Circuit":
During the design, the "download circuit" is necessary for the "single-chip microcomputer circuit", but for "some single-chip microcomputers", "serial port download" can be used to achieve "code download", and when the "single-chip microcomputer" has been burned with "code" or does not need "code update", the "download circuit" is not a "necessary circuit for the operation of the single-chip microcomputer"; therefore, in some cases, the "single-chip microcomputer minimum system circuit" does not include the "download circuit"; specific "comprehensive evaluation" needs to be carried out according to the "actual design requirements";
For MCUs such as "STM32" and "STM8S", it is recommended to use the "SWD download method". Two points should be noted for the "download circuit":
i) If it is in "demo V1.0" (debugging stage), it is recommended to use "pin header" to "connect" the "SWD download" circuit;
ii) If debugging is completed and the device is finally put into practical use, it is recommended to use the "download pad" method for "connection"; you can even use a "customized downloader" for "batch downloading";
Previous article:Detailed explanation of keilMDK compiler warnings and errors
Next article:A simple tutorial on how to generate .bin files using KeilMDK5
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Some strange problems with mm32F103
- [TI mmWave Radar Review] IWR1443 BOOST CLI Commands
- Selection and comparison of reed switches and Hall effect sensors
- [Project source code] [Modelsim FAQ] vsim-3033 Instantiation of 'xxxx' failed
- micropython update: 2020.12
- Collaborative SI-PI-EMI Simulation of Chip-Package-System (CPS)
- [Sipeed LicheeRV 86 Panel Review] The board is not responding
- Use stm32l452 to drive hts221 and stts751 routine
- Will demand for SiC FETs increase in the future?
- Problems with pressure maintenance of testing machine