如题,请问定时器A的计数器TAR在MSP430F5529里要怎么操作?
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.
首先感谢你的回答,但是在MSP430F5529,直接读取TAR会报错:TAR is undefined.
可以直接读取其计数值,如果读取TIMER_A,其读取TA1R并非TAR。具体参见msp430f5529.h 文件,里面有定义对应定时器的TAR.
uint16_t i;
i = TA1R;