当前位置:网站首页>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
边栏推荐
- 单片机职业发展:能做下去的都成牛人了,熬不动就辞职或者改行了
- Epoll read / write mode in LT and et modes
- Matlab reads hexadecimal numbers and converts them into signed short
- Eight working modes of stm32gpio and chip naming rules
- MySQL environment variable configuration
- Notes on C language learning of migrant workers majoring in electronic information engineering
- 内存数据库究竟是如何发挥内存优势的?
- 单片机学到什么程度能找到工作,这个标准不好量化
- Project scope management__ Scope management plan and scope specification
- Project cost management__ Plan value_ Earned value_ Relationship among actual cost and Countermeasures
猜你喜欢
![[CSDN]C1训练题解析_第二部分_Web基础](/img/91/72cdea3eb3f61315595330d2c9016d.png)
[CSDN]C1训练题解析_第二部分_Web基础

【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
![顺利毕业[2]-学生健康管理系统 功能开发中。。。](/img/91/72cdea3eb3f61315595330d2c9016d.png)
顺利毕业[2]-学生健康管理系统 功能开发中。。。

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

我想各位朋友都应该知道学习的基本规律就是:从易到难

Hal library sets STM32 clock

Development of fire evacuation system

UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)

NR PUCCH format0 sequence generation and detection mechanism

Idea remote breakpoint debugging jar package project
随机推荐
一个可执行的二进制文件包含的不仅仅是机器指令
Raspberry pie installation SciPy
Electronic product design
Mysql database underlying foundation column
Fundamentals of Electronic Technology (III)__ Logic gate symbols in Chapter 5
Idea remote breakpoint debugging jar package project
Happy Dragon Boat Festival—— Zongzi written by canvas~~~~~
【22毕业季】我是毕业生yo~
The third paper of information system project manager in soft examination
GPIO port details, Hal library operation keys
Convert IP address to int
2020-08-23
[graduation successful] [1] - tour [Student Management Information System]
Code word in NR
[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation
2021-01-03
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
Error output redirection
Introduction to chromium embedded framework (CEF)
Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from