msp4330g2553 io中断
#include"msp430g2452.h"voidmain(void){//StopwatchdogtimertopreventtimeoutresetWDTCTL=WDTPW+WDTHOLD;P1DIR&=~BIT3;P1SEL&=~BIT3;//中断功能P1IES|=BIT3;P1IE|=BIT3;P1IFG=0;P1DIR|=BIT6;P1OUT|=BIT6;_EINT();while(1);}#pragmavector=PORT1_VECTOR_
下载地址
用户评论