RS-232 communication between 2 PCs in comparison to one with PC and MCU

Status
Not open for further replies.

Slayerza

Full Member level 5
Joined
Oct 22, 2005
Messages
295
Helped
27
Reputation
54
Reaction score
5
Trophy points
1,298
Location
South Africa
Activity points
3,462
Hi,
I noticed the following. Connecting 2 PC's together serially (RS232) u twist the cable. However communication between my PC and a MAX232->MCU uses a straight cable.

Why is this?

My reasoning is that tieing Tx(PC) to Tx(MAX) would result in collisions as both pins/lines are transmitting data?

Any ideas?
 

Re: RS-232 Communication


**broken link removed**

Regards,
IanP
 

    Slayerza

    Points: 2
    Helpful Answer Positive Rating
Re: RS-232 Communication

sir
actually you are connecting the tx of pc to the rx of the mcu and viceversa
seethe diagram of your max 232 to the mcu
if it's not so,the communication will not take place

sunish
 

Re: RS-232 Communication

Slayerza said:
as both pins/lines are transmitting data?

TX has the ambiguos name of transmitted data, which you could refer to either side of the connection because both are transmitting data.
For this line you should always take the point of view of the DTE device, which is usually the terminal or PC you will be working on. So, TX referrs to data that is being transmitted from your PC. RX refers to data that is being received by your PC.

My 2 cent advice.

- Never relies on marked lines.
- Don't try to figure out which is which, DTE or DCE (how about two microcontrollers communicates through serial lines; obvious they are both DTE)
- Allways use a DC voltmeter and measure the DC level of the involved pins as described in page 5 of document mentioned by IanP
 

Re: RS-232 Communication

Just make sure that Rx of one uC is connected to Tx of another and viceversa.
 

Re: RS-232 Communication

The case is the direct use between transmitter and reciver you plug the TX of the transmitter and RX of the transmitter to the TX of the receiver
But connecting it to any external device you may twist the i/p as they are inverted at the reciver
 

RS-232 Communication

i need the data sheet of max232 and max233,anybody can help me?
 

Re: RS-232 Communication

i think you know the different pins on rs232.

2nd pin is the tx pin.3rd pin is the rx pin .as far as i know inorder to connect two PC's serially it doesn't need a mcu or any external hardware .As the Pc itself contain UART and MAX level converter.So what we need to do is just interconnect the 2nd ,3rd pin wires an one end that all what it needs

try it i am sure it will work

all the best
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…