Why do we have to define a pin as a digital one for external interrupt ??
Is that to just differentiate the pin working in two different states high and low for a trigger ? Or is there any specific reason for doing this ??
Thanks wp100,
Another problem i have is that whenever i try to set the external interrupt pin INT0/RB0 as a digital one in the PIC 18F47J53 controller, the interrupt flag bit INT0IF is being set at the same step and could not be cleared by software in the subsequent statements. I know this is weird but i could not understand why or what is the association between these two bits. For all other external interrupts, it works perfect with the ANCON and INTCON registers. Is there anyway i could debug this problem?
---------- Post added at 09:25 ---------- Previous post was at 09:18 ----------
Sorry for the above post, When i switched the Edge detection on the external interrupt from rising edge to the falling edge, it is working the way it should.