请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F280025C HRCALPRD 寄存器值与以毫秒为单位的校准周期之间的关系是什么? 用于 HRCAP 1类
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.
HRCALPRD 寄存器值与以毫秒为单位的校准周期之间的关系是什么? 用于 HRCAP 1类
我在示例中找到此情况
//设置校准周期(寄存器以 SYSCLK 周期为单位),建议使用1.6ms
//
HWREG (myECAP0_HR_BASE + HRCAP_O_HRCALPRD)=(uint32_t)(100e9 *(1.6/1000));
但 SYSCLK 为100e6。 不应该是这样
HWREG (myECAP0_HR_BASE + HRCAP_O_HRCALPRD)=(uint32_t)(100e6 *(1.6/1000));