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.
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:
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
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;
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.