当前位置:网站首页>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 !!!
边栏推荐
- 从云原生到智能化,深度解读行业首个「视频直播技术最佳实践图谱」
- NLP knowledge - pytorch, back propagation, some small pieces of notes for predictive tasks
- 【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)
- 氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心
- R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化点状条带图、设置palette参数配置不同水平数据点的颜色、设置add参数在点状条带图中添加均值标准差竖线
- Technical management essay
- Resttemplate and ribbon are easy to use
- Can't delete the blank page in word? How to operate?
- 【九】坐标格网添加以及调整
- 【三】DEM山体阴影效果
猜你喜欢

面试官:“同学,你做过真实落地项目吗?”

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

Feign使用

Behind the screen projection charge: iqiyi's quarterly profit, is Youku in a hurry?

Brpc source code analysis (I) -- the main process of RPC service addition and server startup

919. 完全二叉树插入器 : 简单 BFS 运用题

【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)

NLP knowledge - pytorch, back propagation, some small pieces of notes for predictive tasks

Transformer variants (spark transformer, longformer, switch transformer)

web编程(二)CGI相关
随机推荐
【AI4Code最终章】AlphaCode:《Competition-Level Code Generation with AlphaCode》(DeepMind)
Plus版SBOM:流水线物料清单PBOM
NLP知识----pytorch,反向传播,预测型任务的一些小碎块笔记
【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
【六】地图框设置
【GCN-RS】Towards Representation Alignment and Uniformity in Collaborative Filtering (KDD‘22)
【四】布局视图和布局工具条使用
919. 完全二叉树插入器 : 简单 BFS 运用题
Brpc source code analysis (I) -- the main process of RPC service addition and server startup
Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)
利用wireshark对TCP抓包分析
Basic concepts of NLP 1
mysql的表分区
R语言使用lm函数构建多元回归模型(Multiple Linear Regression)、使用step函数构建前向逐步回归模型筛选预测变量的最佳子集、scope参数指定候选预测变量
logstash
aaaaaaaaaaA heH heH nuN
1.1.1 欢迎来到机器学习
循环创建目录与子目录
【三】DEM山体阴影效果