 | Discussion Forum |  |
|
|
Clear pending interrupt for AT89C51CC03Next Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Pat Kujawa Posted 10-Oct-2008 18:34 GMT Toolset C51 |  Clear pending interrupt for AT89C51CC03 Pat Kujawa 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? | | Read-Only Author erik malund Posted 11-Oct-2008 21:29 GMT Toolset C51 |  it's in 'the bible' erik malund 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 | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|