当前位置:网站首页>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 .
边栏推荐
- Rsync remote synchronization
- 绝对定位时元素水平垂直居中
- Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
- How SVN views modified file records
- Web-ui automated testing - the most complete element positioning method
- Hongmeng third training
- Leetcode 669 pruning binary search tree -- recursive method and iterative method
- Where is the monitoring page of RDS database?
- Golang unit test, mock test and benchmark test
- A day's work list of an ordinary programmer
猜你喜欢

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

Test your trained model

STM32实现74HC595控制

kubernetes资源对象介绍及常用命令(三)

PS screen printing brush 131, many illustrators have followed suit

Internet hospital his management platform source code, online consultation, appointment registration smart hospital applet source code

Qt调节Win屏幕亮度和声音大小

Swm32 series Tutorial 4 port mapping and serial port application

Kubernetes resource object introduction and common commands (III)

One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
随机推荐
Design e-commerce spike
The difference between i++ and ++i: tell their differences easily
One brush 148 force deduction hot question-5 longest palindrome substring (m)
vs code 插件 koroFileHeader
One brush 149 force deduction hot question-10 regular expression matching (H)
STM32实现74HC595控制
AcWing 3438. 数制转换
VM11289 WAService. js:2 Do not have __ e handler in component:
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
Solution to long waiting time of SSH connection to remote host
1146_ SiCp learning notes_ exponentiation
[UE4] brush Arctic pack high quality Arctic terrain pack
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
Comparison of kotlin collaboration + retro build network request schemes
Kotlin学习快速入门(7)——扩展的妙用
[combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
新库上线 | CnOpenData中国观鸟记录数据
Kubernetes resource object introduction and common commands (4)
Loop through JSON object list
Brief introduction to the core functions of automatic penetration testing tool