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.

Cputimer0Regs问题

Other Parts Discussed in Thread: CONTROLSUITE

A:用哪颗芯片:TMS320F28027

B:硬件环境:

1. CCS5  Version: 5.2.0.00057 

2.  F28027 Piccolo Experimenter Kit:TMDSDOCK28027 

3. OS:XP SP3, CPU3.3 GHz , 3G RAM

4. compiler file path:C:\ti\HVLLC

3、请说明您处于开发设计的哪个阶段?

C:研究階段

D: 問題如下,看不懂controlsuit 範例HVLLC 裡的main.c其中一段程式(有註解的地方),

     1. Cputimer0Regs的定义和初始化在那个文件,那里定义的呢?

     2. 这个Cputimer中断会和pwm中断发生冲突吗,会有优先级的问题吗/

main{

......

// Timing sync for background loops
// Timer period definitions found in PeripheralHeaderIncludes.h
CpuTimer0Regs.PRD.all = mSec1; // A tasks
CpuTimer1Regs.PRD.all = mSec10; // B tasks
CpuTimer2Regs.PRD.all = mSec100; // C tasks

.....

    void A0(void)

    {

         if(Cputimer0Regs.TCR.bit.TIF==1)              // if  TIF==1 ,CPU Timer會減到0

           {    Cputimer0Regs.TCR.bit.TIF=1;            //  if  TIF=1 ,清除中斷旗標, 將putimer0Regs.TCR.bit.TIF 的bit設為0

                 (*A_Task_Ptr)();

                 VTimer0[0]++;

           }

       Alpha_State_Ptr = &B0;

}