当前位置:网站首页>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要求,建议增减相应防护器件。
边栏推荐
- The number of password errors during login is too many, and the user is blocked,
- Clustering of machine learning
- Basic usage of word2vec and Bert
- 基于tensorflow搭建神经网络
- Apache log4j arbitrary code execution replication
- Small program development solves the anxiety of retail industry
- Classification of iris based on Neural Network
- Reinforcement learning - continuous control
- 5、 Video processing and GStreamer
- Using neural network to predict the weather
猜你喜欢

Classification of iris based on Neural Network

How much does it cost to make a small program mall? What are the general expenses?

Tf.keras build neural network function expansion

How to improve the efficiency of small program development?

Common CTF encryption methods JS

无约束低分辨率人脸识别综述二:异构低分辨率人脸识别方法

端接电阻详解 信号完整系列 硬件学习笔记7

深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning

How much is wechat applet development cost and production cost?

《On Low-Resolution Face Recognition in the Wild:Comparisons and New Techniques》低分辨率人脸识别论文解读
随机推荐
Small program development solves the anxiety of retail industry
ESXi 社区版网卡驱动
How to choose an applet development enterprise
EIGamal 密码体制描述
51单片机独立按键联动数码管LED蜂鸣器
Latex入门
五、视频处理与GStreamer
Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address
深度学习(自监督:SimSiam)——Exploring Simple Siamese Representation Learning
Overview of unconstrained low resolution face recognition II: heterogeneous low resolution face recognition methods
Adaface: quality adaptive margin for face recognition image quality adaptive edge loss for face recognition
Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
Tf.keras build neural network function expansion
Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations
ESXi 7.0 Update 1c中加入的systemMediaSize启动选项
Geek challenge 2019-sql injection five questions PW
无约束低分辨率人脸识别综述二:异构低分辨率人脸识别方法
Clustering of machine learning
深度学习数据窃取攻击在数据沙箱模式下的威胁分析与防御方法研究阅读心得
Neural network learning