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.
您好、先生、
我不确定 当我设置"TA1CTL = tassel_ACLK | MC__UP;" 时、Tair 开始计数的时间、以及 当我设置"TA1CTL = tassel_ACLK | MC__STOP"时、TA1R 停止计数的时间。
例如
TA1CTL = tassel__ACLK | MC_STOP; temp =TA1R; TA1CTL = tassel__ACLK | MC_UP;
当我读取 TA1R 时、TimerA1是否被停止、TA1R 是否被停止计数?
当 我将 TimerA 设置为启动时、TA1R 是否立即开始计数?
在上述两种情况下、等待多长时间?
尊敬的 Dennis:
我仔细看、发现代码"TA1CTL = tassel_ACLK | MC__STOP;" 是正确的。它可能会停止 TimerA1。
"TA1CTL |= tassel_ACLK | MC_STOP;" MC_STOP 无效!!!
Jent