当前位置:网站首页>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 !!!
边栏推荐
- web编程(二)CGI相关
- numpy初识
- 循环创建目录与子目录
- Brpc source code analysis (IV) -- bthread mechanism
- R language ggplot2 visualization: visualize the scatter diagram, add text labels to some data points in the scatter diagram, and use geom of ggrep package_ text_ The repl function avoids overlapping l
- aaaaaaaaaaA heH heH nuN
- 【十一】矢量、栅格数据图例制作以及调整
- Eureka usage record
- [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
- NLP knowledge - pytorch, back propagation, some small pieces of notes for predictive tasks
猜你喜欢
![[multimodal] hit: hierarchical transformer with momentum contract for video text retrieval iccv 2021](/img/48/d5ec2b80cd949b359bcb0bcf08f4eb.png)
[multimodal] hit: hierarchical transformer with momentum contract for video text retrieval iccv 2021

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

GPT plus money (OpenAI CLIP,DALL-E)

微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告

【6篇文章串讲ScalableGNN】围绕WWW 2022 best paper《PaSca》

Musk's "eternal soul": half hype, half flicker

Basic concepts of NLP 1

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

Transformer variants (spark transformer, longformer, switch transformer)

通信总线协议一 :UART
随机推荐
How to access DMS database remotely? What is the IP address? What is the user name?
Zero shot image retrieval (zero sample cross modal retrieval)
Brpc source code analysis (II) -- the processing process of brpc receiving requests
Scott+scott law firm plans to file a class action against Yuga labs, or will confirm whether NFT is a securities product
NLP的基本概念1
R language uses LM function to build multiple linear regression model, step function to build forward stepwise regression model to screen the best subset of prediction variables, and scope parameter t
[RS sampling] a gain tuning dynamic negative sampler for recommendation (WWW 2022)
Video caption (cross modal video summary / subtitle generation)
Zuul网关使用
scrapy 设置随机的user_agent
mysql的表分区
R语言ggplot2可视化:可视化散点图并为散点图中的部分数据点添加文本标签、使用ggrepel包的geom_text_repel函数避免数据点之间的标签互相重叠(为数据点标签添加线段、指定线段的角度
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置add参数在小提琴内部添加抖动数据点以及均值标准差竖线(jitter and mean_sd)
1.1.1 欢迎来到机器学习
Scott+Scott律所计划对Yuga Labs提起集体诉讼,或将确认NFT是否属于证券产品
[comparative learning] understanding the behavior of contractual loss (CVPR '21)
【九】坐标格网添加以及调整
Meta learning (meta learning and small sample learning)
Feign使用