1. What is 51 microcontroller
The 51-core microcontroller refers to the collective name for microcontrollers that are compatible with Intel's 8051 instruction system; in the decades since its birth, it has become a market-tested and mature chip product. At present, there are many 51 microcontroller manufacturers in China, and there are also many special-purpose microcontrollers with 51 cores used in various scenarios.
51 microcontroller internal frame:
The following takes the STC89C52 microcontroller as an example. Its internal overall structure and its basic characteristics are as follows:
8-bit CPU, 4-8k bytes ROM, 128 bytes RAM, 21 special function registers, 32 I/0 lines, addressable 64 bytes of external data, program storage space, 2 16-bit timer counters Interrupt structure: A bit processor with two priority levels, five interrupt sources, a full-duplex serial port, bit addressing (i.e., bit operation on the register) function, and can perform logical operations on a bit-by-bit basis.
In addition to 128 bytes of RAM, 4-8k bytes of ROM and interrupts, serial ports and timer modules, there are also 4 groups of I/0 ports PO~P3, and the rest is the entire composition of the CPU. Each part of the microcontroller is organically connected through an internal bus.
2. What is the minimum system of 51 microcontroller?
The minimum system of 51 microcontroller is the smallest hardware circuit that allows the microcontroller to work normally. It mainly includes 51 microcontroller chip, crystal oscillator circuit, reset circuit and power supply circuit.
in:
(1) The RST pin is connected to the reset circuit;
(2) XTAL1 and XTAL2 are connected to the crystal oscillator circuit;
(3) VCC and GND are connected to +5V power supply;
(4) Connect the EA pin to +5V or leave it unconnected (connect it to +5V or leave it unconnected, and the microcontroller will start executing the program internally after resetting; connect it to GND, and the program will be executed externally); the ALE and PSEN pins can be left unconnected.
(5) The other 32 pins are the input and output interfaces of the microcontroller.
3. Crystal oscillator circuit
The crystal oscillator circuit is the clock source of the microcontroller, providing a reference source for the microcontroller to execute programs. Its cycle determines the speed at which the microcontroller executes programs.
The crystal oscillator circuit is connected to the inverting amplifier inside the microcontroller to form an oscillator with a specific frequency, providing a stable high-frequency oscillation signal for the microcontroller. For a 12MHz solution, if the load capacitance of the crystal oscillator is 20pF, two external capacitors C1 The appropriate value for C2 is 27pF to 33pF.
4.Reset circuit
When the microcontroller is powered on, a reset signal is needed to put the internal registers, program counter and other internal states of the microcontroller in the initial state. Then the PC counter of the microcontroller can start executing the program in the most initial state.
The 51 microcontroller is a high-level reset, and its reset circuit is an RC circuit, which is composed of a capacitor and a resistor in series. When the system is powered on, the capacitor begins to charge, which is equivalent to a short circuit of the capacitor, and the RST pin is in a high-level state. The microcontroller enters reset state. When the capacitor is fully charged, it is equivalent to an open circuit and the RST pin is in a low level state. This completes the reset operation of the microcontroller.
The K1 button provides a manual reset function. When the button is pressed, the RST pin is high level (capacitor discharge). After the button is released, the RST pin is low level (capacitor charging).
5.Power interface
The final power supply provides +5V power for the minimum system of the microcontroller. Its P1 is the power interface, and S1 is a self-locking switch that can perform power-on and power-off operations. D1 is the power indicator light, allowing users to confirm whether the system is powered on or off during use.
Previous article:Design of terminal firmware upgrade system based on GPRS network transmission
Next article:How to create 51 microcontroller KEIL project steps
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
- How can I reduce noise when the signal generator is giving a small signal?
- (Ended)Touch and grab a building to win gifts: How much do you know about RISC-V manufacturers?
- Summary of configuring 5409's McBSP as an SPI port
- 【FAQ】Microchip Live|Secure configuration of MPU in your factory
- Two MCU Programming Ideas
- How to use TMS320C6416 timer 1 interrupt
- Program burning failed
- What op amp circuit is this?
- Serial port idle interrupt cannot be cleared - Solved
- Low power startup (smart toilet development record)