Hello,
I have situation with xMega, when there is interrupt on one of input pins and then I should start procedure - almost immediately. If the procedure is called in interrupt routine, it is not OK – system hangs from time to time. Setting flag and then checking this flag in main loop is not OK – I never knows when the procedure will be started. Now, I am lost.
Is there any other method to do this? And I don’t want to import multitasking.
What if I still run procedure from interrupt routine, what should be the stack? Frame? Any other settings?
Tnx for help,
Andrej
I have situation with xMega, when there is interrupt on one of input pins and then I should start procedure - almost immediately. If the procedure is called in interrupt routine, it is not OK – system hangs from time to time. Setting flag and then checking this flag in main loop is not OK – I never knows when the procedure will be started. Now, I am lost.
Is there any other method to do this? And I don’t want to import multitasking.
What if I still run procedure from interrupt routine, what should be the stack? Frame? Any other settings?
Tnx for help,
Andrej