PDA

View Full Version : Interrupt question



JackPollack
- 31st March 2006, 13:43
If a interrupt fires while in a section of code that has the interrupt disabled, when the program hits code where the interrupt is re-enabled, will the past interrupt (the one that fired during the disabled time) be detected?

(16F88 - Using RB0)

Thanks

paul borgmeier
- 31st March 2006, 14:52
Yes! - when you re-enable interrupts, you just resume checking for them. No code is written (by the complier) to clear past interrupt flags. Although a tad wordy, the manual describes this in good detail.

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA