当前位置:网站首页>Communication bus protocol I: UART
Communication bus protocol I: UART
2022-07-25 12:20:00 【~QwQ~】
List of articles
Communication bus protocol I :UART
1. Communication basis
1.1 parallel , Serial

Parallel transmission: Data in groups , staySimultaneous transmission on multiple parallel channelsSerial transmission: UseA data line, Transmit data bit by bit , A fixed length of data
1.2 Simplex , Duplex

Simplex communication: Only one party is allowed to transmit information to the other party , The other party cannot send back information . Like the TV remote control 、 Radio broadcast, etc , It's all simplex communication technology .Half duplex communication: Data can be transmitted between the two sides , But at the same time, only one party can send it to the other Fang . For example, walkie talkie .Full duplex communication: It refers to the ability to receive data while sending data , The two go hand in hand , Like the phone .
1.3 Sync , asynchronous
asynchronous communication: Both sides of the communicationUse their own clocks, According to the agreed unified baud rate , Send and receive data . There may be some error in the clock frequency of both sides , Asynchronous communication a data frame is short , Low sending efficiency .Synchronous communication: signal communicationBoth parties use clocks with the same frequency, The sender should send data at a fixed rhythm , The receiver should always be ready to receive data , After recognizing the preamble, we will start receiving data immediately . The synchronization data frame length is large , More efficient , It is more suitable for transmission with high speed requirements .
1.4 Baud rate
Baud rate : The rate of serial communication , Unit is bps (bit per second), That is, how many binary bits can be transmitted per second . For example, it can transmit... Every second 9600 It's binary , The baud rate is 9600.
2. Uart Communication protocol

Free bit: When there is no data transmission on the data line , The data line remains high , That is, the idle bit is 1Start bit: When starting data transfer , Data line from 1 become 0, Transmission start bit 0Data bits: One time transmission 5~8 position , It is usually a transmission 8 position , That is, a byte. Starting low , Late onset high , For example, transmission 0x55, Corresponding binary0 1 0 1 0 1 0 1, Send low order first ( Far right ) Of 1Inspection position: Take up one bit, Use parity test , Check bits are optionalStop bit: Indicates that one frame of data transmission is completed , Stop bit occupied 1~2bit- uart Only one character can be transmitted at a time , If you need to transmit multiple characters , Then each character will follow the above frame format , transmitted
- Both sides of the communication , It must be set to the same baud rate , To communicate correctly
3. Hardware connection

- uart The hardware connection of is very simple , As shown in the figure above : Sending of one party Tx Connect the receiving of the other party Rx, Ground wire GND Connect to .
Thank you for reading If there is an error Excuse me !!!
边栏推荐
- Feign use
- 利用wireshark对TCP抓包分析
- scrapy爬虫爬取动态网站
- 919. Complete binary tree inserter: simple BFS application problem
- Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
- Ansible
- Hydrogen entrepreneurship competition | Liu Yafang, deputy director of the science and Technology Department of the National Energy Administration: building a high-quality innovation system is the cor
- Word中的空白页,怎么也删不掉?如何操作?
- Eureka usage record
- 协程
猜你喜欢

搭建Vision Transformer系列实践,终于见面了,Timm库!

Eureka注册中心开启密码认证-记录

selenium使用———安装、测试

Fiddler抓包APP

【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21
![[RS sampling] a gain tuning dynamic negative sampler for recommendation (WWW 2022)](/img/23/0901da44160ca685d2c694ae9a834b.png)
[RS sampling] a gain tuning dynamic negative sampler for recommendation (WWW 2022)

马斯克的“灵魂永生”:一半炒作,一半忽悠

Those young people who left Netease

Feign使用

GPT plus money (OpenAI CLIP,DALL-E)
随机推荐
Unexpected rollback exception analysis and transaction propagation strategy for nested transactions
R语言使用ggpubr包的ggarrange函数将多幅图像组合起来、使用ggexport函数将可视化图像保存为jpeg格式(width参数指定宽度、height参数指定高度、res参数指定分辨率)
氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心
Ansible
selenium使用———安装、测试
Hydrogen entrepreneurship competition | Liu Yafang, deputy director of the science and Technology Department of the National Energy Administration: building a high-quality innovation system is the cor
【五】页面和打印设置
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
R language ggpubr package ggarrange function combines multiple images and annotates_ Figure function adds annotation, annotation and annotation information for the combined image, adds image labels fo
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
【AI4Code最终章】AlphaCode:《Competition-Level Code Generation with AlphaCode》(DeepMind)
【AI4Code】《GraphCodeBERT: Pre-Training Code Representations With DataFlow》 ICLR 2021
【十一】矢量、栅格数据图例制作以及调整
Intelligent information retrieval (overview of intelligent information retrieval)
循环创建目录与子目录
Eureka注册中心开启密码认证-记录
【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
How to solve the problem of the error reported by the Flink SQL client when connecting to MySQL?
Atomic atomic class
技术管理杂谈