Discussion Forum

Clear pending interrupt for AT89C51CC03

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Pat Kujawa
Posted
10-Oct-2008 18:34 GMT
Toolset
C51
New! 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?

Read-Only
Author
erik malund
Posted
11-Oct-2008 21:29 GMT
Toolset
C51
New! it's in 'the bible'

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