Page 2 of 2

Re: Interrupt priority/premption.

Posted: Wed Oct 21, 2015 6:14 pm
by Giovanni
If you trigger the ADC with a GPT then you can stop and restart the triggering, the ADC would wait.

It would not suspend the current conversion however, you may have to check the ADRDY bit.

Giovanni

Re: Interrupt priority/premption.

Posted: Fri Oct 23, 2015 1:49 pm
by rew
OK. Disabling the NVIC works. WIth the proper NVIC_DisableIRQ (9); call. When it didn't work, I must have done something stupid like run old code without the disable in there, or having "#if 0" around the active code.... :-(

The "trigger from GPT" is on my todo list. Starting that now. :-)

This will reduce the number of ADC interrupts enormously. But now with the high number of those interrupts I can check for "no corruption". Debugging this when there is a problem once every 10000 transactions is way more difficult. On the other hand, I have the impression that my system can handle the higher number of interrupts just fine. Maybe I'll keep it like this.