SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By naz
#75506
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
By OldCow
#75522
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.
User avatar
By leon_heller
#75525
And one UART or both can be used in duplex mode, transmitting and receiving simultaneously. :D

Leon
By OldCow
#75537
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;)
User avatar
By leon_heller
#75539
He's got plenty of choices, anyway. :)

Leon
By naz
#75756
could you please send me the sample code
By theatrus
#75790
Reading the datasheet and utilizing a text editor should produce the sample code you desire.
By naz
#75830
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.
By theatrus
#75853
Take a risk and try something. Anything. Anything at all.
By OldCow
#75861
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
By naz
#75895
thank you to all,finally it's working fine.