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.
我正在将代码从 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 示例
根据配置的系统时钟计算所需的周期值。
此致、
维纳