当前位置:网站首页>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
边栏推荐
- 根据字节码获取类的绝对路径
- DOM learning - add + - button
- K210学习笔记(二) K210与STM32进行串口通信
- 微信小程序 catchtap=“toDetail“ 事件问题
- 程序,进程,线程;内存结构图;线程的创建和启动;Thread的常用方法
- Anonymous type (c Guide Basics)
- [C语言] 文件操作《一》
- QFileDialog select multiple files or folders
- Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
- Queue (C language / linked list)
猜你喜欢
根据字节码获取类的绝对路径
《深度学习》学习笔记(八)
面了一圈,整理了这套面试题。。
There are some problems when using numeric type to query string type fields in MySQL
监控智能回放是什么,如何使用智能回放查询录像
PgSQL wants to implement all kinds of column sub query operations of MySQL
Harbor企业级镜像管理系统实战
STM32使用HAL库,整体结构和函数原理介绍
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
QT reading and writing XML files
随机推荐
pgsql想实现mysql一样样的列子查询操作
CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
LINQ学习系列-----1.4 匿名对象
记录:js删除数组中某一项或几项的几种方法
Comparison of indoor positioning technology
Shell脚本进阶
洋桃电子STM32物联网入门30步笔记二、CubeIDE下载、安装、汉化、设置
关于数组复制问题
程序,进程,线程;内存结构图;线程的创建和启动;Thread的常用方法
洋桃电子STM32物联网入门30步笔记四、工程编译和下载
Word plus watermark
ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
正点原子携手OneOS直播 OneOS系统教程全面上线
ESP32程序下载失败,提示超时
Add listening event to input element
二维01背包
[C语言] 文件操作《一》
【学习】从零开始的音视频开发(9)——NuPlayer
Community group purchase applet source code + interface DIY + nearby leader + supplier + group collage + recipe + second kill + pre-sale + distribution + live broadcast
ajax防止缓存方法