Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Terminate A Circuit Not In Use

Status
Not open for further replies.

danner123

Member level 3
Joined
Jan 23, 2008
Messages
55
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,742
Hi everyone, I have a PC that communicates over serially RS-232. The PC is connected by a cable to RS-232 Device 1. I am able to communicate with Device 1 from the PC. I now want to communicate from the PC with another RS-232 device, RS-232 Device 2. I want to be able to communicate from the PC with Device 1 when I want to and with Device 2 when I want to but never communicate at the same time (only communicate with one device at a time).

My goal is not to have to have two separate cables to talk to each Device 1 and Device 2. After communicating with Device 1 I do not want to have to disconnect the cable from Device 1 to the PC and then connect the cable from Device 2 to the PC to communicate with Device 2 from the PC.

Someone brought up to to me that I could terminate the Device that is not being currently communicated with. How do I use 1 cable with termination to the Device that is not being communicated with from the PC?

Thanks so much!
 

hobbyckts

Advanced Member level 1
Joined
Mar 12, 2015
Messages
481
Helped
88
Reputation
176
Reaction score
85
Trophy points
28
Activity points
2,457
Go for USB to serial converter to make this happen? Connect the serial port to device 1 and connect the USB converter to device 2

or go for serial board add-on card in your PC. So that you will be having 2 serial ports.
 

Gorgon

Full Member level 6
Joined
Nov 10, 2005
Messages
345
Helped
75
Reputation
150
Reaction score
67
Trophy points
1,308
Location
Norway
Activity points
3,639
The problem you have is that two devices need to transmit on the same wire to the PC. If you are certain that only one device will be transmitting at any given time, you can solve this with 2 diodes and a pulldown resistor on the PC Rx signal, or a diode and 22k in parallel from each Tx line to the PC Rx. The inactive decvice will then function as an active pulldown. The PC will then transmit to both units at the same time, and get an ANDing of the Tx lines from each device.

This will only work if the devices don't answer communication destined to the other device.

The value of the resistor will be a bit depending on the baudrate you use, but 10-22k should be ok.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top