摘要: LaunchPad按键消抖测试,推荐定时方式 1 #include <msp430g2553.h> 2 #define TYPE 0 //0 定时 1 延时 3 void main(void) 4 { 5 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer 6 BCSCTL1 = CALBC1_1MHZ; // Set range 7 DCOCTL = CALDCO_1MHZ; 8 9 BCSCTL2 &= ~(DIVS_3); ... 阅读全文
posted @ 2012-08-21 10:39 sky1991 阅读(662) 评论(0) 推荐(0) 编辑