当前位置:网站首页>Serial communication interface 8250
Serial communication interface 8250
2022-06-30 12:03:00 【Hua Weiyun】
1、 The basic concept of serial communication
1. serial communication : Decompose data into binary bits , Transmit bit by bit with a signal line .
(1) advantage : There are few lines for communication , The cost of long distance communication can be reduced .
(2) shortcoming : The communication speed is slow .
(3) purpose : It is often used for data transmission between systems with low speed requirements .
2. The two sides of serial communication must solve 6 A question :
(1) Both parties agree on the rate of data transmission and reception ( Baud rate );
(2) What data format is agreed upon ( The frame format );
(3) How does the receiver know the beginning and end of a batch of data ( Frame synchronization );
(4) How does the receiver sample the data in place correctly from the bit stream ( Bit synchronization );
(5) How does the receiver judge the correctness of the received data ( data verification );
(6) How to deal with errors in sending and receiving ( Error handling ).
3. The classification of serial communication ( According to the synchronization mode )
(1) asynchronous communication : Think of a character as an independent unit of information , And the relative time that characters appear in the data stream is arbitrary , And the bits in each character are transmitted at a fixed time .
namely : In character synchronization , Asynchronous between characters .
The communication protocol of serial asynchronous communication is called : Start stop asynchronous communication protocol .
The character format of the transmission :
① Start bit : Using logic 0 The level serves as a symbol of the beginning of transmission of each character ;
② Data bits : The data bit is transmitted immediately after the start bit . from 5~8 Binary bits make up , Low first ;
③ Check bit : Used to verify whether the transmission is correct ; The odd test is optional 、 Even check or not transfer check bit ;
④ Stop bit : Indicates the end of the character transmission . The stop bit uses logic 1 level , Can choose 1、1.5 or 2 position ;
⑤ Free bit : Transfer logic between characters 1 level , Indicates that there is no transmission .
(2) Synchronous communication : In a block of data ( frame ) Is the transmission unit , Each data block is attached with 1 Or 2 Sync characters , Finally, it ends with a check character .
The most common synchronous communication protocol is : Advanced data link control protocol HDLC
Transmission format ( One frame ):
4. Transmission mode :
1、 modems
- modulation : Converting digital signals into analog signals transmitted over telephone lines .
- demodulation : Convert analog signal of telephone line to digital signal .
- modems : Devices with modulation and demodulation functions are combined in one device .
2,8250 Universal asynchronous receiver transmitter
8250 It's a typical UART chip
边栏推荐
- R语言ggplot2可视化:gganimate包基于transition_time函数创建动态散点图动画(gif)、使用labs函数为动画图添加动态时间标题(抽取frame_time信息)
- R language ggplot2 visualization: gganimate package is based on Transition_ Time function to create dynamic scatter animation (GIF)
- 【重温经典C语言】~c语言中%x、%c、%d、%x等等等、c语言取地址符&的作用、C语言中的 联合体
- Boost研究:Boost Log
- R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置alpha参数指定数据点的透明度级别(points transparent、从0到1)
- 再不上市,旷视科技就熬不住了
- Another miserable day by kotlin grammar
- YOLOv5导出onnx遇到的坑
- go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
- What is erdma as illustrated by Coptic cartoon?
猜你喜欢

Limited time appointment | Apache pulsar Chinese developer and user group meeting in June

YOLOv5导出onnx遇到的坑

Embedded SIG | 多 OS 混合部署框架

限时预约|6 月 Apache Pulsar 中文开发者与用户组会议

MySQL 复合查询

How can c write an SQL parser

wallys/600VX – 2 × 2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz QCA 9880

ZABBIX monitors the number of TCP connections

Boost研究:Boost Log

Let's talk about how to do hardware compatibility testing and quickly migrate to openeuler?
随机推荐
R语言ggplot2可视化:使用ggplot2可视化散点图、aes函数中的size参数指定数据点的大小(point size)
AutoCAD - len command
1254. 统计封闭岛屿的数目
He was the first hero of Shanghai's two major industries, but died silently in regret
R语言ggplot2可视化:gganimate包基于transition_time函数创建动态散点图动画(gif)
深入解析 Apache BookKeeper 系列:第四篇—背压
Multiparty Cardinality Testing for Threshold Private Set-2021:解读
Review the writing software with characteristics
AUTOCAD——LEN命令
又被 Kotlin 语法糖坑惨的一天
Flutter 从零开始 007 输入框
21、wpf之绑定使用小记
一个悄然崛起的国产软件,低调又强大!
Object mapping - mapping Mapster
MySQL 复合查询
MySQL 内置函数
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-论文阅读笔记
聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
Multiparty cardinality testing for threshold private set-2021: Interpretation
Summer vacation study record
