当前位置:网站首页>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 .
边栏推荐
- [RT thread] NXP rt10xx device driver framework -- pin construction and use
- UE4 official charging resources, with a total price of several thousand
- [combinatorics] recursive equation (summary of the solution process of recursive equation | homogeneous | double root | non-homogeneous | characteristic root is 1 | exponential form | the bottom is th
- STM32H7 HAL库SPI DMA发送一直处于busy的解决办法
- ArrayList分析3 : 删除元素
- 绝对定位时元素水平垂直居中
- [combinatorics] recursive equation (four cases where the non-homogeneous part of a linear non-homogeneous recursive equation with constant coefficients is the general solution of the combination of po
- 问题随记 —— 在 edge 上看视频会绿屏
- i++与++i的区别:通俗易懂的讲述他们的区别
- [combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
猜你喜欢
Internet hospital his management platform source code, online consultation, appointment registration smart hospital applet source code
IntelliJ 2021.3 short command line when running applications
Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
鸿蒙第四次培训
Qt调节Win屏幕亮度和声音大小
互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
One brush 145 force deduction hot question-2 sum of two numbers (m)
Life is still confused? Maybe these subscription numbers have the answers you need!
Tensorboard quick start (pytoch uses tensorboard)
Applet setting multi account debugging
随机推荐
[combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
Y is always discrete and can't understand, how to solve it? Answer: read it several times
i++与++i的区别:通俗易懂的讲述他们的区别
SVN如何查看修改的文件记录
Comparison of kotlin collaboration + retro build network request schemes
[combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
AcWing 3438. Number system conversion
互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
c# .net 工具生态
Hongmeng fourth training
[combinatorics] recursive equation (four cases where the non-homogeneous part of a linear non-homogeneous recursive equation with constant coefficients is the general solution of the combination of po
Is AI too slow to design pictures and draw illustrations? 3 sets of practical brushes to save you
[mathematical logic] equivalent calculus and reasoning calculus of predicate logic (individual word | predicate | quantifier | predicate logic formula | two basic formulas | proposition symbolization
绝对定位时元素水平垂直居中
Wechat applet for the first time
vs code 插件 koroFileHeader
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)
Luogu: p2685 [tjoi2012] Bridge
When absolutely positioned, the element is horizontally and vertically centered