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.

G2553(LaunchPad)的定时器有输入捕获模式,能捕获单片机的内部信号吗?



下边是TI官网里的例程,在void Set_DCO(unsigned int Delta)函数中

 BCSCTL1 |= DIVA_3;                                   // ACLK = LFXT1CLK/8
 TACCTL0 = CM_1 + CCIS_1 + CAP;         // CAP, ACLK ,是CCI0B通道
 TACTL = TASSEL_2 + MC_2 + TACLR;    // SMCLK, cont-mode, clear

运行结果:

1. 捕获了内部32768晶振的的ACLK,实现对DCO进行校准,同时把校准信息写进Flash;

2. 测试P1.4的确实可以输出16MHz、12MHz、8MHZ、1MHz

疑问:

1. 为什么CCI0B通道捕获了内部ACLK?

2.如果捕获外部信号,要配置对应IO口的P1DIR和P1SEL、P1SEL2。捕获内部信号该怎么配置?

2. 芯片手册里只介绍TA0 Timer的CCI0A通道,没有涉及CCI0B通道




我为怎为什么么