This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Synchronizing 2 MCU uart communication

Other Parts Discussed in Thread: MSP430G2553

I have two msp430g2553 communicating via uart  ( rx, tx & gnd).

Problem is how to make sure that both are ready to do so.

First I made that unless one device send start byte(0x80), communication does not begin. But this does not work as I am not sure that which device is ready .

How to do that?

  • Both can send start byte in regular intervals until they receive a response byte. Once both got the expected response to their start byte, they know they are both up and running.

    You should design the communication in a way that the start byte (or "sync" byte, which fits better) can be sent at any time and will get the expected response. So you will avoid a lockup when one is already sending data when the other one is still expecting the sync response, and not data.

**Attention** This is a public forum