Post Go back to editing

Interrupt Self-Nesting in CCES

According the page 4-35 of SHARC® Processor Programming Reference (Includes ADSP-2136x, ADSP-2137x, and ADSP-214xx SHARC Processors Revision 2.2 March 2011) ADSP-21489 has Interrupt Self-Nesting.

Can I use it in C/C++ CCES?

For https://ez.analog.com/thread/19118 solution I can change super fast interrupt dispacther.

Example

I have the timecore interrupt with using the alternate (secondary) register set and interrupt nesting is disabled.

The timecore interrupt raise the software interrupt with using the main register set and interrupt nesting is enabled.

So I have OS which is free of charge.

Parents
  • Hi,

    The programming reference describes a way of clearing the IMASKP bit, so that the same interrupt can again latch without being automatically cleared by the hardware.  The JUMP (CI) instruction clears the IMASKP bit for that interrupt, and the subsequent code runs at procedure level (not at an interrupt level).  We do not use the JUMP (CI) instruction as part of the CCES interrupt support.  If you use adi_int to install your interrupt handler then you cannot use JUMP (CI) as part of that handler, as it will impact the return sequence of the interrupt dispatcher and the correct operation of the CCES interrupt support.

    I’m unsure what you mean by “So I have OS which is free of charge”, is this part of your question?

    Thanks

    JamesH

Reply
  • Hi,

    The programming reference describes a way of clearing the IMASKP bit, so that the same interrupt can again latch without being automatically cleared by the hardware.  The JUMP (CI) instruction clears the IMASKP bit for that interrupt, and the subsequent code runs at procedure level (not at an interrupt level).  We do not use the JUMP (CI) instruction as part of the CCES interrupt support.  If you use adi_int to install your interrupt handler then you cannot use JUMP (CI) as part of that handler, as it will impact the return sequence of the interrupt dispatcher and the correct operation of the CCES interrupt support.

    I’m unsure what you mean by “So I have OS which is free of charge”, is this part of your question?

    Thanks

    JamesH

Children
No Data