Put it where you want the program to start responding to the interrupt. If you want to stop it from responding to a particular interrupt, you can write
On Interrupt PortABChange Ignore
To re-enable that particular interrupt, set the sub again. One limitation, it's only possible to have one subroutine to handle a particular interrupt.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I can only use this On Interrupt command with this particular interrupt only in one subroutine? Or can i call it in each subroutine that is looking for that particular interrupt? I'm confused.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I'm using interrupts in a few places in my program (each in a different subroutine), Should i put
On Interrupt PortABChange Call Get_Passcode
at the start of each subroutine that uses interrupts? Or do I declare it before any of the subroutines?
Put it where you want the program to start responding to the interrupt. If you want to stop it from responding to a particular interrupt, you can write
On Interrupt PortABChange Ignore
To re-enable that particular interrupt, set the sub again. One limitation, it's only possible to have one subroutine to handle a particular interrupt.
So I can only use this On Interrupt command with this particular interrupt only in one subroutine? Or can i call it in each subroutine that is looking for that particular interrupt? I'm confused.