

串口的数据帧
1.空闲

2.起始位

3.数据位

4.校验位(可有可无)
为了验证数据传输是否出错而设立的比特位

1和4传输方式比较常见
校验规则:

根据1的个数,校验位会自己补0或1
5.停止位

例子:


同步通信

异步通信

波特率

每一个高低电平就是一个码元
收发双方要采用相同的波特率
硬件流控
流控:防止发送方发送数据过快,接收方可给一个反馈信号,反馈信号就是流控信号,这种控制方式就叫流控

CTS:接收反馈信号
RTS:发送反馈信号
串口的数据帧
1.空闲
2.起始位
3.数据位
4.校验位(可有可无)
为了验证数据传输是否出错而设立的比特位
1和4传输方式比较常见
校验规则:
根据1的个数,校验位会自己补0或1
5.停止位
例子:
同步通信
异步通信
波特率
每一个高低电平就是一个码元
收发双方要采用相同的波特率
硬件流控
流控:防止发送方发送数据过快,接收方可给一个反馈信号,反馈信号就是流控信号,这种控制方式就叫流控
CTS:接收反馈信号
RTS:发送反馈信号