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.
Tool/software: Code Composer Studio
Hi,
I am configuring an MSP430F5529 UART at a DCO of 8 MHz and a baud rate of 115200. I am establishing a serial communication between MSP430F5529 and MSP430F233 MCUs. I am kind of new to the UART configuration of different MSP430 MCUs.
Thanks!
The UART Configuration for the MSP430F233 and MSP430F5529 are listed below.
MSP430F233 UART
//****************************************** UART Initialization ******************************************//
P3SEL = 0x30; // P3.4,5 = USCI_A0 TXD/RXD
if (CALBC1_8MHZ==0xFF) // If calibration constant erased
{
while(1); // do not load, trap CPU!!
}
BCSCTL1 = CALBC1_8MHZ; // Set DCO to 8MHz
DCOCTL = CALDCO_8MHZ;
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // Clock Source SMCLK
UCA0BR0 = 69; // 8MHz 115200
UCA0BR1 = 0; // 8MHz 115200
UCA0MCTL = UCBRS2 + UCBRS0; // Modulation UCBRSx = 5
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt
//*********************************************************************************************************//
_BIS_SR(GIE);
MSP430F5529 UART
P3SEL |= BIT3 + BIT4; // P3.3 and P3.4 -> UART Ports
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // Clock Source SMCLK
UCSCTL0 = 0x08; // set DCO to 8 MHz
UCA0BR0 = 69; // 8MHz 115200
UCA0BR1 = 0; // 8MHz 115200
UCA0MCTL = UCBRS2 + UCBRS0; // Modulation UCBRSx = 5
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt
**Attention** This is a public forum