当前位置:网站首页>STM32 learning method
STM32 learning method
2022-07-05 07:39:00 【Code boy】
The general requirement is to realize first and then study deeply
Project driven learning
Single chip microcomputer , It refers to basic CPU( Arithmetic unit, etc ) Package with a lot of peripherals into a chip . We write the program to CPU Running in , The control is not simple level , But peripherals , Even if the GPIO Are all peripherals . Peripherals are a series of encapsulated circuits , Only some software interfaces are missing ( There is no hardware interface inside , It's all the same chip ).
So I want to control the hardware of single chip microcomputer , The only thing to do is to configure them correctly through these interfaces , At the bottom, it is shown as the configuration of registers , You read and write to some registers , The peripheral will receive the corresponding signal trigger , Complete the corresponding function . These are basically the peripherals we encounter everyday :
Power and reset —— Operation basis , Need to know ; The clock —— Operation basis , Must master ; interrupt —— Asynchronous interaction , Must master ; Basic peripherals (FLASH/GPIO etc. )—— You can't do anything without them ; Communication peripherals (UART/I2C/SPI etc. )—— Learn what you want to use ; other (ADC/DAC/CMP etc. )—— Use and study . Configuration complete , Let's see what you want to do , Put the desired logic on it .
From my personal experience , I suggest learning like this , Now some things don't understand , It doesn't matter. , Follow the video step by step , Don't go copy Routine code , Be sure to knock with your own hand !!! At first I didn't understand , Let yourself be able to complete the routine of this chapter independently , You can write your own code without bug To run correctly .
after , You can find some small projects that apply to this chapter , Do it yourself . Like learning iic after , You can buy one iic Driven oled The screen , Do some screen display functions by yourself ,... wait . after , Before you know iic After what can be done , Look again iic The concept of , I feel much better , Because some time above , The data transfer , This is what you have come into contact with when working on projects .
In this way, after learning more about each peripheral , You can find some projects , Integrate and use the learned peripherals , In this way, there is basically no problem in the learning of single-chip computers .
If you are studying , You can also participate in some competitions , such as : Electric competition , Smart car competition ,RoboMaster wait .
边栏推荐
猜你喜欢
How to delete the virus of inserting USB flash disk copy of shortcut to
UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
Package ‘*****‘ has no installation candidate
And let's play dynamic proxy (extreme depth version)
Miracast技术详解(一):Wi-Fi Display
HDU1231 最大连续子序列(分治or动规or双指针)
Ugnx12.0 initialization crash, initialization error (-15)
[neo4j] common operations of neo4j cypher and py2neo
How to deal with excessive memory occupation of idea and Google browser
I 用c I 实现队列
随机推荐
Tshydro tool
I can't stand the common annotations of idea anymore
SQL JOINS
Explanation of parallel search set theory and code implementation
Word import literature -mendeley
[untitled]
When jupyter notebook is encountered, erroe appears in the name and is not output after running, but an empty line of code is added downward, and [] is empty
Clickhouse database installation deployment and remote IP access
Shadowless cloud desktop - online computer
Idea push project to code cloud
Efficiency difference: the add method used by the set directly and the add method used by the set after judgment
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
Oracle-触发器和程序包
editplus
Calibre garbled
[idea] common shortcut keys
Graduation thesis project local deployment practice
RTOS in the development of STM32 single chip microcomputer
Basic series of SHEL script (III) for while loop
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)