I need to process an input signal at 40KHz rate. I want to generate an interrupt at 40KHz rate and do the processing of the input in the interrupt routine.
Is it possible to use interrupts with very low overhead? Is it for instance possible to only store those registers that actually are used in the interrupt routine?
Can I write the interrupt routine in assembly?
Is there a software manual describing these possibilities?