Tucao 51 and STM32

Publisher:SereneSerenityLatest update time:2015-10-30 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
   After I came into contact with STM32, I felt that I had met it too late. In its era, 51 had made great achievements in the field of embedded systems. But today, the battlefield here does not belong to 51. If it were not for the great Chinese educational institutions that can always "keep up with the times", 51 should really appear in the museum.

   If you have used 51, I guarantee that as long as you pass by STM32, you will fall in love with this guy deeply and can't stop, really.

   hardware.

   Speed. The difference between 51 and STM32 is the difference between a bull pulling a cart and a Ferrari. This is obvious enough, you know. 51 is a luxury with 12M. If the code is a little bigger, it can't afford it, so you have to optimize here and there. To be honest, 51 always likes to make things difficult for engineers. STM32, you know how happy it is, it is 72M, 100M at any time, the code runs so happily and so happily. The masters who have come into contact with STM32 know that STM32 is far better than 51 in hardware.

   Configuration above. I can only say, what else does 51 have besides itself. Is there I2C? No! Is there SPI? No! Is there USB? No! Is there Ethernet? Even less! No! No! No! No! No, no! I won't say more, sorry 51.

   Okay, software.

   In this link, STM32 is better than 51, not just a little bit. Why? Everyone on earth knows that STM32 has a low-level driver library, and the code of this library is completely open source. When the masters use this library for development, they are happier than using 51. Using this library to develop software is like traveling, really, if you have experienced 51 code development, it is true. Moreover, using this library, the developed code has few bugs, and using the library has a sense of floating on the shoulders of giants. For example, this library from the Internet master - ST is built by the official team of ST and has been carefully tested. For example, if you want the processor to support the USB U disk function, for 51, you may steal a piece of code on the Internet now, and then stay up all night to start transplanting. The transplantation work itself is very tiring, not to mention the trouble, and there are many bugs. But for STM32, these have long been in the library functions, and they are very mature, so it is very happy, smooth, comfortable, and enjoyable to develop.

   Price, this seems to be the only capital of 51. Wrong, the cheapest STM32 is 8 yuan.

   After going through 51, I found that this is a misunderstanding: before learning ARM, it is best to use 51 to lay the foundation. In fact, there is no need for this. The bottom layer of 51 operation is through the operation of registers, while STM32 achieves the purpose of controlling the bottom layer by calling library functions. These two bottom-level code writing modes are completely different. On the contrary, you will not be able to adapt to the transition from 51 to STM32. Therefore, there is no need to work on 51 first and then STM32. In my experience, you can go directly to STM32. Calling library functions for programming will make you very happy, believe me.

   The above is just a complaint, don’t take it seriously.

   51 has made a lot of contributions to embedded systems and paved the way for experts who have entered the embedded system. After all, 51 is the simplest, easy to use, and not difficult to understand. It is the first and lowest threshold to enter the embedded system. I also passed by 51 and came here. Thank you 51.

    If you are a student, I recommend you to try 51 first, then ARM, after all, this will let you know what is going on at the bottom. You can't be unclear about how to implement the code when doing embedded systems. Of course, as an engineer, there is no need for this. The project time is so tight, how can you have time to be conceited?

Reference address:Tucao 51 and STM32

Previous article:Attempt to use MCU serial communication
Next article:430 How to add a custom header file

Recommended ReadingLatest update time:2024-11-16 15:55

51 MCU expands external RAM
Today's work is what I did before, but it didn't work. I failed when expanding the ROM~~ But today the main thing is to expand the external RAM, which is relatively simple. I don't want to set up too many compilers for external ROM~~ MCU expansion external RAM 1. Expansion Bus 1. Introduction (This expansion is
[Microcontroller]
51 MCU expands external RAM
STM32—cubeMX+DMA+USART receives data of any length
Preface     In a previous article, I modified the HAL library to enable USART to receive data of any length. This can enable the reception of data of any length ending with 0x0a, that is, it is considered that the reception ends when 0x0a is received. See the link: HAL USART receives data of any length.    However
[Microcontroller]
STM32—cubeMX+DMA+USART receives data of any length
F518, the cradle of "National No.1"
Every two years, a group of talented and energetic young people shine in the National Undergraduate Electronic Design Competition, making this highest stage that can be reached during the undergraduate stage the starting point for their true pursuit of an electronics career. Teacher Yang Zhenjiang has been leading t
[Test Measurement]
F518, the cradle of
Smoke sensor based on AT89C51 microcontroller
#include reg51.h #include stdio.h #define uchar unsigned char //macro definition of unsigned character type #define uint unsigned int //macro definition of unsigned integer sbit ST=P3^0; //A/D start conversion signal sbit OE=P3^1; //Data output enable signal sbit
[Microcontroller]
Smoke sensor based on AT89C51 microcontroller
Working mode and principle of 89C51 single chip microcomputer
The 89C51 microcontroller has four working modes: reset, program execution, low power consumption, and programming and verification. 1. Reset method (l) Reset Operation Reset is the initialization operation of the microcontroller. Its main function is to initialize PC to OOOH, so that the microcontroller starts execut
[Microcontroller]
Working mode and principle of 89C51 single chip microcomputer
51 Single Chip Microcomputer (I)—— Introduction to 51 Single Chip Microcomputer
1.51 MCU identification information         Usually, the 51 MCU we refer to is the MCU expanded with the 51 core. There are many manufacturers and models of 51 MCU. The following table lists some manufacturers and models of 51 MCU.         The above mentioned MCUs are all MCUs expanded from the 51 core. As long as y
[Microcontroller]
51 Single Chip Microcomputer (I)—— Introduction to 51 Single Chip Microcomputer
Color light control circuit developed using AT89C2051
  This circuit is very suitable for controlling various colored lights and neon lights. See the attached figure for the circuit. Its features are as follows:      1. It stores 40 selected patterns that can be run for 5 minutes without repetition; 15 I/O ports, except for P34, P35, and P37 which are function test ports
[Microcontroller]
Color light control circuit developed using AT89C2051
About the structure and pull-up problem of P0 port of 51 single-chip microcomputer
1. When P0 is used as the address data bus, V1 and V2 work together to form a push-pull structure. When the level is high, V1 is turned on and V2 is turned off; when the level is low, V1 is turned off and V2 is turned on. In this case, no external pull-up resistor is needed. Moreover, when V1 is turned on, V2 is tu
[Microcontroller]
About the structure and pull-up problem of P0 port of 51 single-chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号