当前位置:网站首页>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 .
边栏推荐
- 毕业总结
- 新库上线 | CnOpenData中国保险机构网点全集数据
- Applet setting multi account debugging
- 大变局!全国房价,跌破万元大关
- 互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
- Svn full backup svnadmin hotcopy
- Wechat applet for the first time
- Assembly for unloading Loadfrom() loaded assembly - unloading the assembly loaded with assembly LoadFrom()
- Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
- Notes on problems -- watching videos on edge will make the screen green
猜你喜欢
【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
新库上线 | CnOpenData中国保险机构网点全集数据
1164 Good in C
[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
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
IntelliJ 2021.3 short command line when running applications
Introduction to SolidWorks gear design software tool geartrax
One brush 145 force deduction hot question-2 sum of two numbers (m)
1164 Good in C
随机推荐
List of financial products in 2022
AcWing 3438. 数制转换
Kotlin learning quick start (7) -- wonderful use of expansion
The difference between get and post
简单配置PostFix服务器
Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
kubernetes资源对象介绍及常用命令(三)
kubernetes资源对象介绍及常用命令(四)
Leetcode 669 pruning binary search tree -- recursive method and iterative method
Leetcode13. Roman numeral to integer (three solutions)
RedHat 6.2 配置 Zabbix
One brush 148 force deduction hot question-5 longest palindrome substring (m)
[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
免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
SVN如何查看修改的文件记录
Electronic technology 20th autumn "Introduction to machine manufacturing" online assignment 3 [standard answer]
PR second time
New library online | cnopendata complete data of Chinese insurance institution outlets
vs2013已阻止安装程序,需安装IE10
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]