Jump to content
Sign in to follow this  
hemangjoshi37a

UART Communication between Arduino and MSP430F5529

Recommended Posts

Dear Developers,

I want to send data from MSP430F5529 to my Arduino Nano through UART connection. But somehow it is not working filne. I have used voltage devider circuit to convert Arduino's 5V to MSP's 3.3V. 

Connection

Arduino's RX -> MSP's TX

Arduino's TX -> MSP's RX

Ground of Both -> ground of voltage devicer.

Code of Arduino :

const int chipSelect = 10;

String inByte = " ";
void setup() {
  // initialize both serial ports:
  Serial.begin(9600);

}

void loop() {
  if(Serial.available())
 {
    char b = Serial.read();
    Serial.println(b);
  }
  
  delay(50);
}

Code of MSP430F5529

void setup() {

  Serial.begin(9600);
}

void loop() {
  Serial.write("Hii");

  delay(50);
}

Please Help me.

Thank you.

Share this post


Link to post
Share on other sites

From Arduino's Serial terminal I should get "Hii" message but it is not showing anything.

Infact I found that the MSP is just not transmitting anything by connecting Tx pin of MSP to oscilloscope  and not getting any signal.

Share this post


Link to post
Share on other sites
9 minutes ago, hemangjoshi37a said:

From Arduino's Serial terminal I should get "Hii" message

How? Your Arduino is connected to the MSP board. Is it connected to the PC in the same time? I don't think you can share the U(S)ART link in this way.

When you check it with the oscilloscope, is the MSP board connected to the Arduino/PC, or alone?

 

Share this post


Link to post
Share on other sites

Arduino is connected to PC through USB cable and to MSP through TX/RX Pins. (to both at same time.)

But When I  transmit anything through Arduino, It shows on oscilloscope as well as on serial terminal. Why so?? So that in arduino we can intercept the serial signal and in MSP we cant. right??

Share this post


Link to post
Share on other sites

Arduino -> PC & MSP: one output TX (arduino) "speaking" to two inputs (RX PC & RX MSP)

Arduino <- PC & MSP: two outputs (TX PC & TX MSP) trying to drive in the same time different logic levels on the same line (RX Arduino).

Share this post


Link to post
Share on other sites

So what is this?? solution ??

6 minutes ago, LiviuM said:

Arduino -> PC & MSP: one output TX (arduino) "speaking" to two inputs (RX PC & RX MSP)

Arduino <- PC & MSP: two outputs (TX PC & TX MSP) trying to drive in the same time different logic levels on the same line (RX Arduino).

 

Share this post


Link to post
Share on other sites

look man just forget about connection to PC, because arduino and MSP both are connected to PC through USB cable, Not using RS232 connection.

And very basic question is why MSP is not able to develop any signal on TX pin while I am transmitting some data. however Arduino generates signal on TX pin when I try to transmit some data using same code.

Share this post


Link to post
Share on other sites

Hey yo. I thought it would work but it is still not working. And guess what, I am a advance member now......yay.......

You said I have wrong connections. Well I have connected Tx pin to Rx and Rx pin to Tx, Isn't it right bro??

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...