为什么设置TimerB的时钟为外部提供(TBCLK)在TimerA的中断中读取TBR的值为0
P4.7(TBCLK)从示波器上能看到方波信号
TBCTL = TBSSEL_0 + TBCLR + MC_1 + ID_0; //配置TimerB 为外部时钟输入 + TBR清零 + 增模式 + 部分品
于是我在TimerA的1ms中断中读取TBR的值
Cnt = TBR;
于是结果为Cnt 是 0
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.
为什么设置TimerB的时钟为外部提供(TBCLK)在TimerA的中断中读取TBR的值为0
P4.7(TBCLK)从示波器上能看到方波信号
TBCTL = TBSSEL_0 + TBCLR + MC_1 + ID_0; //配置TimerB 为外部时钟输入 + TBR清零 + 增模式 + 部分品
于是我在TimerA的1ms中断中读取TBR的值
Cnt = TBR;
于是结果为Cnt 是 0