I'm working in the Keil uVision3 IDE with the Keil CARM compiler. I want to create a delayed software interrupt (with the lowest priority) after a given number of adc samples. In my test application I was also toggling some IO pins on port 2. While debugging it seemed that there was constantly an interrupt pending on the XTI (P2.8 --- P2.11). Am I forgetting something or can I avoid this? here is my code.
Can you tell me what the effect of __swi(8) is?? aint this function being handled as any other function?
I want my software interrupt to be handled after all other pending interrupts with higher priority (like ADC, uart and timers) by setting a flag. But my code it doesn't seem to work and I can't find any examples of handling swi from the XTI. Regards, Sander