Page 1 of 1

Suggestions how to add a Interrupt inside a Component

Posted: Mon Apr 26, 2021 1:48 pm
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

Re: Suggestions how to add a Interrupt inside a Component

Posted: Tue Apr 27, 2021 4:50 pm
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 229 times

Re: Suggestions how to add a Interrupt inside a Component

Posted: Tue Apr 27, 2021 4:53 pm
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