Greetings all,


I have some questions regarding the instant interrupts routine and i was hoping to get some help...


1- When using the instant interrupts routine (as shown below), does it take care of all the settings
such as GIE, etc, or do we still need to set them?

Code:
'---[INT - interrupt handler]---------------------------------------------------
ASM
INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
        INT_Handler  IOC_INT,    _IOCinterrupts,    PBP,  yes
endm
INT_CREATE               ; Creates the interrupt processor
ENDASM


@ INT_ENABLE IOC_INT
2- Also, when the interrupt is detected and sends the code to the IOCinterrupts label, is the interrupt detection still working or it's paused until we leave with the code "@ INT_RETURN" ?

3- On the interrupt handler code above, there's a column for "Reset Flag - yes". Does this mean that it will reset the flag automatically after an interrupt detection or that I need to reset it my self using, for example, IOCAF=%0?


4- When using interrupt on change on chips that have port selection and not individual pin selection (and with port selection, only the pins that are set as inputs will be used for IOC), if I change a pin from output to input in the middle of the code, will it automatically be set as IOC as well?

Thanks