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

Clear pending interrupt for AT89C51CC03

We are having a problem in that we are disabling external interrupt 1 (EX1) in order to prevent a task from happening, but, when we re-enable EX1, a pending IRQ is serviced. We would like to be able to clear the pending interrupt list as well as disabling EX1, but I haven't found the information to do so either in the datasheet or in these forums. Any suggestions on how to clear pending interrupts, specifically for EX1?

  • the flip of the interrupt pin does not cause an interrupt, it set a bit (look in 'the bible') that bit causes the interrupt to take place when and if the int is enabled. thus, if you want not to get the interrupt you need to clear said bit before enabling the interrupt.

    Erik

    from home, might have given you the bit name otherwise it is in TCON or TMOD