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.

[参考译文] LAUNCHXL-F280039C:在 TMS320F280039C MCU DriverLib 中查找 CPU 计时器定义

Guru**** 1958595 points
Other Parts Discussed in Thread: CONTROLSUITE, TMS320F280039C, TMS320F28035, C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1324883/launchxl-f280039c-locating-cpu-timer-definitions-in-tms320f280039c-mcu-driverlib

器件型号:LAUNCHXL-F280039C
主题中讨论的其他器件:TMS320F280039CTMS320F28035、controlSUITE、 C2000WARE

我正在将代码从 TMS320F28035 MCU 迁移到较新的 TMS320F280039C MCU、这两者均来自德州仪器。 在原始 MCU 中、"PeripheralHeaderInsetures.h"文件中显示了基于60MHz 系统时钟的 CPU 计时器定义(例如、"msec0_5"、"mSec1"等-见下图)。 但是、在较新的 MCU 的相应文件"f28003x_device.h"中、缺少这些定义。 我也已经勾选了"f28003x_cputimer.h"、但运气不好。 有人能指导我如何在 TMS320F280039C MCU 的 DriverLib 中定义这些 CPU 计时器定义、或者我应该如何为新 MCU 定义这些计时器间隔?

"PeripheralHeaderIncludes.h"位于 controlSUITE 的目录"C:\ti\controlSUITE\development_kits\~SupportFiles\F2803x_headers"中
 


"f28003x_device.h"、位于 C2000Ware 中的目录"C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f28003x\headers\include"


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

    您好!

    这些常数会因所配置的系统频率而异。 我建议您尝试 C2000ware\driverlib\f28003x\examples\timer_ex1_cputimers.c 中的 driverlib 示例

    根据配置的系统时钟计算所需的周期值。

    此致、

    维纳

x 出现错误。请重试或与管理员联系。