??? 04/27/10 08:05 Read: times |
#175429 - external interrupt -strange behaviour |
I have an atmel 89s52 in which I have configured the external interrupt 0 for edge trigger with the following
IT0 = 1; //set TCON.0 for edge trigger EX0 = 1; //enable external interrupt 0 EA = 1; //enable global interrupts I then provided a pulse (i.e low - high - low ) with a duration of 200ms on pin 3.2 with the expectation of generating a single interrupt to the program. But the program is interrupted continuously as though the interrupt was configured for level triggering. Is there any other setting to be done to set the interrupt for edge triggering?Are there any hardware requirements? Any info would help. Thanks in advance, Sagar. |
Topic | Author | Date |
external interrupt -strange behaviour | 01/01/70 00:00 | |
what is the source of the pulse? | 01/01/70 00:00 | |
pulse source | 01/01/70 00:00 | |
show the code | 01/01/70 00:00 | |
Maybe this will help....![]() | 01/01/70 00:00 |