我需要降低ADC的优先级,参考F28035例程Example_2803xAdcSoc和文档TMS320F2803x Piccolo System Control and Interrupts
我现将例程原代码:PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
改为: PieCtrlRegs.PIEIER10.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
但运行后不能进入ADC中断。谢谢!
mangui zhang:
每个中断都有自己的的PIEACK和INTx 这个要根据你的需要配置好
你改了PIEACK GROUPx 不知道你改了对应中断的中断服务函数的入口地址了没?
我需要降低ADC的优先级,参考F28035例程Example_2803xAdcSoc和文档TMS320F2803x Piccolo System Control and Interrupts
我现将例程原代码:PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
改为: PieCtrlRegs.PIEIER10.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
但运行后不能进入ADC中断。谢谢!
Jian Zhang8:
增加,原代码:IER |= M_INT1;
改为:IER |= M_INT10;
此时运行进入rsvd_ISR中断。
我需要降低ADC的优先级,参考F28035例程Example_2803xAdcSoc和文档TMS320F2803x Piccolo System Control and Interrupts
我现将例程原代码:PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
改为: PieCtrlRegs.PIEIER10.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
但运行后不能进入ADC中断。谢谢!
Jian Zhang8:
回复 mangui zhang:
谢谢,问题已经解决了。
我需要降低ADC的优先级,参考F28035例程Example_2803xAdcSoc和文档TMS320F2803x Piccolo System Control and Interrupts
我现将例程原代码:PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
改为: PieCtrlRegs.PIEIER10.bit.INTx1 = 1;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
但运行后不能进入ADC中断。谢谢!
Jian Zhang8:
回复 Jian Zhang8:
是DSP2803x_PieVect.h文件,刚才写错了。