當(dāng)前位置:首頁 > 單片機 > 單片機
[導(dǎo)讀]1 #include "msp430g2553.h"23 void sendChar(unsigned char c)4 {5 while(!(IFG2&UCA0TXIFG));6 UCA0TXBUF=c;7 }89 void sendStr(unsigned char *s)10 {11 while(*s!='\\0')12 {13 sendChar(

1 #include "msp430g2553.h"

2

3 void sendChar(unsigned char c)

4 {

5 while(!(IFG2&UCA0TXIFG));

6 UCA0TXBUF=c;

7 }

8

9 void sendStr(unsigned char *s)

10 {

11 while(*s!='