当前位置:网站首页>Baiwen.com 7 days Internet of things smart home learning experience punch in the next day
Baiwen.com 7 days Internet of things smart home learning experience punch in the next day
2022-07-03 17:30:00 【su165108515】
Open the next day .
2022/2/14, The second training of basic class .
The main content is : The structure of single chip microcomputer 、 The development mode of single chip microcomputer and STM32CubeMX Project creation .
1、 How to find information after getting a chip : for example STM32F103C8T6 You can search directly on Baidu or on ST Search on the official website Home - STMicroelectronics.
2、 The smallest system of single chip microcomputer : Power part 、 Crystal oscillator part 、 Reset part .
(1)、 Power part : The single chip microcomputer can work only when it is powered , Access to information ,103C8T6 Need to improve 2V-3.6V The power supply , By looking up MINI The schematic diagram of the development board , You can know MINI The power supply of the development board is USB The plug 、TVS tube 、0.5A Quickly restore the fuse 、 Linear regulator and capacitor .
(2)、 Crystal oscillator part : In some external circuits , It can produce sine wave with stable frequency and peak value . Now SCM basically has internal crystal oscillator , Compared with the external crystal oscillator , The internal crystal oscillator error will be a little larger , Generally in 3% about , But this internal crystal oscillator can meet most of the needs , Adding an external crystal oscillator is generally to reduce the system clock error or make the MCU reach a higher dominant frequency . Check the schematic diagram to see MINI Crystal oscillator circuit of development board ,8MHZ Crystal oscillator and 2 star 22PF Capacitance composition of .
(3)、 Reset part : The MCU needs to be reset once when it is powered on , therefore , Reset circuit is also a part of the smallest system of single chip microcomputer . SCM usually has a low voltage reset pin , That is, when input to low level , Single chip reset . Check the schematic diagram to see MINI The reset part of the development board is controlled by the touch switch 、 resistance 、 The capacitance consists of . When the resistor charges the capacitor , The voltage of the capacitor rises slowly to VCC. When chip The reset foot is close to the low level , Chip reset is close VCC, Therefore, the chip stops resetting and completes resetting .
2、 The development mode of single chip microcomputer : Use assembly operation register 、 Use c Language operation registers 、 Use the library to develop .
Use assembly operation register : High execution efficiency , It is difficult to write 、 Poor portability .
Use C Language operation registers : Moderate execution efficiency , Low writing efficiency 、 Poor portability .
Use the library to develop : Standard library Less efficient execution , Efficient writing 、 The portability is slightly lower .HAL library Inefficient execution 、 Efficient writing 、 Good portability .
3、STM32CubeMX Project creation :



After the above operations, you can control LED flashing .
边栏推荐
- Notes on problems -- watching videos on edge will make the screen green
- 【RT-Thread】nxp rt10xx 设备驱动框架之--Audio搭建和使用
- Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)
- [set theory] order relation: summary (partial order relation | partial order set | comparable | strictly less than | covering | hasto | total order relation | quasi order relation | partial order rela
- An example of HP array card troubleshooting
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- ArrayList分析3 : 删除元素
- One brush 146 force buckle hot question-3 longest substring without repeated characters (m)
- [combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
- [error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
猜你喜欢

【RT-Thread】nxp rt10xx 设备驱动框架之--hwtimer搭建和使用

互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼

One brush 149 force deduction hot question-10 regular expression matching (H)

Is AI too slow to design pictures and draw illustrations? 3 sets of practical brushes to save you
![Luogu: p2685 [tjoi2012] Bridge](/img/f5/f77027288a211ae466781b09ce650f.jpg)
Luogu: p2685 [tjoi2012] Bridge

鸿蒙第四次培训

IntelliJ 2021.3 short command line when running applications
![How to read the source code [debug and observe the source code]](/img/40/a2fca67bcde3c468a739c6990325f4.jpg)
How to read the source code [debug and observe the source code]

Play with fancy special effects. This AE super kit is for you

设计电商秒杀
随机推荐
kubernetes资源对象介绍及常用命令(四)
New library online | cnopendata complete data of Chinese insurance institution outlets
vs code 插件 koroFileHeader
[combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
Where is the database account used when running SQL tasks in data warehouse tasks configured
Hongmeng third training
How do large consumer enterprises make digital transformation?
Kubernetes resource object introduction and common commands (III)
【RT-Thread】nxp rt10xx 设备驱动框架之--hwtimer搭建和使用
QT learning diary 9 - dialog box
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
Introduction to SolidWorks gear design software tool geartrax
Notes on problems -- watching videos on edge will make the screen green
QT学习日记9——对话框
Play with fancy special effects. This AE super kit is for you
The difference between i++ and ++i: tell their differences easily
[UE4] brush Arctic pack high quality Arctic terrain pack
一位普通程序员一天工作清单
UE4 official charging resources, with a total price of several thousand
University of Electronic Science and technology, accounting computerization, spring 20 final exam [standard answer]