当前位置:网站首页>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 !!!
边栏推荐
- 【九】坐标格网添加以及调整
- 苹果供应链十年浮沉:洋班主任和它的中国学生们
- Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge
- [multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22
- [micro service ~sentinel] sentinel degradation, current limiting, fusing
- 氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心
- Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
- Atomic atomic class
- [multimodal] hit: hierarchical transformer with momentum contract for video text retrieval iccv 2021
- Word中的空白页,怎么也删不掉?如何操作?
猜你喜欢

Implement anti-theft chain through referer request header

从云原生到智能化,深度解读行业首个「视频直播技术最佳实践图谱」

Go garbage collector Guide

【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020

Brpc source code analysis (IV) -- bthread mechanism

Transformer variants (spark transformer, longformer, switch transformer)

Learning to pre train graph neural networks

【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)

NLP的基本概念1

【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
随机推荐
[dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil
Feign use
[high concurrency] a lock faster than read-write lock in high concurrency scenarios. I'm completely convinced after reading it!! (recommended Collection)
Power Bi -- these skills make the report more "compelling"“
【三】DEM山体阴影效果
R语言组间均值是否相同的成对比较:使用pairwise.t.test函数执行多个分组数据均值的两两成对假设检验
Go garbage collector Guide
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
R语言使用wilcox.test函数执行wilcox符号秩检验获取总体中位数(median)的置信区间(默认输出结果包括95%置信水平的置信区间)
【GCN-RS】Towards Representation Alignment and Uniformity in Collaborative Filtering (KDD‘22)
【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
【GCN多模态RS】《Pre-training Representations of Multi-modal Multi-query E-commerce Search》 KDD 2022
R语言ggpubr包ggarrange函数将多幅图像组合起来、annotate_figure函数为组合图像添加注释、注解、标注信息、fig.lab参数添加图像标签、fig.lab.face参数指定样式
通过Referer请求头实现防盗链
Week303 of leetcode (20220724)
【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)
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
R语言使用ggpubr包的ggarrange函数将多幅图像组合起来、使用ggexport函数将可视化图像保存为jpeg格式(width参数指定宽度、height参数指定高度、res参数指定分辨率)
R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the dot strip chart, set the palette parameter to configure the color of data points at different levels,
和特朗普吃了顿饭后写下了这篇文章