i had attempted to do serial communication in msp430f5310.I coudnt see the output for it since the program shows no error.Kindly,give solution for this.
C:
#program
#include <stdio.h>
#include<msp430f5310>
/*
* main.c
*/
int main ( void )
{
unsigned int i;
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
P4SEL = BIT4;
P4SEL = BIT5;
UCA1CTL1 = UCSWRST;
UCA1CTL1 = UCSSEL_1;
UCA1BR0=8;
UCA1BR1=0;
UCA1MCTL = UCBRS_0 | UCBRF_13 | UCOS16;
UCA1CTL1 &= ~UCSWRST;
P4DIR = 0XFF;
while
{
UCA1TXBUF = 'a' ;
P4OUT ^= 0XFF;
for(i=0;i<5000;i++)
{
}
}
}
Last edited by a moderator: