请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/655464/delay-using-timer
主题中讨论的其他器件:TMS320C5505请告诉我如何使用 TMS320C5505的计时器生成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.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/655464/delay-using-timer
主题中讨论的其他器件:TMS320C5505请告诉我如何使用 TMS320C5505的计时器生成1秒的延迟。
计算是什么。
thanks..it提供了很好的解释。
但请参阅 delay..nowhere 上的"我想生成20ms "、其中提到了使用计时器的延迟函数。
我需要在该文件中执行什么操作...我是否更改这些值
hwConfig.autoLoad = GPT_AUTO_ENABLE;
hwconfig.ctrlTim = gp_t_timer_enable;
hwconfig.preScaleDiv = gp_t_pre_sc_DIV_7;/**<预分频输入时钟256 *
hwconfig.prdLow = 0xFFFF;
hwconfig.prdHigh = 0x0000;
或者我在代码中执行什么更改来获得20ms 的延迟