Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Data was shifted when i use UART

$
0
0

Hi everyone,

I make a GUI and send a string contains 4 bits,

The first time i send ( E.g "1234") I have received "1234"

But the 2nd i have received "2341", so on the third i have received "3412"

So data was shifted, I have debugged and detected in my received string have a char with value ="10" (LF), Although i havent send it.

How can i fix my error?

Plz give a solution, thank in advance.


Viewing all articles
Browse latest Browse all 2077

Trending Articles