摘要: 1 #include "msp430g2553.h" 2 #include "stdio.h" 3 4 5 unsigned char RxFlag; 6 unsigned char Byte_H; 7 unsigned char Byte_L; 8 unsigned int Dist; 9 unsigned int DistData[8]; 10 unsigned int DistAverage; 11 12 13 int putchar(int ch) 14 { 15 while(!(IFG2&UCA0TXIFG)); 16 UCA0TXBU 阅读全文
posted @ 2012-08-24 10:19 sky1991 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1 #include "msp430g2553.h" 2 #include "stdio.h" 3 4 5 unsigned char RxBuf[256]="haha"; 6 unsigned char RxFlag; 7 unsigned char RxPoint; 8 9 10 int putchar(int ch) 11 { 12 while(!(IFG2&UCA0TXIFG)); 13 UCA0TXBUF=ch; 14 return ch; 15 } 16 17 18 void sendChar(unsigned c 阅读全文
posted @ 2012-08-24 09:25 sky1991 阅读(555) 评论(0) 推荐(0) 编辑