I have a question to ask regarding about external interrupt program. If i’m using INT1(External Interrupt 1 set to Falling Edge) of DS89C450 and my program of the external interrupt is very long, will it function properly? or will there be any problem with it?
I’m using Keil embedded C.
I have a question to ask regarding about external interrupt program. If i’m using
Share
Another way to do this without an RTOS is to use event flags and state machines. Your program can be diagrammed into discrete states that transition when a particular event is called. For example, in this diagram I found using google:
A button click is an event; something that can be triggered from your INT1 interrupt for example. You would then put the following loop in the foreground:
And your ISR would then be very short: