Suggestions how to add a Interrupt inside a Component

For general Flowcode discussion that does not belong in the other sections.
Post Reply
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Suggestions how to add a Interrupt inside a Component

Post by p.erasmus »

Hi Ben/leigh

Is there a simple or easy way in FC to make a comportment that is depended on an Timer interrupt to decode signals but the user shoud only be able to select the timer range (interrupt Time)and not see the interrupt or need to place one on his flowchart :oops:

Any suggestion is appreciated
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: Suggestions how to add a Interrupt inside a Component

Post by BenR »

Hello Peter,

Adding an interrupt inside a component can be done but it is tricky, mainly because there is so much variety from micro to micro in terms of the interrupts available and the various settings. The timer component took a fair amount of consolidating and fiddling to allow this to function across so many devices.

I can certainly offer you with an example but it's not the easiest thing. By far the easiest approach (for you) is to get the user to create the interrupt and call one of the component macros.

TimerComponent.fcfx
(101.22 KiB) Downloaded 228 times

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Suggestions how to add a Interrupt inside a Component

Post by p.erasmus »

Hi Ben,

Thank you for the sound advise ,I guess asking the user to add a Interrupt is not such a bad thing as it is fully supported by FC Icons
Thanks for the Timer Component.

I appreciate this keeping it simple is may be the best way :D :D
Regards Peter - QME Electronics

Post Reply