Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20577

BASCOM-AVR : what is possible with interrupt ? : REPLY

$
0
0
[quote:1b5c000cc6="Vincent"]then here is the main code[/quote:1b5c000cc6] Hmm, one can't compile that, even the declaration which interrupt is used for the ISR is missing. [quote:1b5c000cc6]but the "disable interrupt" seems not working.... [/quote:1b5c000cc6] It makes no sense to disable interrupts within the ISR, they are automatically disabled there. I can't say that much from this incomplete code, but one problem could be, that the so called flag-registers always memorize one pending interrupt-event. Doesn't matter, even if interrupts are disabled, one event is kept, and as soon you re-enable interrupts, it is executed at once. Also you should reset your flag somewhere in your code, don't you think so ?

Viewing all articles
Browse latest Browse all 20577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>