I am writing a program that uses a lot of interrupts, but I need to be able to sequence then depending upon what the processor is currently doing. I've looked on the forum and it s not clear to me how to do this. In an 8 bit controller like the 89LPC922, there is an IRQ register and you simply mask out the IRQ's you want to ignore, and then re-enable them when required.
For control applications that are entiely IRQ driven, can someone point me in the right direction? An RTOS is not an option in my case.
Would make a great API, or extension to the existing IRQ API BTW
I am writing a program that uses a lot of interrupts, but I need to be able to sequence then depending upon what the processor is currently doing. I've looked on the forum and it s not clear to me how to do this. In an 8 bit controller like the 89LPC922, there is an IRQ register and you simply mask out the IRQ's you want to ignore, and then re-enable them when required.
For control applications that are entiely IRQ driven, can someone point me in the right direction? An RTOS is not an option in my case.
Would make a great API, or extension to the existing IRQ API BTW