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.

UART of MSP430F5529



Is data send through UART can be visible in CCS?

Am doing a biomedical project. I want to see the data send through UART of my MSP430. Is it possible to see in CCS window itself???

The value which i have to see is the digitised  version of EEG signal.

  • The backchannel UART on the F5529 LaunchPad can do this.

    Are you using the LaunchPad? Which UART?
  • my code is
    #include <msp430.h>
    #include<stdio.h>
    volatile unsigned int i, Adc_Data=0;
    int main(void)
    {


    WDTCTL = WDTPW+WDTHOLD; // Stop watchdog timer
    P6SEL |= 0x01; // Enable A/D channel A0
    REFCTL0 &= ~REFMSTR; // Reset REFMSTR to hand over control to
    // ADC12_A ref control registers
    ADC12CTL0 = ADC12ON+ADC12SHT12+ADC12REFON+ADC12REF2_5V;
    // Turn on ADC12, Sampling time
    // On Reference Generator and set to
    // 2.5V
    ADC12CTL1 = ADC12SHP; // Use sampling timer
    ADC12MCTL0 = ADC12SREF_1; // Vr+=Vref+ and Vr-=AVss

    for ( i=0; i<0x30; i++); // Delay for reference start-up
    ADC12CTL0 |= ADC12ENC; // Enable conversions

    // setup Uart

    P3SEL |= BIT3+BIT4; // P3.3,4 = USCI_A0 TXD/RXD
    UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
    UCA0CTL1 |= UCSSEL_2; // SMCLK
    UCA0BR0 = 9; // 1MHz 115200 (see User's Guide)
    UCA0BR1 = 0; // 1MHz 115200
    UCA0MCTL |= UCBRS_1 + UCBRF_0; // Modulation UCBRSx=1, UCBRFx=0
    UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
    //UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt

    __bis_SR_register(LPM0_bits + GIE); // Enter LPM0, interrupts enabled
    __no_operation(); // For debugger
    Adc_Data=0;
    while (1)
    {
    ADC12CTL0 |= ADC12SC; // Start conversion
    while (!(ADC12IFG & BIT0));
    __no_operation(); // SET BREAKPOINT HERE

    Adc_Data = ADC12MEM0;
    while (!(UCA0IFG&UCTXIFG));

    UCA0TXBUF = (Adc_Data&0xFF); // sending LSB 1st
    while (!(UCA0IFG&UCTXIFG));

    UCA0TXBUF = ((Adc_Data&0xFF00)>>8); // sending msb
    }
    }
    am using launch pad
    Here there is a ADC a i want to see digital value in CCS through UART
  • Section 2.2.6 of the LaunchPad User's Guide says:

    The backchannel UART allows communication with the USB host that is not part of the target application's main functionality. This is very useful during development. For example, if, while developing a USB interface, you want to send debug information to the host without using the USB interfaces under development to do so.

    Figure 14 shows the pathway of the backchannel UART. The backchannel UART (USCI_A1) is independent of the UART on the 40-pin BoosterPack connector (USCI_A0).
  • thank you solved my problem

**Attention** This is a public forum