I have connected a msp430 with a sensor via max3232 and I am able to see the incoming data. But the problem is that the 9 bytes of the data are ok but then the data get corrupted.
The baudrate I am using 9600 is the same the sensor uses If u connect it to the pc.
If you can point me on what can be the error I would really appreciate it.
UART corrupted data
uart
Best Answer
What is the max Baud Rate that works error free?
Added: I think that your UART function has an overrun; can you check?
RX ISR should be really short, something like this:
Then code in main() can watch the value of pos and the characters in the buffer to decide what to do.