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.
DSP2833x_CpuTimer.c文件中ConfigCpuTimer()函数中Freq 是代表频率吗,Period是周期吗,如果是,他们乘积不是该始终未1吗?
// Initialize timer period:
Timer->CPUFreqInMHz = Freq;
Timer->PeriodInUSec = Period;
temp = (long) (Freq * Period);
Timer->RegsAddr->PRD.all = temp; 这个对PRD赋值,为什么不直接设置级数次数,而用Freq * Period来设置?
这个频率是定时器工作的时钟频率,这周期是你需要定时的时间周期。假如我Cpu定时器的时钟频率是150M,我想Cpu定时器产生一个1ms的定时时间,那么这两个参数分别为Freq:150;Period:1000;因为在这文件里面有这么一句: the period in "uSeconds",这个参数的单位是微秒,故1ms则写1000即可