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.

[参考译文] CCS/C2000-F28004X-POWER-EST-CALC:C280049M CLA 访问定时器0

Guru**** 2534260 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/787921/ccs-c2000-f28004x-power-est-calc-c280049m-cla-access-to-timer-0

器件型号:C2000-F28004X-POWER-EST-CALC

工具/软件:Code Composer Studio

我正在使用 C280049M,并在 CPU 上运行一些程序,并运行 CLA 任务1。

我有一个定时器(Timer0)配置为自由运行@ 10ns。

我想通过访问计时器0的 TIM 来为 CLA 任务运行时间设置时间戳。 但我无法从寄存器访问中获取任何值。  

有人能帮我做这个 吗?  CLA 能否访问 Timer0??  

__attribute__((中断) void Cla1Task1 (void )

 

START_TIME =(*(volatile UINT32_t *)(0x00000C00U));

/*主控制循环在此出现*/

end_time =(*(volatile uint32_t *)(0x00000C00U));

运行时= (start_time-end_time)*10;