当前位置:网站首页>I think all friends should know that the basic law of learning is: from easy to difficult
I think all friends should know that the basic law of learning is: from easy to difficult
2022-07-03 09:55:00 【Brother gun plays embedded】
I think all friends should know that the basic law of learning is : From easy to difficult . No matter what we learn 、 Experience and skills , We should follow this rule , otherwise , The consequence of aiming too high is : Or face difficulties , Choose to give up , perhaps , Start over again .

STC SCM and STM32 SCM compared with , It has the following advantages :
(1)STC The internal structure of single-chip microcomputer is better than STM32 Single chip microcomputer is simple , It is convenient for beginners to understand the classic structure of MCU . although STC SCM and STM32 Single chip computers are all Harvard computer structures , however ,STC The internal structure of single chip microcomputer is relatively , It's simpler .
(2)STC The number ratio of single-chip registers STM32 SCM is much less .STC There are only dozens of registers in the single chip microcomputer , But STM32 There are hundreds of registers of single chip microcomputer . The two are not in the same order of magnitude . because MCS-51、Cortex-M3、Cortex-M4、Cortex-A9、Cortex-A73 perhaps MIPS Etc. MCU core and on-chip and off-chip devices , All of them realize specific functions through program operation registers , therefore , There are only dozens of registers STC Single chip microcomputer , Relatively speaking , It is easier for beginners to get started .
The article is relatively long , More words , You can first open the avatar and pay attention to me , Then take your time ,/// Insert a : At the beginning of this year, I recorded a set of systematic introductory single chip microcomputer tutorial , If you want, just ask me for it. It's free , I can send a private message ~ Click the black font in the lower left corner of my avatar and I can also get it . I've been relatively idle recently , Take me to finish the design , Take students to provincial or above competitions ///

(3)STC Single chip microcomputer adopts MCS-51 Instruction set , Its assembly instructions are more than 100 , Than STM32 A lot less . Relatively few assembly instruction sets , It can enable beginners to understand the function of the assembly instructions of the operation processor relatively quickly 、 The relationship between architecture and computer architecture .
(4) Latest version STC8 Series MCU has the characteristics of convenient downloading program and being an emulator itself , Save capital investment for beginners in electronic product design technology , Learning and developing technology is convenient and fast .STM32 Need to buy independent Jlink Only the simulator can simulate .
(5)STC SCM has a relatively simple classic architecture , So that beginners do not have to spend too much energy on their hardware itself , You can concentrate on mastering the basic language of any subsequent type of MCU development :C Language . meanwhile , You can also master the basic design ideas of electronic products 、 Experience and skills .
therefore , in summary , According to our learning rules from shallow to deep and from easy to difficult : Engineers and college and technical secondary school students who are beginning to learn electronic product development technology , You should first learn and master the use STC The skills of developing electronic products by single chip microcomputer . This is a basic skill .
STC Single chip microcomputer
Speaking of STC Some people will talk about SCM ,STC It's mainstream , I think it's going to be sprayed ~~ We are based on it is a relatively good single-chip computer in China .STC Single chip microcomputer is a single clock produced by macro crystal / machine Single chip microcomputer of cycle , To put it bluntly STC SCM is 51 And AVR The combination of , Some people say AVR yes 51 Instead of MCU , however AVR MCU in place control and C There is a big difference in language writing .
and STC The single-chip computer is combined with 51 and AVR The advantages of , Although the function is not as good as AVR So powerful , But in AVR Functions that can be found , stay STC Basically, there are , meanwhile STC SCM is 51 kernel , This gives 51 The single chip computer provides great convenience for the engineers , It saves learning AVR Time for , At the same time AVR Various functions of …
STC MCU is high speed 、 Low power Consumption 、 A new generation of super anti-interference 8051 Single chip microcomputer 51 Single chip microcomputer , The instruction code is completely compatible with the traditional 8051, But fast 8~12 times , Internal integration MAX810 Special reset circuit .4 road PWM 8 Highway 10 position A、D transformation , For electric motors Supplier control , Strong interference occasion , To become a successor 51 A new series of single-chip microcomputer after single-chip microcomputer …

