??? 03/25/09 21:24 Read: times |
#163860 - Answer to my question Responding to: ???'s previous message |
its quite easy, easier than you guys think.
When you an interrupt of level trigger and you cant use for some reason edge trigger interrupts, and dont want the microprocessor attend the same interrupt more than once you must do the next code: ORG 0 JMP MAIN ORG 03h JMP pint0 ORG 13h JMP pint1 MAIN: MOV IE,#10000101b; this puts on 1 both external interrupts on ports pint0: JNB P3.2,$; polling question, is it 0 yet? doesnt matter how long it will go directly to the code ---------- your code ---------- your code ---------- your code ---------- your code RETI pint1: JNB P3.3,$; polling question, is it 0 yet? doesnt matter how long it will go directly to the code ---------- your code ---------- your code ---------- your code ---------- your code RETI Its a waste of time of course but it will be stuck in JNB until it goes HIGH again, and no mistakes will occur. He said i was right and i have my extra-homework points. Thank you for all the ideas you guys gave me. Luis Felipe Gomez |
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 |