Can I connect 2 UARTs of the same microcontroller, for testing purposes?

Status
Not open for further replies.

Doiri

Newbie level 1
Joined
Oct 29, 2013
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
16
Hello,

I want to test the board of my project, which uses the LPC1768 microcontroller. To test the UART circuits on the board I need to transmit some messages through a UART module (for example UART1) and receive back a response through another UART module (for example through UART3). For that I have this question: Can I connect 2 UARTs of the same microcontroller, send some signals on the Tx of one UART module and receive the same signals on the Rx of the other UART module, in the same time? Is there sufficient time to catch the incoming data on the Rx, to compare it with the data I have sent on the Tx?

I would really appreciate your answer.
Thank you,
Doiri
 

I'm not familiar with that processor, but as long as you read data as fast as you send it, it should work. The receiver probably (but not necessarily) has a buffer, so that will give you some flexibility. As long as you only send a byte after you've read a byte, you should be fine even without a buffer.
 

Thank you for the answer. I'll try testing.
Thank you,
Doiri
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…