This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

interrupts

Many thanks for those who help me! (:

I got a problem here...

If i were to use 3 types of interrupts(external interrupt0, timer0 and timer1) in one single program, how should i go about writing the codes in the program?

Parents
  • most level triggered interrupts reset "the level" in the ISR.
    in such a case it is easy to check if the reset "worked" and take action if not.

    The exception to the above is some derivatives requirement for a wake up interrupt, but similar detection can be done there.

    THUS, even a level triggered interrupt can be detected stuck and disabled.

    Erik

Reply
  • most level triggered interrupts reset "the level" in the ISR.
    in such a case it is easy to check if the reset "worked" and take action if not.

    The exception to the above is some derivatives requirement for a wake up interrupt, but similar detection can be done there.

    THUS, even a level triggered interrupt can be detected stuck and disabled.

    Erik

Children