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.
Replies: 23
Views: 2189
I am programming a MSP430F5508 chip and using it for Timer interrupts and then finally sending the processed data in an Array of 130 bytes through the UART.
The first 128 bytes are acccurately transmitted but the two bytes after are corrupted. They can be read properly in IAR when I debug the chip through it. However the transmission is failing. Is it an overrun error? What is it? How to rectify it?
In reply to Hardik Katyarmal:
In reply to Dennis Eichmann:
When sending the bytes from this loop
while( i < dataXmitLength ) //dataXmitLength is 128, i initialised to 0 { while( !(UCA1IFG & UCTXIFG) ); // USCI_A0 TX buffer ready? UCA1TXBUF = DataArray[i++]; }
is the RX interrupt disabled?
There are a few remarks regarding your baudrate - it says 9600 and 19200. Which baudrate are you using? And what is your SMCLK and where does it come from? Is it a precise clock source? You can route SMCLK to an output pin to measure it externally.
Then your MCTL-setting is wrong. It should be:
UCA1MCTL = 0x2000 | UCBRF_8 | UCOS16;