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.

[参考译文] TMS320F280025C:HRCALPRD 与 HRCAP 1类的校准周期之间的关系是什么?

Guru**** 2455560 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1284686/tms320f280025c-what-is-the-relation-of-hrcalprd-with-calibration-period-for-hrcap-type-1

器件型号:TMS320F280025C

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));

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Aditya:

    您是否在指代 driverlib 函数? 如果是、函数参数如下所示、在其中传递 sysclkHz:此函数位于 hrcap.h 中。

    此致!

    马瑞安