-- 51, MSP430, STM32, PIC, AVR, STC, Freescale
Microcontrollers are now everywhere, with a wide variety of types, making developers overwhelmed, and the development is also quite rapid. From the 1980s, from the 4-bit and 8-bit microcontrollers at that time to the various high-speed microcontrollers now...
Various manufacturers have also been up and down in speed, memory, and functions. At the same time, a large number of manufacturers with representative microcontrollers have emerged: Atmel, TI, ST, MicroChip, ARM... The domestic Hongjing STC microcontroller is also remarkable...
The following is a comparison of the advantages and disadvantages of 51, MSP430, TMS, STM32, PIC, AVR, and STC microcontrollers and their functional performance...
51 single chip microcomputer
The most widely used 8-bit microcontroller is of course also the easiest one for beginners to learn. It was first introduced by Intel. Due to its typical structure and centralized management of perfect bus-specific registers, numerous logic bit operation functions and rich control-oriented instruction system, it can be called a "classic" of a generation, laying the foundation for the development of other microcontrollers in the future.
The main reasons why the 51 single-chip microcomputer has become a classic and easy-to-use single-chip microcomputer are as follows:
characteristic:
1. From the internal hardware to the software, there is a complete bit-by-bit operating system, called a bit processor, which processes bits instead of words or bytes. It can not only process certain bits of special function registers in the chip, such as transfer, set, clear, test, etc., but also perform bit logic operations. Its functions are very complete and easy to use.
2. At the same time, a dual-function address range is specially opened in the on-chip RAM area, which is extremely flexible to use. This function undoubtedly provides great convenience to users.
3. Multiplication and division instructions, which also brings convenience to programming. Many 8-bit microcontrollers do not have multiplication functions, and when performing multiplication, you have to program a subroutine call, which is very inconvenient.
Disadvantages: (Although it is a classic, the disadvantages are still obvious)
1. AD, EEPROM and other functions need to be expanded, increasing the burden on hardware and software
2. Although the I/O pins are easy to use, they have no output capability when the voltage is high, which is also the biggest weakness of the 51 series microcontrollers.
3. The running speed is too slow, especially the dual data pointer. If it can be improved, it will bring great convenience to programming.
4. 51 has poor protection capability and can easily burn out the chip
Applications:
At present, it is widely used in teaching occasions and occasions with low performance requirements.
Most used devices: 8051, 80C51
Learn about the full range of 8051 microcontrollers: a comprehensive analysis of the time-tested 8051 architecture microcontroller
MSP430 MCU
The MSP430 series of microcontrollers is a 16-bit ultra-low-power mixed signal processor that Texas Instruments began to market in 1996. The biggest highlight left to people is its low power consumption and high speed, flexible assembly language, many addressing modes, few instructions, and easy to use. This is mainly due to its integration of many analog circuits, digital circuits and microprocessors on one chip to provide a "single-chip" solution in response to actual application needs. Its rapid development and continuous expansion of its application scope are mainly due to the following characteristics…
characteristic:
1. Powerful processing capability, using a reduced instruction set (RISC) structure, with a variety of addressing modes (7 source operand addressing, 4 destination operand addressing), concise 27 core instructions and a large number of simulation instructions; a large number of registers and on-chip data memory can participate in a variety of operations; there are also efficient table lookup processing instructions; with a high processing speed, the instruction cycle is 125 ns under 8MHz crystal drive. These features ensure that a highly efficient source program can be compiled
2. In terms of operation speed, it can achieve a 125ns instruction cycle under the drive of 8MHz crystal. The combination of 16-bit data width, 125ns instruction cycle and multi-function hardware multiplier (capable of multiplication and addition) can realize certain algorithms of digital signal processing (such as FFT, etc.)
3. Ultra-low power consumption: The reason why the MSP430 microcontroller has ultra-low power consumption is that it has its own unique features in reducing the chip power supply voltage and flexible and controllable operating clock. The power supply voltage is 1.8~3.6V. Therefore, when it runs under the clock condition of 1MHz, the current of the chip will be around 200~400uA, and the minimum power consumption in the clock shutdown mode is only 0.1uA.
shortcoming:
1. I personally feel that it is not easy to get started, not suitable for beginners, and there is little information, so you can only go to the official website to find it
2. The instruction space occupied is large, because it is a 16-bit microcontroller, the program is in words, and some instructions actually occupy 6
Although the program is concise on the surface, it takes up a lot of space compared to the PIC microcontroller.
Applications:
It is widely used in low-power and ultra-low-power industrial applications
Most used devices: MSP430F series (Chinese information), MSP430G2 series, MSP430L09 series
Learn about the full range of MSP430 products: a comprehensive look at the entire family of MSP430 microcontrollers
TMS MCU
Here we should also mention the TMS series of microcontrollers, although they are not mainstream. The 8-bit CMOS microcontroller launched by TI has multiple storage modes and multiple peripheral interface modes, and is suitable for complex real-time control occasions. Although not as good as STM32, nor as ostentatious as MSP430, the TMS370C series of microcontrollers provides cost-effective real-time system control by integrating advanced peripheral function modules and memory configurations of various chips. At the same time, it is implemented using high-performance silicon-gate CMOS EPROM and EEPROM technology. Low operating power consumption CMOS technology, wide operating temperature range, noise suppression, coupled with high performance and rich on-chip peripheral functions, make the TMS370C series of microcontrollers have certain applications in automotive electronics, industrial motor control, computers, communications and consumer electronics.
The most used device: TMS370C256A
STM32 MCU
The STM32 series of microcontrollers launched by ST are known to all industry friends as being a series of microcontrollers with the highest cost-performance ratio, and they are extremely powerful. They are based on the ARM Cortex-M core designed specifically for embedded applications that require high performance, low cost, and low power consumption, and have first-class peripherals: 1μs dual 12-bit ADC, 4Mbit/s UART, 18Mbit/s SPI, etc. They also have excellent performance in terms of power consumption and integration. Of course, compared with the power consumption of MSP430, they are slightly inferior, but this does not affect the engineers' enthusiasm for them. Due to their simple structure and easy-to-use tools combined with their powerful functions, they are well-known in the industry... Their powerful functions are mainly reflected in:
characteristic:
1.Core: ARM32-bit Cortex-M3CPU, maximum operating frequency 72MHz, 1.25DMIPS/MHz, single-cycle multiplication and hardware division
2. Memory: On-chip integrated 32-512KB Flash memory and 6-64KB SRAM memory
3. Clock, reset and power management: 2.0-3.6V power supply and I/O interface drive voltage. POR, PDR and programmable voltage detector (PVD). 4-16MHz crystal oscillator. Embedded 8MHz RC oscillator circuit adjusted before delivery. Internal 40 kHz RC oscillator circuit. PLL for CPU clock. Calibrated 32kHz crystal oscillator for RTC
4. Debug mode: Serial Debug (SWD) and JTAG interface. Up to 112 fast I/O ports, up to 11 timers, up to 13 communication interfaces
Most used devices: STM32F103 series, STM32 L1 series, STM32W series
Learn about the full range of STM32 products: STM32 microprocessor full range members
PIC Microcontroller
PIC microcontroller series is a product of Microship in the United States. It is divided into three levels, namely basic, intermediate and advanced. It is one of the microcontrollers with the fastest market share growth. The CPU adopts RISC structure, with 33, 35 and 58 instructions respectively, which belongs to the reduced instruction set. At the same time, it adopts Harvard dual bus structure, which runs fast. It can make the access of program memory and data memory processed in parallel. This instruction pipeline structure completes two parts of work in one cycle, one is to execute instructions, and the other is to fetch the next instruction from the program memory. In this way, each instruction only needs one cycle, which is one of the reasons for high efficiency operation. In addition, the reason why PIC microcontroller has become a very popular microcontroller for a while is nothing more than the following features:
Features:
1. It has the characteristics of low operating voltage, low power consumption, strong driving ability, etc. The I/O port of the PIC series microcontroller is bidirectional, and its output circuit is a CMOS complementary push-pull output circuit. The I/O pin has a direction register for setting the input or output state, thus solving the problem that the 51 series I/O pin is both input and output when it is at a high level. [page]
2. When set to 1, it is in input state, and no matter whether the pin is at a high level or a low level, it is in a high impedance state to the outside; when set to 0, it is in output state, no matter what level the pin is at, it is in a low impedance state, with considerable driving capability, low-level absorption current up to 25mA, high-level output current up to 20mA. Compared with the 51 series, this is a great advantage
3. It can directly drive the digital tube display and the external circuit is simple. Its A/D is 10 bits, which can meet the accuracy requirements. It has online debugging and programming (ISP) functions.
Disadvantages:
Its special registers (SFR) are not concentrated in a fixed address range (80~FFH) like the 51 series, but are scattered in four address ranges. Only 5 special registers PCL, STATUS, FSR, PCLATH, and INTCON appear in 4 storage bodies at the same time, but in the programming process, it is inevitable to deal with special registers. The corresponding storage body must be repeatedly selected, that is, the 6th bit (RP1) and the 5th bit (RP0) of the status register STATUS are set or cleared. Data transmission and logical operations are basically carried out through the working register W (equivalent to the accumulator A of the 51 series), and the 51 series can also be directly transmitted between registers. Therefore, the bottleneck phenomenon of PIC microcontrollers is more serious than that of the 51 series. Friends who are engaged in programming should have a deep understanding of this.
Most used devices: PIC16F873, PIC16F877
AVR MCU
AVR microcontroller is a relatively new microcontroller launched by Atmel, and its notable features 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 operation. AVR microcontroller instructions are in words, and most instructions are single-cycle instructions. A single cycle can execute the function of the current instruction and complete the reading of the next instruction at the same time. Usually the clock frequency is 4 to 8MHz, so the shortest instruction execution time is 250 to 125ns. The AVR microcontroller has become a relatively popular microcontroller recently, and its main features are:
Features:
1. The AVR series does not have a structure similar to the accumulator A. It mainly uses registers R16 to R31 to implement the function of A. In AVR, there is no data pointer DPTR like the 51 series. Instead, three 16-bit registers X (composed of R26 and R27), Y (composed of R28 and R29), and Z (composed of R30 and R31) complete the function of the data pointer (equivalent to three groups of DPTR), and can also perform post-increment or pre-decrement operations. In the 51 series, all logical operations must be performed in A; while 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.
2. AVR's dedicated registers are concentrated in the 00-3F address range. Unlike PIC, there is no need to select the storage bank first, which makes it more convenient to use. The address range of AVR's on-chip RAM is 0-00DF (AT90S2313) and 0060-025F (AT90S8515, AT90S8535). They occupy the address of the data space. These on-chip RAMs are only used to store data and usually do not have the function of general registers. When the program is complex, the general registers R0-R31 are not enough; the 51 series has up to 128 general registers (four times that of AVR), so you won't feel this way when programming.
3. AVR's I/O pins are similar to PIC, and it also has a direction register for controlling input or output. In the output state, the high-level output current is about 10mA, and the low-level sink current is 20mA. Although this is not as good as PIC, it is still better than the 51 series...
shortcoming:
1. There is no bit operation, all the related register bits are controlled and judged in byte form
2. There are big differences in the writing style between C language and 51's C language, which makes those who are just starting to learn 51 microcontrollers very uncomfortable
3. There are 32 general registers (R0~R31), and the first 16 registers (R0~R15) cannot directly deal with immediate values, so the versatility is reduced. In the 51 series, all its general registers (address 00~7FH) can directly deal with immediate values, which is obviously better than the former.
Most used devices: ATUC64L3U, ATxmega64A1U, AT90S8515
STC MCU
When it comes to STC microcontrollers, some people will say that STC can also be considered mainstream, and I guess they will be criticized~~ We are talking about it based on the fact that it is a relatively good microcontroller in China. STC microcontrollers are single-clock/machine cycle microcontrollers produced by Hongjing. To put it bluntly, STC microcontrollers are a combination of 51 and AVR. Some people say that AVR is a replacement microcontroller for 51, but there are great differences in bit control and C language writing of AVR microcontrollers. The STC microcontroller combines the advantages of 51 and AVR. Although its functions are not as powerful as AVR, the functions found in AVR are basically available on STC. At the same time, the STC microcontroller is a 51 core, which provides great convenience for engineers who use 51 microcontrollers as the basis, saving the time of learning AVR, while also retaining the various functions of AVR...
STC microcontroller is a new generation of 8051 microcontroller with high speed, low power consumption and strong anti-interference. The instruction code is fully compatible with the traditional 8051, but the speed is 8~12 times faster. It has an internal integrated MAX810 dedicated reset circuit. 4-channel PWM 8-channel high-speed 10-bit A, D conversion, for motor supplier control, strong interference occasions, becoming a new series of microcontrollers after 51 microcontrollers...
characteristic:
1. Downloading and burning programs through the serial port is convenient and easy to use. It has a lot of learning materials and videos. The most famous
It has a wide voltage range of 5.5-3.8V, 2.4-3.8V, low power consumption design: idle mode, power-down mode (can be woken up by external interrupt)
2. STC microcontroller has in-application programming, which is convenient for debugging; it has 10-bit AD, internal EEPROM,
It can work at 1T/machine cycle, which is 8~12 times faster than the traditional 51 MCU and is cheaper.
3. 4-channel capture/compare unit, STC12C2052AD series has 2 channels, which can also be used to realize 4 more timers or 4 external interrupts, 2 hardware 16-bit timers, compatible with ordinary 8051 timers. 4-way PCA can also realize 4 more timers, with hardware watchdog, high-speed SPI communication port, full-duplex asynchronous serial port, compatible with ordinary 8051 serial port, and also has advanced instruction set structure, compatible with ordinary 8051 instruction set
PS:
Although the STC microcontroller is not as powerful as AVR and STM32, and its price is not as cheap as 51 and ST32, these are not important. What is important is that it is a relatively outstanding domestic microcontroller. I hope that domestic microcontrollers can continue to prosper...
The most used device: STC12C2052AD (Chinese data)
Freescale MCU
Mainly for S08, S12 and other MCUs, of course Freescale MCUs are far from this. Freescale series MCUs adopt Harvard structure and pipeline instruction structure, and they have shown low cost and high performance in many fields. Its architecture saves a lot of time for product development. In addition, Freescale provides a variety of integrated modules and bus interfaces, which can play a more flexible role in different systems! The unique features of Freescale MCUs are as follows:
1. Full range: from low-end to high-end, from 8-bit to 32-bit, the full range is available. The 8-bit/32-bit pin-compatible QE128 launched by the company can be directly ported from 8-bit to 32-bit, making up for the missing link in the 8/32-bit compatible architecture of the MCU industry.
2. Multiple system clock modules: three modules, seven working modes. Multiple clock source input options, different MCUs have different clock generation mechanisms, which can be RC oscillators, external clocks or crystal oscillators, or internal clocks. Most CPUs have the above three modules at the same time! It can run in seven working modes: FEI, FEE, FBI, FBILP, FBE, FBELP, STOP
3. Multiple communication module interfaces: Freescale microcontrollers integrate almost all kinds of communication interface modules internally: including serial communication interface module SCI, multi-master I2C bus module, serial peripheral interface module SPI, MSCAN08 controller module, universal serial bus module (USB/PS2)
4. More optional modules: LCD driver module, temperature sensor, UHF transmitter module, synchronous processor module, MCU with synchronous processor also has screen display module OSD, and a few MCUs have ring detection module RING and dual-tone multi-frequency/tone generator DMG module
5. High reliability, strong anti-interference, multiple pin counts and package options
6. Low power consumption. The power consumption of Freescale series microcontrollers may not be as low as that of MSP430, but it has two fully static modes, "wait" and "stop", which can reduce your power consumption overall! Several recently launched ultra-low power consumption models are comparable to MSP430!
Most used devices: MC9S12G series
If we really want to rank these microcontrollers, then if you want to follow the crowd, the 51 microcontroller is undoubtedly the first choice; if you pursue ultra-high cost performance, STM32 will be your ideal choice; if you desire ultra-low power consumption, MSP430 will definitely not let you down; if you want to support domestic products, STC will make you excited...
Which of these seven mainstream MCUs is the best? I believe you should know it now~~
Some friends will say that Renesas MCU has the largest sales volume, and is widely used in the automotive electronics industry, with good stability, but I personally don't like Japanese products, so I haven't used Renesas products. This varies from person to person, but it is undeniable that its large sales volume must have its merits, and I hope my colleagues understand this~~
Previous article:Design of low power single-phase photovoltaic grid-connected inverter
Next article:Design of a new LED shadowless lamp control system based on LM3402
- Popular Resources
- Popular amplifiers
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
- 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 Main Memory Bootloader Introduction
- ADS software simulation post summary
- Filter function judgment
- Bluetooth Module Hardware Design Guide
- 【Beetle ESP32-C3】Download CircuitPython
- How do you measure performance when developing software using a real-time operating system?
- Free evaluation - Topmicro intelligent display module (6) PIP small keyboard
- There are tens of millions of Bluetooth platforms on the market, which one do you like best?
- MicroPython Hands-on (10) - Learn MaixPy Neural Network KPU from scratch
- ZTE Hardware Written Test