当前位置:网站首页>Notes on 30 steps of introduction to the Internet of things of yangtao electronics STM32 III. cubemx graphical programming and setting the IO port on the development board
Notes on 30 steps of introduction to the Internet of things of yangtao electronics STM32 III. cubemx graphical programming and setting the IO port on the development board
2022-04-23 08:34:00 【Wang Xiaoqi next door】
This document is used as the collation of Carambola electronic video ,B Station links : Episode four
One 、 Turn on RCC External clock for 、 Including external high-speed clock HSE And external low-speed clock LSE
The meaning of the three options of clock configuration :
If disabled, you can only use the internal clock
The bypass clock source is generally an active crystal oscillator
Crystal and ceramic oscillators are generally passive crystal oscillators
Two 、 Turn on RTC function
3、 ... and 、 Configure clock tree
Generally speaking, the higher the clock frequency , The higher the performance , The higher the power consumption ; On the contrary, the lower the frequency , The lower the power consumption .
Four 、 Set up IO port
As can be seen from the schematic diagram , Two LED1 and LED2 We received PB0 and PB1, Must let LED Lighten up , You need to IO The port is set to output high level .
Overview of Carambola development board
Core board schematic overview machine IO Configuration situation
Crystal oscillator configuration
LED Configuration situation : High level 、 Push pull output 、 No up and down 、 High speed output
Key configuration : Pull up input
Buzzer configuration : High level 、 Push pull output 、 No up and down 、 High speed output
Serial port configuration :
———————————————————————————————
Carambola IOT Overview of schematic diagram of development board floor and IO To configure
Wake up key and PA0 Reuse , Because on the core board PA0 It's already set up , So there is no need to set
JTAG The particularity of , Need to be in SYS It's set up inside
Two ADC Interface configuration : Analog input
Relay circuit : High level 、 Open drain output 、 No up and down 、 High speed output
Temperature and humidity sensor : High level 、 Push pull output 、 No up and down 、 High speed output
RS458 Bus circuit :
PA8: Low level 、 Push pull output 、 Pull up 、 High speed output 、 Used to switch whether to receive data or send data
PA2、PA3 Set serial port mode
CAN Bus circuit :
USB、SPI Flash memory 、 Reserved row needle :
Bluetooth module :
wifi modular :
Development board all IO The initialization of the port is shown in the figure below :
PS: A brief introduction to the clock :
STM32F103 Single chip microcomputer CAN and USB Work together in the same group RAM Space , The two functions cannot be used at the same time .
PC13 There are requirements for applications , Pay attention to , As for what requirements , I haven't studied , Anyway, that's what the video says .
Simulation interface for video JTAG Of 5 Foot mode ; I prefer to use it SW Bipedal mode , This is more economical IO mouth .
版权声明
本文为[Wang Xiaoqi next door]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230810281404.html
边栏推荐
猜你喜欢
监控智能回放是什么,如何使用智能回放查询录像
Flink SQL实现流批一体
测试你的机器学习流水线
【学习】从零开始的音视频开发(9)——NuPlayer
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
Shell script advanced
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
Knowledge points and problem solutions related to information collection
随机推荐
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
Introduction to protobuf
Online app resource download website source code
正点原子携手OneOS直播 OneOS系统教程全面上线
npm安装yarn
stm32以及freertos 堆栈解析
LeetCode-199-二叉树的右视图
Talk about the basic but not simple stock data
测试你的机器学习流水线
洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
colorui 解决底部导航遮挡内容问题
Protobuf简介
idea底栏打开services
pgsql想实现mysql一样样的列子查询操作
An example of network communication based on TCP / IP protocol -- file transmission
《深度学习》学习笔记(八)
【精品】利用动态代理实现事务统一管理 二
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
Copy array in JS
ajax防止缓存方法