voidxunji();voidkong_zhi(uchara0,uchara1,uchara2,uchara3);unsignedintbuf=0;voiddelay(unsignedinti)//延时子函数{unsignedintj,k;for(j=0;j<i;j++)for(k=0;k<10;k++);}intmain(void){WDTCTL=WDTPW+WDTHOLD;//关看门狗TA0CCTL1=OUTMOD_7;//PWM复位/置位模式TA1CCTL1=OUTMOD_7;//计数上限值,计数到该值时计数器清零,输出置位TA0CCR0=0x0500;TA0CCR1=0x0000;TA1CCR0=0x0500;TA1CCR1=0x0000;//计数到该值时输出复位
1