当前位置:网站首页>USB to RS485 serial port circuit design "suggestions collection"
USB to RS485 serial port circuit design "suggestions collection"
2022-06-29 10:53:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
USB The serial port signal of the serial port chip is generally TTL/CMOS level , In half duplex RS485 External connection is required for serial port 485 Level conversion chip , Design A signal is required to control 485 Transmit and receive enable end of the transfer chip , It is recommended to choose to bring 485 Switching chip of control pin ( Such as CH340/CH342 Series of chips TNOW Pin ), This pin defaults to low level , When the serial port is in the sending state, it will be automatically raised to be in the effective state , The transmission is completed and then the low level is restored . Empathy , It can be extended to other application scenarios , Such as MCU serial port to 485 Can be used in circuit design GPIO Mouth to control 485 Transmit and receive enable of the transfer chip .
With MAX485 For example :
1. DE Enable... For sending ,RE Enable... For reception ,DI by TTL/CMOS Serial transmission ,RO by TTL/CMOS A serial port to receive .
2. TNOW Control signal pins are connected at the same time DE and RE; In the serial port sending state ,TNOW Output high level , open DE Receive enable ; When the serial port does not send ,TNOW Output low level , The default RE Receive enable ;
common problem Q&A
Q: The serial port often receives 0x00 Bit error value ?
A: In the receive enable state , commonly 485 Of A and B The signal terminal is in high resistance state , In the process of transmitting and receiving A and B The signal remains , Did not return to idle state . Lead to RO End sampling error . here , stay A Terminate a pull-up resistor ,B Terminate a pull-down resistor , The resistance value shall be calculated according to the manual and practical application .
Q:AB Whether the terminal needs parallel terminal matching resistance ?
A: According to the manual , At present, many chips are built-in 120 Ohm matching resistance , It's not a mandatory option .
Q: How to calculate the number of cascade devices ?
A: It shall be determined according to the received input impedance marked in the manual , Generally, the maximum number of transceivers allowed will also be directly marked .
Application circuit 1
The following figure shows the use of the built-in TNOW Pin 485 Control signal USB Switch to dual serial chip CH342F Designed two-way RS485 Serial port circuit :
notes :CH342F Of DTR When the pin is connected to the pull-down resistor, it will switch to TNOW Pin , Used in the above figure is 4.7K.
Application circuit 2
If the selected model does not 485 Control signals , Use only TXD and RXD Two signal lines 485 The need for circuit switching is also very common . The following is the schematic diagram :
Realization principle : take RE Keep setting 0, Enable receive enable (RE And DE Direct short connection is also possible ), take TXD Reverse post connect send enable end DE.TXD The output is high , Connected 485 The chip send enable is invalid , The bus output is idle ( High level ),TXD Output low level , Send enable is valid . Compared to the application 1, Because there is a triode reverse circuit , The signal output control will have a delay , It is not recommended to use in high baud rate communication .
The above conversion circuit and design principle are in 485 High frequency is used in the conversion circuit , Users can flexibly select according to their needs .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/132437.html Link to the original text :https://javaforall.cn
边栏推荐
- 2600 pages in total! Another divine interview manual is available~
- AQS之ReentrantLock源码解析
- C language printf family
- LVGL库入门教程 - 动画
- (JS)数组去除重复
- Does your project need automated testing?
- 共2600页!又一份神级的面试手册面世~
- Highly paid programmers & interview questions: how to ensure the data consistency between redis cache and database in series 117?
- np.astype()
- 反CSRF爆破的三种姿势
猜你喜欢
![[200 opencv routines] 214 Detailed explanation of drawing ellipse parameters](/img/d2/807095d8ebf563915f0674f0992037.png)
[200 opencv routines] 214 Detailed explanation of drawing ellipse parameters

arcgis创建postgre企业级数据库

AQS之BlockingQueue源码解析

Bug description, rating and life cycle

(JS)数组去除重复

【FreeRTOS】08 互斥信号量、优先级反转问题

Buuctf-- connotative software

Here comes the tutorial of datawhale recommendation system!

Stm32f1 and stm32subeide programming example - ultrasonic distance sensor drive

这个mySQL安装的时候怎么搞去了?
随机推荐
Numeric Keypad
容器平台性能如何测试,稳定性、扩展效率、组件性能
(JS)模仿一个instanceof方法
加密市场接连爆雷,Celsius能避免破产吗?
Print leap years between 1000 and 2000 (C language)
Qt编写物联网管理平台37-逻辑设计
“AI x 科学计算”进行时,华为昇思 MindSpore 赛题火热开启,等你来!
1- database understanding
STM32F1與STM32CubeIDE編程實例-超聲波測距傳感器驅動
(JS)数组排平(flat)
2600 pages in total! Another divine interview manual is available~
罗清启:高端家电已成红海?卡萨帝率先破局
PyTorch学习笔记(6)——DataLoader源代码剖析
美国EB-5移民再现利好,区域中心再授权政策被叫停
Ningde era Kirin battery has greater ambition
30岁,女,普通软件测试媛,对职业的迷茫和焦虑
SQL Server 数据库的几种简单查询
Ora-01950 does not have permission on tablespace
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过