UART

Hello all,

i’m using msp430f149,it has two UART,shall i use these two UART simultaneously(one for->receiving and one for->transmitting)

by

naz

There are 9 possible activities that two UARTs can be used at any instance.

  1. Both receive.

  2. Both transmit.

  3. Both inactive.

  4. One receive, the other transmit.

  5. One inactive, the other transmit.

  6. One transmit, the other receive.

  7. One inactive, the other receive.

  8. One receive, the other inactive.

  9. One transmit, the other inactive.

Any one of the above is a correct usages as the situation requires.

None of them is correct if you do not know what you are doing.

And one UART or both can be used in duplex mode, transmitting and receiving simultaneously. :smiley:

Leon

Leon, you are absolutely right. There are 16, not just 9.

16 or 9, “infinite monkeys” can definitely solve this problem (if this is the only problem;)

He’s got plenty of choices, anyway. :slight_smile:

Leon

could you please send me the sample code

Reading the datasheet and utilizing a text editor should produce the sample code you desire.

ya it’s correct,but i knew how to write code for single uart,but double means how?in data sheet they didn’t mention.

Take a risk and try something. Anything. Anything at all.

Take a risk and try something. Anything. Anything at all.

Is that a good idea? Yes, it will "almost surely" work.

There was a memo describes a protocol suite for Network Working Group.

http://www.ietf.org/rfc/rfc2795.txt

thank you to all,finally it’s working fine.