当前位置:网站首页>Blue Bridge Cup embedded Hal library USART_ TX
Blue Bridge Cup embedded Hal library USART_ TX
2022-07-28 10:49:00 【[email protected]】
List of articles
Hardware design
Pins used
PA10 ---------- USART1_RX Serial port receiving pin For receiving data
PA9 ---------- USART1_TX Serial port 1 sending pin Used to send data
PA8 ---------- USART1_CK “ Serial port synchronization pin ” There is the function of sending data synchronously ( This pin needs to be used when sending and receiving data synchronously , The serial port generally uses asynchronous data sending and receiving , No need to send and receive data synchronously )

Knowledge point
1、sprintf Function usage
Example :
int counter = 0;
char str[40];
sprintf(str, “%04d:Hello,world.\r\n”, counter);
The experimental results are as follows :
sprintf Knowledge Links :sprintf
2、HAL_USART_Transmit usage
HAL_USART_Transmit(&husart1,(unsigned char *)str, strlen(str), 50);
Parameters 1: The pointer A serial port 1
Parameters 2: Array of characters to send
Parameters 3: The length of the contents in the character array
Parameters 4: Timeout time ms
The function is described as follows :
Serial debugging assistant —AccessPort
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207281025239155.html
边栏推荐
- 2019年9月PAT甲级题目
- Excel word 简单 技巧 整理(持续更新 大概~)
- Install mysql5.7 under centos7
- 7、MapReduce自定义排序实现
- Idea create my first project
- SQL Server 2016 learning record - nested query
- nodemcu之开发环境配置
- 11_ UE4 advanced_ Change male characters to female characters and modify the animation
- PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter
- GKLinearCongruentialRandomSource
猜你喜欢

GKVoronoiNoiseSource

蓝桥杯嵌入式-HAL库-USART_RX

Machine learning -- handwritten English alphabet 3 -- engineering features

Configuring raspberry pie, process and problems encountered

5. Implement MapReduce program on window side to complete wordcount function

Solving the optimal solution of particle swarm optimization

Markdown to word or PDF

机器学习--手写英文字母1--分类流程

6. MapReduce custom partition implementation
![[application of stack] - infix expression to suffix expression](/img/c1/879716342f6dd5eaa8b79c752eca16.png)
[application of stack] - infix expression to suffix expression
随机推荐
GKSphereObstacle
GKCylindersNoiseSource
粒子群解决tsp的技术问题
Test question discovery ring of previous test questions
机器学习--手写英文字母3--工程特点
An example of SQL trace in MySQL
C language input string with spaces
GKLinearCongruentialRandomSource
Chapter 1: cross end development of small programs of uniapp ----- create a uniapp project
Pyqt5 rapid development and practice 4.12 calendar and time
How to play a ball game with RoboCup 2D
Using k-means clustering to classify tariff models of different industries
GKCoherentNoiseSource
10_ UE4 advanced_ Add fall and cast actions
机器人技术(RoboCup 2D)如何进行一场球赛
Inside story of Wu xiongang being dismissed by arm: did the establishment of a private investment company harm the interests of shareholders?
I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
Go json. Decoder Considered Harmful
2020 second intelligence cup preliminaries
PyQt5快速开发与实战 4.11 拖曳与剪贴板