当前位置:网站首页>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 !!!
边栏推荐
- aaaaaaaaaaA heH heH nuN
- 【黑马早报】运营23年,易趣网宣布关停;蔚来对大众CEO抛出橄榄枝;华为天才少年曾放弃360万年薪;尹烨回应饶毅炮轰其伪科学...
- 【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
- 苹果供应链十年浮沉:洋班主任和它的中国学生们
- Brpc source code analysis (IV) -- bthread mechanism
- 循环创建目录与子目录
- selenium使用———安装、测试
- After having a meal with trump, I wrote this article
- I advise those students who have just joined the work: if you want to enter the big factory, you must master these concurrent programming knowledge! Complete learning route!! (recommended Collection)
- Pycharm connects to the remote server SSH -u reports an error: no such file or directory
猜你喜欢

Zuul gateway use

Brpc source code analysis (IV) -- bthread mechanism

After having a meal with trump, I wrote this article

Basic concepts of NLP 1

【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22

919. Complete binary tree inserter: simple BFS application problem

Intelligent information retrieval (overview of intelligent information retrieval)

【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)

Multi label image classification
![[comparative learning] understanding the behavior of contractual loss (CVPR '21)](/img/96/9b58936365af0ca61aa7a8e97089fe.png)
[comparative learning] understanding the behavior of contractual loss (CVPR '21)
随机推荐
【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化点状条带图、设置palette参数配置不同水平数据点的颜色、设置add参数在点状条带图中添加均值标准差竖线
客户端开放下载, 欢迎尝鲜
Knowledge maps are used to recommend system problems (mvin, Ctrl, ckan, Kred, gaeat)
After having a meal with trump, I wrote this article
Figure neural network for recommending system problems (imp-gcn, lr-gcn)
selenium使用———xpath和模拟输入和模拟点击协作
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
Ansible
Multi label image classification
919. 完全二叉树插入器 : 简单 BFS 运用题
3.2.1 what is machine learning?
那些离开网易的年轻人
Behind the screen projection charge: iqiyi's quarterly profit, is Youku in a hurry?
Zero shot image retrieval (zero sample cross modal retrieval)
Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
WPF project introduction 1 - Design and development of simple login page
【七】图层显示和标注
919. Complete binary tree inserter: simple BFS application problem
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