TI中文支持网
TI专业的中文技术问题搜集分享网站

280x系列外部中断计数器怎么用?

《TMS320x280x, 2801x, 2804x System Control and Interrupts Reference Guide 》在描述外部中断时提到,“The masked interrupts also contain a 16-bit free running up counter that is reset to zero when a valid interrupt edge is detected. This counter can be used to accurately time stamp the interrupt.”原文的意思是不是可以用这个计数器来计算两次中断之间的时间间隔?但中断发生时,这个计数器又会被清零,该怎么用啊?

manhua zheng:

找了个中文版的参考指南,其中的表述是“屏蔽的中断还包含16 位自由运行的递增计数器,当检测到有效的中断沿时,该计数器复位为0。此计数器可用于准确设置中断的时间戳。”对于“中断的时间戳”的意思也不是很理解,是不是说这个计数器不是给用户用的,只是为了确保中断能及时响应?

《TMS320x280x, 2801x, 2804x System Control and Interrupts Reference Guide 》在描述外部中断时提到,“The masked interrupts also contain a 16-bit free running up counter that is reset to zero when a valid interrupt edge is detected. This counter can be used to accurately time stamp the interrupt.”原文的意思是不是可以用这个计数器来计算两次中断之间的时间间隔?但中断发生时,这个计数器又会被清零,该怎么用啊?

manhua zheng:

回复 Hank Zhao:

明白了,谢谢!

赞(0)
未经允许不得转载:TI中文支持网 » 280x系列外部中断计数器怎么用?
分享到: 更多 (0)