2006-09-03 10:09 PM
2006-09-03 10:09 PM
Using the ST7 321 µC I have following problem:
On PB0 (ei2-Interrupt) I have to detect rising and falling edge, which is realized by switching sensivity by the IPB Flag. On Port B the other pins are used by ei3-IRQ (falling edge only). On every detection of the signal-edge I get a double IRQ (two for falling and two for rising). In the ei2-ISR execution I test the Level of the PB0 Signal and Toggle the IPB-Flag. What is the reason and how can it be handled correctly?