当前位置:网站首页>RS232 RS485 RS422 通信 学习及备忘笔记
RS232 RS485 RS422 通信 学习及备忘笔记
2022-07-28 05:23:00 【Tsd-Xu】
USART SPI IIC 适用于板内通信,最好不要拉出板外。
RS232 RS485 RS422 CAN 适用于板外通信。
也就是说相对于 USART SPI IIC 通信而言,RS232 RS485 RS422 CAN 通信抗干扰能力更强。
RS232
异步(无时钟线)全双工通信(意思是能够同时完成收发信号);
逻辑1 :-3 ~ -15v;
逻辑0 :3 ~ 15v;
噪声容限 为2V。
RS232不是差分信号传输的,这也是其抗干扰能力有限,传输距离受限的原因,使用时建议传输距离不大于20m。
rxd 用于接收信号;
txd 用于发射信号;
RS232有两根信号线
所以当设备使用rs232通信时,RXD和TXD需要交叉接.
只适用于1对1通信。
max3232是uart与RS232转换芯片,在布局时建议靠接口排放,如需做EMC测试需加相关防护器件,如 ESD,TVS等。
RS485
异步半双工通信(意思是在同一时间只能进行读取信号或者发送信号);
逻辑1:两线的电压差2~6v;
逻辑0:两线的电压差-6~-2v;
RS485属于差分传输,其抗干扰能力强(共模干扰),传输距离远,可达上千米,通信速率也比RS232快,但是双绞线的长度与通信速率是反比关系。
485A:差分信号A
485B:差分信号B
RS485有两根信号线
所以设备与设备使用RS485通信时,不能交叉接。
RS485通信适用于多个设备之间通信,需要在第一个和最后一个设备接口处端接120Ω电阻(由双绞线特性阻抗决定的)。
max485芯片RS485与uart转换芯片,在布局时建议靠接口排放,针对 EFT ESD 建议在接口处增加气体放电管及TVS管,针对EFT(共模干扰)需增减共模电感。
RS422
异步 全双工 通信
逻辑1:两线的电压差2~6v;
逻辑0:两线的电压差-6~-2v;
RS422也属于差分通信,传输距离远,可达上千米,也需要短接120Ω电阻。
RXD+
RXD-
构成接收差分传输
TXD+
TXD-
构成发送差分传输
所以RS422有4根信号线。
同样在布局元器件是建议靠端口摆放,如有EMC要求,建议增减相应防护器件。
边栏推荐
- USB Network Native Driver for ESXi更新到支持ESXi7.0.1
- 深度学习(自监督:CPC v2)——Data-Efficient Image Recognition with Contrastive Predictive Coding
- vscode uniapp
- 《Distilling the Knowledge in a Neural Network》知识蒸馏论文解读
- Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address
- 五、视频处理与GStreamer
- Prime_ Series range from detection to weight lifting
- 神经网络实现鸢尾花分类
- 5、 Video processing and GStreamer
- Research on threat analysis and defense methods of deep learning data theft attack in data sandbox mode
猜你喜欢

Deep learning (self supervision: Moco V2) -- improved bases with momentum contractual learning

ESXi社区版NVMe驱动更新v1.1

TensorFlow2.1基本概念与常见函数

Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition

Reinforcement learning - incomplete observation problem, MCTs

Deep learning (self supervised: Moco V3): An Empirical Study of training self supervised vision transformers

A comparative study of backdoor attack and counter sample attack

Reinforcement learning - proximal policy optimization algorithms

强化学习——不完全观测问题、MCTS

深度学习数据窃取攻击在数据沙箱模式下的威胁分析与防御方法研究阅读心得
随机推荐
深度学习——Patches Are All You Need
Addition and multiplication calculation of GF (2^8)
神经网络实现鸢尾花分类
五、视频处理与GStreamer
Interpreting the knowledge in a neural network
What are the detailed steps of wechat applet development?
基于选择性知识提取的野外低分辨率人脸识别的论文阅读笔记
Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address
LED发光二极管选型-硬件学习笔记3
Reinforcement learning - continuous control
二、OpenVINO简述与构建流程
File upload vulnerability summary
关于接触器线圈控制电路设计分析
Latex入门
The difference between router and switch
Protecting Against DNN Model Stealing Attacks 论文阅读心得
Overview of unconstrained low resolution face recognition III: homogeneous low resolution face recognition methods
What is the detail of the applet development process?
机器学习之聚类
深度学习(自监督:CPC v2)——Data-Efficient Image Recognition with Contrastive Predictive Coding