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.

CCS/MSP430F5529: MSP430F5529 UART COnfiguration Issues

Part Number: MSP430F5529
Other Parts Discussed in Thread: MSP430F233

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

  • Hi Gabriel,
    from your post I understand that you don't know what next steps to take to implement the UART communication between the two MSP devices.
    In your code above I only the the receive interrupt enabled and no handling of the transmission buffer.

    I'd suggest for you to take a look at the different code examples we provide for both devices.
    Just go to CCS->TI Resource Explorer->MSP430Ware->Devices->"Your device family"->Peripheral Examples->Register Level -> search for the usci_uart examples.

    Those will help you to find the right indications.

    Best regards,
    Britta
  • Hi,

    as I didn't hear back from you I suppose you were able to move forward with your application.
    Could you please go ahead and verify the answer to then close this thread? Otherwise let me know if you need further help.

    Thanks and best regards,
    Britta

**Attention** This is a public forum