The 51 series is the most widely used microcontroller. Due to its reasonable hardware structure, standardized instruction system, and "long" production history, it has the advantage of being the first to come first. Many well-known chip companies in the world have purchased the core patented technology of the 51 chip and expanded its performance based on it, further improving the chip and forming a huge system that is still being renovated to this day. The world of microcontrollers is abuzz.
Another advantage of the 51 series is the multiplication and division instructions, which also bring convenience to programming. The division instruction of dividing eight bits by eight bits has a quotient of eight bits, which is not accurate enough and is not used much. As for the multiplication instruction of eight bits by eight bits, the product is sixteen bits, the accuracy can still meet the requirements, and it is used more often. When doing multiplication, only one instruction is needed. Many eight-bit microcontrollers do not have the multiplication function. When doing multiplication, you have to write a subroutine call, which is very inconvenient.
The I/O pins of the 51 series are very simple to set up and use, but they have no output capability when the level is high, which can be said to have advantages and disadvantages. Therefore, other series of microcontrollers (such as PIC series, AVR series, etc.) have improved the I/O port and added a direction register to determine input or output, but the use has also become complicated.
At the same time, the original 51 series also has many areas worthy of improvement, such as too slow running speed. When the crystal oscillator frequency is 12MHz, the machine cycle reaches 1μs, which obviously cannot meet the needs of modern high-speed operation. The product models produced by Winbond are W77 series and W78 series. The W78 series is fully compatible with the AT89C series. The W77 series is an enhanced version, which has improved the timing of the original 8051. Each machine cycle is changed from 12 clock cycles to 4 cycles, which triples the speed. At the same time, the crystal oscillator frequency can reach up to 40MHz. The W77 series also adds watchdog WatchDog, two sets of uARTs, two sets of DVTR data pointers, ISP and other functions.
The PIC microcontroller CPU adopts a RISC structure, with 33, 35, and 58 instructions (depending on the level of the microcontroller), and is a reduced instruction set. The 51 series has 111 instructions and the AVR microcontroller has 118 instructions, both of which are more complex than the former. It adopts the Haryard dual bus structure and has fast running speed (instruction cycle is about 160~200nS). It can enable parallel processing of program memory access and data memory access. This instruction pipeline structure completes two parts of the work in one cycle. One is To execute instructions, the second is to fetch the next instruction from the program memory, so that in general each instruction only takes one cycle (except for a few), which is also one of the reasons for high-efficiency operation. In addition, it also has the characteristics of low operating voltage, low power consumption, and strong driving capability.
The special registers of this series of microcontrollers are not concentrated in a fixed address range (80~FFH) like the 51 series, but are scattered in four address ranges, namely memory bank 0 (Bank0: 00-7FH), Bank 1 (Bankl: 80-FFH), Bank 2 (Bank2: 100-17FH), Bank 3 (Bank3: 180-1FFH). Only 5 special registers PCL, STATUS, FSR, PCLATH, and INTCON appear in 4 memory bodies at the same time.
During the programming process, it is inevitable to deal with special registers and repeatedly select the corresponding memory bank, that is, set or clear bit 6 (RPl) and bit 5 (RPO) of the status register STATUS. This brings some trouble to programming. For the above-mentioned microcontroller, its bit instruction operations are usually limited to the memory bank 0 interval (00~7FH). Data transmission and logical operations basically have to be carried out through the working register w (equivalent to the accumulator A of the 5l series), and the 51 series can also be directly transmitted to each other through registers (such as: MOV30H, 20H; register 20H The content is directly transferred to register 30H), so the bottleneck phenomenon of PIC microcontroller is more serious than that of 51 series, which is very noticeable in programming.
Bus structure: The bus structure of the MCS-51 microcontroller is a von Neumann type. The computer fetches instructions and data in the same storage space, and the two cannot be performed at the same time; while the bus structure of the PIC microcontroller is a Harvard structure, and the instruction and data spaces are Completely separated, one for instructions and one for data. Since the program and data can be accessed at the same time, the data throughput rate is improved. Because the Harvard dual-bus structure is used in the PIC microcontroller, one thing that is different from common microcontrollers is that the program and data buses can use different widths. The data buses are all 8-bit, but the instruction bus digits are 12, 14, and 16 bits respectively.
Pipeline structure: The instruction fetching and execution of the MCS-51 microcontroller adopts a single instruction pipeline structure, that is, fetching one instruction and then fetching the next instruction after execution; while the instruction fetching and execution of the PIC adopts a dual instruction pipeline structure. When an instruction is executed When, the next instruction is allowed to be fetched at the same time, thus realizing a single-cycle instruction. Register group: All registers of the PIC microcontroller, including I/O ports, timers and program counters, etc., adopt the RAM structure, and only require one instruction cycle to complete access and operation; while the MCS-51 microcontroller requires two or It takes more than two cycles to change the contents of the register.
The remarkable features of AVR microcontroller are high performance, high speed and low power consumption. It cancels the machine cycle, uses the clock cycle as the instruction cycle, and implements pipeline operations. AVR microcontroller instructions are in word units, and most instructions are single-cycle instructions. In a single cycle, this instruction function can be executed and the reading of the next instruction can be completed at the same time. There are a total of 32 general-purpose registers (RO-R31). The first 16 registers (R0~R15) cannot directly deal with immediate data, so the versatility is reduced. In the 5l series, all its general-purpose registers (addresses 00-7FH) can directly deal with immediate data, which is obviously better than the former.
The AVR series does not have a structure similar to the accumulator A. It mainly implements the function of A through the R16~R31 registers. In the AVR, there is no data pointer DPTR like the 5l series, but three 16-bit registers: It completes the function of the data pointer (equivalent to three sets of DPTR), and can also perform post-increment or first-decrement operations. In the 51 series, all logical operations must be performed in A; but AVR can be performed between any two registers, eliminating the need to go back and forth in A. These are better than the 51 series.
Previous article:Design of digital voltmeter based on ADC0809 and AT89S52 microcontroller
Next article:Detailed explanation of multi-digit LED display hardware circuit design
Recommended ReadingLatest update time:2024-11-16 13:06
- Popular Resources
- Popular amplifiers
- Dual Radar: A Dual 4D Radar Multimodal Dataset for Autonomous Driving
- Semantic Segmentation for Autonomous Driving: Model Evaluation, Dataset Generation, Viewpoint Comparison, and Real-time Performance
- Machine Learning and Embedded Computing in Advanced Driver Assistance Systems (ADAS)
- Intelligent program synthesis framework and key scientific problems for embedded software
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
- MSP430 Development Red Book
- In Keil, there must be one project file (target) corresponding to one source group, and one source group corresponding to one C file?
- How to consider electromagnetic compatibility (EMC/EMI) when designing PCB?
- [Xiangyin Review] JBL QUANTUM TWS Review——The Pioneer of 1,000-yuan Dual-mode Gaming Noise Cancelling Headphones
- i.MX6ULL Embedded Linux Development——by DDZZ669
- The three-phase high current (30A~40A) of the motor is connected through the PCB, and the heat dissipation hole blind hole problem
- Common problems when isolating signal and power designs
- STM32CubeMX uses LL library to set PWM output
- Unboxing of SenSortile.Box and solutions and suggestions for some issues
- EEWORLD University ---- Key Isolation Gate Driver Specifications