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.

controlSUITE模板项目(TemplateProjects)有一个“BUG”

Other Parts Discussed in Thread: CONTROLSUITE

controlSUITE 软件有个模板项目,用户可以建立自已的项目,该项目提供数字电源库的链接环境,使用方便。

我在用模板 DPLibv3Template-F2802x 时发现问题:

ProjectName-Main.C文件298行:

// Configure PWM1  for 200Khz (Period Count= 60Mhz/200Khz = 300)

PWM_1ch_CNF(1, 300,1,0); 

ProjectName-Main.C文件323行:

// Set up C28x Interrupt

//Also Set the appropriate # define's in the {ProjectName}-Settings.h 

//to enable interrupt management in the ISR

EALLOW;

    PieVectTable.EPWM2_INT = &DPL_ISR;       // Map Interrupt

Configure PWM1 但是中断向量定位在 EPWM2,程序运行不正确.

将323行改为PieVectTable.EPWM1_INT = &DPL_ISR; 运行正常

各位大虾指教。