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

how to use int0 ?

can i check the bit IE0 to decide whether an int0 interrupt is coming?

jnb ie0,$
clr ie0
;interrupt service here

Parents
  • can i check the bit IE0 to decide whether an int0 interrupt is coming?

    You can poll the bit (provided you disabled the actual IE0 interrupt), but then it certainly isn't an interrupt !

    The whole point of having interrupts is that it is not necessary to poll any bits - once the interrupt condition occurs and the interrupt is enable, the MCU vectors to the appropriate interrupt service routine.

Reply
  • can i check the bit IE0 to decide whether an int0 interrupt is coming?

    You can poll the bit (provided you disabled the actual IE0 interrupt), but then it certainly isn't an interrupt !

    The whole point of having interrupts is that it is not necessary to poll any bits - once the interrupt condition occurs and the interrupt is enable, the MCU vectors to the appropriate interrupt service routine.

Children