cancel
Showing results for 
Search instead for 
Did you mean: 

RS422

ozhan
Associate

I need to capture 8 x RS422 data and send them to abother unit via TCP/IP. We have designed a custom board for this. My questions are:

 

1. In terms of software programming side there is no difference between RS232 and RS422 right?

2. Which example sample source code would be useful for me? UART or USART?

thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

> 1. In terms of software programming side there is no difference between RS232 and RS422 right?

Yes, unless the flow control of RS232 is used, which is not common.

> 2. Which example sample source code would be useful for me? UART or USART?

They don't use a clock line, so UART is appropriate.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

> 1. In terms of software programming side there is no difference between RS232 and RS422 right?

Yes, unless the flow control of RS232 is used, which is not common.

> 2. Which example sample source code would be useful for me? UART or USART?

They don't use a clock line, so UART is appropriate.

If you feel a post has answered your question, please click "Accept as Solution".
Piranha
Chief II

Why did you created a duplicate topic?

https://community.st.com/t5/other-hardware/rs422/td-p/579334

Johi
Senior III

How do you test your board? What kind of MCU is on it? Are you able to make the ethernet work as such?

I use a usb-rs422 converter plugged into my PC. I use Hercules program to send RS422 data to my custom board. I managed ethernet to work without any problem.