Interrupt Macro

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Interrupt Macro

Post by MarkW »

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 :D (for lazy guys like me)

Cheers

Mark

User avatar
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

Post by Enamul »

Hi,
Does the FC interrupt macro clear the interrupt flag automatically when entering the ISR (interrupt service routine)?
Yes, clear the interrupt flag is in the interrupt handler code and so it's done automatically.
Also, does it automatically re-enable the INT0 when exiting the ISR?
INT0 is enabled after exiting from ISR..if you not disable that using disable macro in main program..
Enamul
University of Nottingham
enamul4mm@gmail.com

MarkW
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

Post by MarkW »

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

Post Reply