Home Common Problem The difference between stm32 and 51

The difference between stm32 and 51

Jun 04, 2019 pm 01:02 PM
Microcontroller

Single-chip microcomputer is referred to as single-chip microcomputer. Simply put, it integrates CPU (operation, control), RAM (data storage-memory), ROM (program storage), input and output devices (serial port, parallel port, etc.) and interrupt system in the same Chip components, in our own personal computers, CPU, RAM, ROM, I/O are all separate chips, and then these chips are installed on a motherboard, thus forming our PC motherboard, which is then assembled into Computers, and microcontrollers just concentrate all of this on one chip.

The difference between stm32 and 51

51 Introduction to Microcontroller

The most widely used 8-bit microcontroller is of course also the easiest for beginners to learn. The microcontroller was first launched by Intel. Due to its typical structure and complete centralized management of bus-specific registers, numerous logical bit operation functions and rich control-oriented instruction system, it can be called a "classic" and set the standard for other microcontrollers in the future. laid the foundation for its development.

The reason why 51 MCU has become a classic and easy-to-use MCU mainly has the following characteristics:

51 MCU characteristics

1. From the internal hardware The software has a complete set of bitwise operating systems, called bit processors. The processing objects are not words or bytes but bits. Not only can it process a certain bit of some special function registers on the chip, such as transmitting, setting, clearing, testing, etc., it can also perform bit logic operations. Its functions are very complete and it is 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 bring convenience to programming. Many eight-bit microcontrollers do not have the multiplication function. When doing multiplication, you have to write a subroutine call, which is very inconvenient.

Recommended courses: PHP Tutorial.

51 Microcontroller Disadvantages

1. AD, EEPROM and other functions need to be expanded, which increases the burden on hardware and software

2. Although The I/O pin is simple to use, but has no output capability when the level is high. This is also the biggest weakness of the 51 series microcontroller

3. The running speed is too slow, especially the dual data pointers. If it can be improved, it can Programming brings great convenience

4. 51 has poor protection ability and can easily burn out the chip

51 microcontroller application scope

It is currently widely used in teaching situations and situations where performance requirements are not high.

The most commonly used devices: 8051, 80C51

Introduction to STM32 microcontroller

The STM32 series of microcontrollers launched by ST manufacturers, friends in the industry As we all know, this is a series of microcontrollers with extremely high cost performance. There should be no one like it, and its functions are extremely powerful. It is based on the ARM Cortex-M core specially designed for embedded applications requiring high performance, low cost, and low power consumption. It also has first-class peripherals: 1μs dual 12-bit ADC, 4 Mbit/s UART, 18 Mbit/s SPI, etc., also have good performance in terms of power consumption and integration. Of course, it is slightly inferior to the power consumption of MSP430, but this does not affect the enthusiasm of engineers for it. It is well-known in the industry due to its simple structure and easy-to-use tools coupled with its powerful functions... Its powerful functions are mainly reflected in:

STM32 microcontroller features

1. Core: ARM32-bit Cortex-M3CPU, maximum operating frequency 72MHz, 1.25DMIPS/MHz, single-cycle multiplication and hardware division

2. Memory: 32-512KB Flash memory integrated on the chip. 6-64KB SRAM memory

3, clock, reset and power management: 2.0-3.6V power supply and driving voltage of I/O interface. POR, PDR and Programmable Voltage Detector (PVD). 4-16MHz crystal oscillator. Embedded with factory-adjusted 8MHz RC oscillator circuit. Internal 40 kHz RC oscillator circuit. PLL for CPU clock. 32kHz crystal oscillator with calibration for RTC

4. Debug mode: serial debugging (SWD) and JTAG interface. Up to 112 fast I/O ports, up to 11 timers, and up to 13 communication interfaces.

Commonly used devices in STM32

The most commonly used devices: STM32F103 series, STM32 L1 series, STM32W series.

51 The difference between MCU and STM32 MCU

