Post Go back to editing

Interrupt Self-Nesting in CCES

According the page 4-35 of SHARCRegistered 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 http://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
  • JamesH wrote:

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

    No, it's not the part of my question.

    But I try to explain

    I use the software interrupts like tasks. For example.

    The background task (from main) do the file operations with SD-card and has the lowest priorites.

    The software task 3 do communication with other blocks in my control system which demand the step in the range 10-100ms.

    The software task 1 do the timer service with the step in the range 1second.

    The software task 0 do work with the hard step in the range tens us (for example 20 or 40) and do the drive and semiconductor control part of the programm.

    Also my program has the IO interrupt from SPI, SPORT0-7, EMI, general timers and timecore.

Reply
  • JamesH wrote:

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

    No, it's not the part of my question.

    But I try to explain

    I use the software interrupts like tasks. For example.

    The background task (from main) do the file operations with SD-card and has the lowest priorites.

    The software task 3 do communication with other blocks in my control system which demand the step in the range 10-100ms.

    The software task 1 do the timer service with the step in the range 1second.

    The software task 0 do work with the hard step in the range tens us (for example 20 or 40) and do the drive and semiconductor control part of the programm.

    Also my program has the IO interrupt from SPI, SPORT0-7, EMI, general timers and timecore.

Children
No Data