AnsweredAssumed Answered

Question about Loops in Interrupt Handler on ADSP-213xx

Question asked by FabianD on Jul 30, 2009
Latest reply on Jul 30, 2009 by DivyaS

Hello all,

 

I have some concern about a note found in the help of VDSP5.0.

 

In "Interrupt Dispatchers", about interruptcb() function: "Note: Due to Hardware restrictions on 213xx processors, the loop counter stack can not be saved and restored by the dispatcher"

 

My understanding of this restriction is that it is not safe to use loops in an interrupt handler because you never know if you will not screw up the loop counter of a lower priority code.

 

But on the other hand, in the Frameworks provided with VisualAudio (be it Basic or AVR), I can see that the whole rendering/post-processing (which use quite a lot of loops) is completely done in a Interrupt Handler...

 

My question is: Is it safe to proceed like this?

 

Sorry, if I missed something here.. I'm new to the SHARC DSPs...

 

 

Thanks in advance for your support,

Regards,

Fabian

-------

PS: Using ADSP21375 EZ-Kit Lite 1.0 and VisualDSP++5.0 Update 5 (5.0.5.0),

Outcomes