- include "msp430g2553.h"
char data1[]={"UART DEMO\r\n"}; int i; void main(void) { BCSCTL1 = CALBC1_1MHZ; WDTCTL = WDTPW + WDTHOLD; DCOCTL = CALDCO_1MHZ; P1SEL = 0x06 ; P1SEL2 =0x06 ; UCA0CTL1|= UCSSEL_2; UCA0BR0 = 104; UCA0BR1 = 0; UCA0CTL1 &= ~UCSWRST; while(1) { for(i=0;i<=14;i++) { while (!(IFG2 & UCA0TXIFG)); UCA0TXBUF=data1[i]; _delay_cycles(50000); } } }
Start a discussion with Angad singh
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. Start a new discussion to connect and collaborate with Angad singh. What you say here will be public for others to see.