当前位置:网站首页>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
边栏推荐
- 再不上市,旷视科技就熬不住了
- After the node is installed in the NVM, the display is not internal or external when the NPM instruction is used
- 盘点那些具有特色的写作软件
- 论文解读(AGC)《Attributed Graph Clustering via Adaptive Graph Convolution》
- Lucene全文检索工具包学习笔记总结
- ModelAtrs声音检测,基于声学特征的异响检测
- 对象映射 - Mapping.Mapster
- AUTOCAD——LEN命令
- It is said that with this, the boss opened the test overnight
- Let's talk about how to do hardware compatibility testing and quickly migrate to openeuler?
猜你喜欢
随机推荐
shell第一个命令结果传入第二个命令删除
使用cookie技术实现历史浏览记录并控制显示的个数
beego开发博客系统学习(二)
Multiparty cardinality testing for threshold private set-2021: Interpretation
Automatic database growth
NoSQL——Redis的配置与优化
Stm32f407zgt6 uses SDIO mode to drive SD card
R语言ggplot2可视化:使用ggplot2可视化散点图、使用scale_size函数配置数据点的大小的(size)度量调整的范围
Boost研究:Boost Log
MySQL 复合查询
Typescript readonlyarray (read only array type) details
R language ggplot2 visual Facet: gganimate package is based on Transition_ The time function creates a dynamic scatter graph animation (GIF) and uses the labs function to add a dynamic time title to t
R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置show_legend参数为FALSE配置不显示图例信息
STM32 移植 RT-Thread 标准版的 FinSH 组件
Redis - ziplist compressed list
Database transactions
Object mapping - mapping Mapster
ModelAtrs声音检测,基于声学特征的异响检测
QT embeds the sub QT program window into the current program
又被 Kotlin 语法糖坑惨的一天