在很多程序中都会调用延时程序DELAY_US(A),在文件DSP281x_Examples.h中有如下宏定义:
#define DELAY_US(A) DSP28x_usDelay(((((long double) A * 1000.0L) / (long double)CPU_RATE) - 9.0L) / 5.0L)
DELAY_US(A)必须要在RAM里运行,因此必须使用代码
#ifdef FLASH
// Copy time critical code and Flash setup code to RAM
// The RamfuncsLoadStart, RamfuncsLoadEnd, and RamfuncsRunStart
// symbols are created by the linker. Refer to the linker files.
MemCopy(&RamfuncsLoadStart,

本文介绍了在DSP281x系列处理器上使用的延时程序DELAY_US的具体实现方式及其注意事项。该宏定义确保了延时操作能够精确地按预期执行,并强调了在RAM中运行此程序的重要性。
最低0.47元/天 解锁文章
8989

被折叠的 条评论
为什么被折叠?