51 MCU is the collective name for all MCUs that are compatible with the Intel8031 instruction system. The ancestor of this series of MCUs is Intel's 8031 Later, with the development of flash ROM technology, the 8031 ​​microcontroller made great progress and became one of the most widely used 8-bit microcontrollers. Its representative model is the AT89 series of ATMEL.

The STM32 microcontroller is a 32-bit series of microcontrollers produced by ST (STMicroelectronics) using arm company's cortex-M3 as the core. Its internal resources (registers and peripheral functions) are better than those of 8051, AVR and PIC There are much more, basically close to the CPU of a computer, suitable for mobile phones, routers, etc.

51 microcontroller is a basic microcontroller for entry-level, and it is also the most widely used one. It should be noted that 51 series microcontrollers generally do not have self-programming capabilities.

The STM32 series is based on the ARM Cortex-M3 core specially designed for embedded applications requiring high performance, low cost, and low power consumption.

The main differences between the two are as follows:

1. Core: 51 MCU uses 51 Core, 8Bit@2MHz Max (after frequency division), 0.06DMIPS; STM32 uses It is ARM Cortex-M3, 32Bit@72MHz, 1.25DMIPS

2. Address space: 51 MCU has only 64KB; STM32 has 4GB

3. On-chip memory: 51 MCU ROM only has 2K-64K , RAM is only 128B-1K; STM32's ROM is 20K-1MB, RAM is 8K-256K

4. Peripherals: 51 microcontroller has only three timers and one serial port; STM32 has AD, DA, Timer, WWDG, IWDG, CRC, DMA, IIC, SPI, USART and many other peripherals

5. Development tools: 51 microcontroller uses early UV2; while STM32 uses UV4 or even higher

6. Operating system: It is difficult for 51 microcontroller to run even RTOS; STM32 uses uClinux and uC/OS

The above is the detailed content of The difference between stm32 and 51. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

deepseek web version official entrance deepseek web version official entrance Mar 12, 2025 pm 01:42 PM

The domestic AI dark horse DeepSeek has risen strongly, shocking the global AI industry! This Chinese artificial intelligence company, which has only been established for a year and a half, has won wide praise from global users for its free and open source mockups, DeepSeek-V3 and DeepSeek-R1. DeepSeek-R1 is now fully launched, with performance comparable to the official version of OpenAIo1! You can experience its powerful functions on the web page, APP and API interface. Download method: Supports iOS and Android systems, users can download it through the app store; the web version has also been officially opened! DeepSeek web version official entrance: ht

In-depth search deepseek official website entrance In-depth search deepseek official website entrance Mar 12, 2025 pm 01:33 PM

At the beginning of 2025, domestic AI "deepseek" made a stunning debut! This free and open source AI model has a performance comparable to the official version of OpenAI's o1, and has been fully launched on the web side, APP and API, supporting multi-terminal use of iOS, Android and web versions. In-depth search of deepseek official website and usage guide: official website address: https://www.deepseek.com/Using steps for web version: Click the link above to enter deepseek official website. Click the "Start Conversation" button on the homepage. For the first use, you need to log in with your mobile phone verification code. After logging in, you can enter the dialogue interface. deepseek is powerful, can write code, read file, and create code

How to solve the problem of busy servers for deepseek How to solve the problem of busy servers for deepseek Mar 12, 2025 pm 01:39 PM

DeepSeek: How to deal with the popular AI that is congested with servers? As a hot AI in 2025, DeepSeek is free and open source and has a performance comparable to the official version of OpenAIo1, which shows its popularity. However, high concurrency also brings the problem of server busyness. This article will analyze the reasons and provide coping strategies. DeepSeek web version entrance: https://www.deepseek.com/DeepSeek server busy reason: High concurrent access: DeepSeek's free and powerful features attract a large number of users to use at the same time, resulting in excessive server load. Cyber ​​Attack: It is reported that DeepSeek has an impact on the US financial industry.