We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I'm using a lpc2378 with the Realview compiler. In my application I want a interrupt to be triggered by software. This interrupt is being handled the same as all other irq's but then with the lowest priority.
Is there some free/ user definable irq vector which can be used? Or should I use SWI vector? (haven't got any experience with that)
any suggestions?
Kind regards, Sander Wiggers
The interrupt that I mentioned is being triggered from within the adc isr which has the highest priority. This software interrupt will have the lowest priority and needs to be handled after all other interrupts. when I simply call the function from the main loop, the timing will be incorrect. so that's why I want to use a interrupt.
The idea of using an exint could work fine. thanks.
sander
I do not see the reason why an exint or other hardware interrupt should be used here. If I want to trigger an interrupt by software, I would always use a software interrupt.
Christian; I agree with you about the SWI but the Op stated that he was aware of the SWI but was uneasy about implementation. So we just gave him an alternate solution. Good or bad, it's up to the Op to decide his implementation. Bradford
I am relieved to hear that there is no technical reason not to use the SWI.