characteristic :
1. Download burning program with serial port convenient to use , Easy to use , Have a lot of learning materials and videos , The most famous
The video that belongs to Mr. Du , A lot of friends who are interested in SCM are introduced through this video , At the same time, it has wide voltage :5.5~3.8V,2.4~3.8V, Low power design : Idle mode , Power down mode ( Can be awakened by an external interrupt )
2. STC SCM has application programming , Debugging is more convenient ; with 10 position AD、 Inside EEPROM、
Can be found in 1T/ Work under machine cycle , Speed is traditional 51 Single chip microcomputer 8~12 times , The price is cheaper
3. 4 Channel capture / Comparison unit ,STC12C2052AD The series is 2 passageway , It can also be used to realize 4 A timer or 4 External interrupts ,2 A hardware 16 Bit timer , Compatible with common 8051 The timing of device .4 road PCA It can be realized again 4 A timer , With hardware watchdog 、 High speed SPI Communication port 、 Full duplex asynchronous serial port , Compatible with common 8051 Serial port , It also has advanced instruction set structure , and Allow ordinary 8051 Instruction set
PS:
STC Although the function of MCU is not as good as AVR、STM32 Powerful , The price is not as good as 51 and ST32 cheap , But it doesn't matter , What's important is that it belongs to the excellent single chip microcomputer made in China , I hope the home-made single-chip microcomputer can make a long journey …
The most used devices :STC12C2052AD
AVR Single chip microcomputer
AVR SCM is Atmel The company launched a relatively new single chip computer , Its outstanding feature is high performance 、 high velocity 、 low power consumption . It cancels machine cycles , Take the clock cycle as the instruction cycle , Carry out flow operation . AVR Single chip instructions are in words , And most of the instructions are single cycle instructions . The single cycle can execute the function of this instruction , At the same time, read the next instruction . Usually the clock frequency is 4~8MHz, Therefore, it is the shortest The instruction execution time is 250~125ns.AVR Single chip computer can become a hot single chip computer recently , Main features :

characteristic :
1. AVR There is no such accumulator in the series A Structure , It is mainly through R16~R31 Register to achieve A The function of . stay AVR in , Didn't like 51 Series data pointer DPTR, But by the X( from R26、R27 form )、Y( from R28、R29 form )、Z( from R30、R31 form ) Three 16 Bit register to complete the function of data pointer ( It's equivalent to three groups DPTR), and It can also be used for later increment or first decrement , And in the 51 In the series , All logical operations must be in A In the middle of ; and AVR But it can be done between any two registers , There is no need for A Back and forth in , these All ratio 51 The series is better
2. AVR The special registers of are set in 00~3F Address range , No need for image PIC In that case, the process of selecting storage must be carried out first , Compared with PIC convenient .AVR In slice RAM The address range of is 0~00DF(AT90S2313) and 0060~025F(AT90S8515、AT90S8535), They take up the address of the data space , In these films RAM Just for storing data , Generally, there is no general mail Functions of memory . When the program is complex , General registers R0~R31 It's not enough ; and 51 Series of general registers up to 128 individual ( by AVR Of 4 times ), It doesn't feel like this when programming .
3.AVR Of I/O Feet similar PIC, It also has a direction register to control the input or output , In the output state , The high level output current is 10mA about , Low level suction current 20mA. This is not as good as PIC, But more than 51 The series should be excellent …

shortcoming :
1. There is no bit operation , It controls and judges related register bits in byte form
2. C Language and 51 Of C There are great differences in the way languages are written , Let's learn from the beginning 51 A friend of MCU is not used to it
3. The general registers are 32 individual (R0~R31), front 16 A register (R0~R15) Can't deal with immediate numbers directly , As a result, universality has declined . And in the 51 In the series , All its general registers ( Address 00~7FH) Can deal with immediate number directly , Obviously better than the former .
The most used devices :ATUC64L3U、ATxmega64A1U、AT90S8515
Friends interested in MCU can come to me , I recorded some introductory tutorials about MCU , If you need children's shoes, just ask me for them , Free of charge , Private confidence in me “ Miss Lin ” You can take ~ Click to open my avatar to receive
边栏推荐
- (1) 什么是Lambda表达式
- Project scope management__ Scope management plan and scope specification
- UCI and data multiplexing are transmitted on Pusch (Part VI) -- LDPC coding
- There is no specific definition of embedded system
- SCM career development: those who can continue to do it have become great people. If they can't endure it, they will resign or change their careers
- PIP references domestic sources
- Install local sources using yum
- [CSDN] C1 training problem analysis_ Part II_ Web Foundation
- [CSDN]C1訓練題解析_第三部分_JS基礎
- Epoll read / write mode in LT and et modes
猜你喜欢

当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学

编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解

Fundamentals of Electronic Technology (III)__ Fundamentals of circuit analysis__ Basic amplifier operating principle

2.Elment Ui 日期选择器 格式化问题
![[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation](/img/06/7fd985faf8806ceface3864d4b3180.png)
[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation

Gpiof6, 7, 8 configuration

PRACH --- originator

Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别

Stm32-hal library learning, using cubemx to generate program framework

Idea remote breakpoint debugging jar package project
随机推荐
Successful graduation [2] - student health management system function development...
UCI and data multiplexing are transmitted on Pusch - Part I
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
MySQL data manipulation language DML common commands
All processes of top ten management in project management
Project cost management__ Topic of comprehensive calculation
Vector processor 9_ Basic multilevel interconnection network
[successful graduation] [1] - visit [student management information system]
MySQL的简单使用(增删改查)
When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()
STM32 port multiplexing and remapping
內存數據庫究竟是如何發揮內存優勢的?
NR technology -- MIMO
An executable binary file contains more than machine instructions
STM32 serial port usart1 routine
Simple use of MySQL (addition, deletion, modification and query)
Stm32f04 clock configuration
STM32 general timer 1s delay to realize LED flashing
开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~