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.

MSP430G2553,设置TIMER0的时钟源为外部时钟,不成功,请指教,谢谢!

Other Parts Discussed in Thread: MSP430G2553

MSP430G2553

代码:Timer0_A0  int(void)

 {

TACTL = MC_0 | TACLR;

 TA0CCR0 = 73;   

 TACCTL1 = OUTMOD_6;

 TACCR1 = 18;

 TA0CCTL2 = OUTMOD_6;    

TA0CTL = TASSEL_3;    使用外部时钟源INCLK,在P1。0接入8MHZ时钟信号。

 TA0CCTL0 |= CCIE;   

 TA0CTL |= MC_1;      

}