串行口及串行通信技术.pdf
文本预览下载声明
串行口及串行通信技术
•串行通信基本知识
•89C51串口及其应用
•两个单片机之间的通信
•单片机与PC机之间的通信
什么是串行通信?
串行通信和并行通信
串行通信和并行通信
发送
计算机1 计算机2 计算机1 计算机2
接收
GND GND GND GND
并行通信 串行通信
快、多 (数据线)、近
并行通信:数据的各位同时传送;
并行通信:数据的各位同时传送;
串行通信:数据一位一位顺序传送。
串行通信:数据一位一位顺序传送。 慢、少、远
串行通信制式:单工 (a)、半双工 (b)和全双工 (c)
串行通信制式:单工 (a)、半双工 (b)和全双工 (c)
(simplex half duplex full duplex)
(simplex half duplex full duplex)
A站 B站
单工通信
发送器 接收器
(a)
发 发 发 收
收 收 收 发
A站 B站 A站 B站
(b) (c)
串行通信的分类:
异步 (Asynchronous Communication)
异步 (Asynchronous Communication)
串行通信的分类:
同步(Synchronous Communication)
同步(Synchronous Communication)
异步通信 , ASYNC (Asynchronous Data
, ASYNC (Asynchronous Data
Communication):帧格式传送,信息量不大
Communication):帧格式传送,信息量不大
1个起始位,0
1个起始位,0
5 ~8个数据位
5 ~8个数据位
奇偶校验位
奇偶校验位
1 ~2个停止位,0
1 ~2个停止位,0
同 步 通 信 , SYNC(Synchronous
显示全部