Posted: Sat Jan 25, 2014 11:30 pm Post subject: Disable INT0 is not compiled. Compiler version: 2.0.14.0 De
Please see the attached code in "Testice.bas".
The external interrupt INT0 is still enabled in spite of the instruction in the line after "Waitmse 690". No error message after compilation.
Can anyone explain why?
Best Regards
disable INT0 will disable the interrupt enable bit in the IE register. but ... if a flag was still pending, the interrupt will still be called once.
so clear the flag in TCON.1 to prevent that the isr is called. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum