ampage
Tube Amps / Music Electronics
For current discussions, please visit Music Electronics Forum.

ampage archive

Vintage threads from the first ten years

Search for:  Mode:  

 

previous: Kursad [QUOTE]But I have a problem with th... -- 7/18/2003 7:45 PM view thread

Re: not DSP chip but machine code is...

7/19/2003 5:38 PM
stephen conner
Re: not DSP chip but machine code is...
quote:
"To me it sounds like it can work if one interrupt cannot 'interrupt' another interrupt."
 
 
Sort of... The process that feeds data to the A/D and D/A converters has to be able to interrupt any other process, and no other process should be able to interrupt it, ie it has to have the highest priority. Otherwise the A/D and D/A buffers might underrun, which isn't cool :(  
 
Unfortunately, the process doing the interrupting is responsible for the context switching overhead. (The other process can't help unless it can see the future and tell when it's going to be interrupted.)  
 
I guess that's true even if both processes are in C. The context switching code is generated automatically by the compiler, but it's still there :(