??? 03/20/09 14:32 Read: times |
#163697 - Use a while() trap Responding to: ???'s previous message |
When the ISR routine is called, use a while(!yourbuttonispressed) just before the RETI of the routine, the code will remain there until the interrupt pin returns to a high state, then the RETI is called and resume program before ISR occurred.
Doing it this way is risky in the sense that if the interrupt pin never returns high, then it will remain stuck at that point of the program until the pin returns high. |
Topic | Author | Date |
Question of level triggered interrupt | 01/01/70 00:00 | |
Edge Triggered Interrupt | 01/01/70 00:00 | |
Only Level triggered | 01/01/70 00:00 | |
It's not a "problem". | 01/01/70 00:00 | |
the problem is not technical... | 01/01/70 00:00 | |
Let me explain again | 01/01/70 00:00 | |
Idea | 01/01/70 00:00 | |
What the teacher wants... | 01/01/70 00:00 | |
Several options... | 01/01/70 00:00 | |
thats..... | 01/01/70 00:00 | |
May be you missunderstud | 01/01/70 00:00 | |
Use a while() trap | 01/01/70 00:00 | |
Yeah | 01/01/70 00:00 | |
Use a watchdog timer | 01/01/70 00:00 | |
How about this? | 01/01/70 00:00 | |
Wow | 01/01/70 00:00 | |
which derivative has this feature ? | 01/01/70 00:00 | |
Our friend the $ | 01/01/70 00:00 | |
Oooops![]() | 01/01/70 00:00 | |
Answer to my question | 01/01/70 00:00 | |
Thought about | 01/01/70 00:00 |