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.

关于28346的中断嵌套

Other Parts Discussed in Thread: CONTROLSUITE

请问一下,在28346芯片中,是不是默认是不允许中断嵌套的。如果要实现中断嵌套要如何实现呢?

  • 是的,所有C2000芯片都支持中断嵌套,但默认是不使能的。

    可以参考TMS320C2834x Delfino System Control and Interrupts Reference Guide (www.ti.com/lit/SPRUFN1B)第4章Peripheral Interrupt Expansion了解详情,也可以参考例程sw_prioritized_interrupts: 安装controlsuite后在C:\TI\controlSUITE\device_support\c2834x\v112\DSP2834x_examples_ccsv4\sw_prioritized_interrupts路径下。

  • 楼上都说完了,我在灌些水。

    楼主可以看10#谈到的SPRUFN1B中的Typical PIE/CPU Interrupt Response - INTx.y这幅图,只要符合这幅图的流程中断就会发生,中断就会嵌套。

  • 看了一下例程。这个是软件修改中断优先级,不是我说的嵌套吧。我的意思是,在一个中断没有结束的情况下,进行另外一个中断呢。

  • feng liu,

    您好!

    如您所说的情况,当低优先级的中断ISR正在执行的时候,高优先级的中断到来,如果在低优先级ISR中置位INTM(可能需要设置相应的IER位),那么会发生中断抢占,低优先级的中断被打断,执行高优先级的ISR。

    这个还是与中断的优先级有关系。

    可以参考10#的帖子里面的例程,里面很详细的。

    希望对您有所帮助。