This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

设置timer初始化还会影响I/O口的输出吗?



void TIMER_Init(void) {     TA1CTL |= TASSEL1 + MC_1+TACLR+TAIE;                       //SMCLK作为时钟源,连续计数模式 计数器清零 开溢出中断     TA1CCTL1 |= CM_3 + CCIS_0 + SCS + CAP + CCIE;             //上升沿与下降沿都捕获, CCI1A    同步 输入 P2.1  使能中断     TA1CCR0=5520;     TA1CCTL2|=OUTMOD_3;                                 //TA1CCR2  连续   p2.4  复位置位     TA1CCR2=5510;                                      ///模式3 复位置位

}

影响P1口输出,该怎样改