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.

[参考译文] TMS320F28374S:SYS/BIOS 嵌套中断

Guru**** 2540460 points
Other Parts Discussed in Thread: SYSBIOS

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1396010/tms320f28374s-sys-bios-nesting-interrupt

器件型号:TMS320F28374S
Thread 中讨论的其他器件:SYSBIOS

工具与软件:

我们使用 SYS/bois_6_41_04_54

我们有六个中断。

 

BIOS.swiEnabled = false;
BIOS.logsEnabled = false;
var hwi0Params =新的 Hwi。 Params();
hwi0Params.instance.name ="ti_sysbios_family_c28_hwi1";
hwi0Params.maskSetting = xdc.module ("ti.sysbios.interfaces.IHwi").MaskingOption_SELF;
hwi0Params.disableMask = 0;
program.global.ti_sysbios_family_c28_hwi1 = hwi.create (34、"&ADC_ISR"、hwi0Params);
var hwi1Params =新的 Hwi。 Params();
hwi1Params.instance.name ="ti_sysbios_family_c28_hwi2";
program.global.ti_sysbios_family_c28_hwii = hwi.create (56、"&ECAP_ISR"、hwi1Params);
var semaphore0Params =新信号量。 Params();
semaphore0Params.instance.name ="semaphore0";
Program.global.semaphore0 = semaphore.create (null、semaphore0Params);
var hwi2Params =新的 Hwi。 Params();
hwi2Params.instance.name ="ti_sysbios_family_c28_hwi3";
program.global.ti_sysbios_family_c28_hwi3 = hwi.create (96、"&sciarx_isr"、hwi2Params);
var hwi3Params =新的 Hwi。 Params();
hwi3Params.instance.name ="ti_sysbios_family_c28_hwi5";
hwi3Params.maskSetting = xdc.module ("ti.sysbios.interfaces.IHwi").MaskingOption_SELF;
program.global.ti_sysbios_family_c28_hwi5 = hwi.create (98、"&scibrx_isr"、hwi3Params);
var hwi4Params =新的 Hwi。 Params();
hwi4Params.instance.name ="ti_sysbios_family_c28_hwi6";
program.global.ti_sysbios_family_c28_hwi6 = hwi.create (99、"&scibtx_isr"、hwi4Params);
var hwi5Params =新的 Hwi。 Params();
hwi5Params.instance.name ="ti_sysbios_family_c28_hwi4";
program.global.ti_sysbios_family_c28_hwi4 = hwi.create (33、"&ADC_ISR_FAST"、hwi5Params);

我们希望 ADC_ISR_FAST () 优先于其他中断。

我们要在中选择"启用中断嵌套"、但不能选择它。  

我们将屏蔽选项设置为 maskingOPTION self。

无论如何, adc_isr_fast () dosenot 优先于其他中断工作。那么,我应该怎么做?