当前位置:网站首页>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
边栏推荐
- [CSDN]C1训练题解析_第二部分_Web基础
- Nr-prach:prach format and time-frequency domain
- Assignment to '*' form incompatible pointer type 'linkstack' {aka '*'} problem solving
- 我想各位朋友都应该知道学习的基本规律就是:从易到难
- Hal library sets STM32 clock
- STM32 external interrupt experiment
- JMX、MBean、MXBean、MBeanServer 入门
- [CSDN] C1 training problem analysis_ Part IV_ Advanced web
- How does the nr-prach receiver detect the relationship between prembleid and Ta
- Oracle database SQL statement execution plan, statement tracking and optimization instance
猜你喜欢

Notes on C language learning of migrant workers majoring in electronic information engineering

对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门

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

CEF download, compile project

单片机职业发展:能做下去的都成牛人了,熬不动就辞职或者改行了

【22毕业季】我是毕业生yo~

PRACH --- originator

STM32 interrupt priority management

Vector processor 9_ Basic multilevel interconnection network

Development of fire evacuation system
随机推荐
[csdn] C1 analyse des questions de formation Partie III Bar _ JS Foundation
Happy Dragon Boat Festival—— Zongzi written by canvas~~~~~
Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()
(1) 什么是Lambda表达式
Vector processor 9_ Basic multilevel interconnection network
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
Blue Bridge Cup for migrant workers majoring in electronic information engineering
Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
Convert IP address to int
2.Elment Ui 日期选择器 格式化问题
Simple use of MySQL (addition, deletion, modification and query)
Fundamentals of Electronic Technology (III)__ Chapter 1 resistance of parallel circuit
Fundamentals of Electronic Technology (III)_ Chapter 2 principle of amplification circuit__ Crystal triode and field effect triode
Comment la base de données mémoire joue - t - elle l'avantage de la mémoire?
Basic knowledge of MySQL database (an introduction to systematization)
Project cost management__ Topic of comprehensive calculation
Gpiof6, 7, 8 configuration
Project cost management__ Cost management technology__ Article 8 performance review
Oracle database SQL statement execution plan, statement tracking and optimization instance
[CSDN] C1 training problem analysis_ Part II_ Web Foundation