当前位置:网站首页>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 .

原网站

版权声明
本文为[Code boy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140552198280.html