Hello
Using 18F2620 to capture 8bit data on port using strobe on INT0. Does the FC interrupt
macro clear the interrupt flag automatically when entering the ISR (interrupt service routine)?
Also, does it automatically re-enable the INT0 when exiting the ISR?
Reason, i ask is that using interrupts before using a different compiler, you have to clear the interrupt
flag.....and the interrupt is re-enabled when exiting the routine(typically a RETFIE asm command).
Flowcode is awesome (for lazy guys like me)
Cheers
Mark
Interrupt Macro
Moderator: Benj
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Interrupt Macro
Hi,
Yes, clear the interrupt flag is in the interrupt handler code and so it's done automatically.Does the FC interrupt macro clear the interrupt flag automatically when entering the ISR (interrupt service routine)?
INT0 is enabled after exiting from ISR..if you not disable that using disable macro in main program..Also, does it automatically re-enable the INT0 when exiting the ISR?
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Interrupt Macro
Hi Enamul
Thanx for confirming this about interrupt flags etc....
I suspected that smething like this was been done, otherwise the interrupt would be re-cursive all the time.
Thanx
Mark
Thanx for confirming this about interrupt flags etc....
I suspected that smething like this was been done, otherwise the interrupt would be re-cursive all the time.
Thanx
Mark