Hi
While creating a embedded flowchart we use some standard components.
These components may use some resources ( like Timers....).
How can I know which Timers are in use, Just to avoid using the same Timers ( to avoid conflict).
Thanks
S_Ve
how to check which resources (like Timers) in use
-
S_VE
- Posts: 41
- http://meble-kuchenne.info.pl
- Joined: Tue Jan 26, 2021 6:10 am
- Has thanked: 52 times
- Been thanked: 1 time
-
chipfryer27
- Valued Contributor
- Posts: 1945
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 425 times
- Been thanked: 646 times
Re: how to check which resources (like Timers) in use
Hi
Perhaps include the timer being used in the macro name, then a quick glance in Project Explorer would show? There may well be a better way though.
Regards
Perhaps include the timer being used in the macro name, then a quick glance in Project Explorer would show? There may well be a better way though.
Regards
-
Steve-Matrix
- Matrix Staff
- Posts: 1763
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 256 times
- Been thanked: 412 times
Re: how to check which resources (like Timers) in use
There is no way to do this directly within Flowcode.
If you are only concerned with the interrupts used by you in your program, you can right-click the "Interrupt" icon in the "Icons" list in Project Explorer and select "List occurrences". That will allow you to check on each interrupt more easily.
If you are concerned with timers (etc) used within components as well, then the best way may be to do an appropriate text search on the generated C code file.
If you are only concerned with the interrupts used by you in your program, you can right-click the "Interrupt" icon in the "Icons" list in Project Explorer and select "List occurrences". That will allow you to check on each interrupt more easily.
If you are concerned with timers (etc) used within components as well, then the best way may be to do an appropriate text search on the generated C code file.
Re: how to check which resources (like Timers) in use
Thank you for the quick reply,
When you said "appropriate text search" do you mean to say that, we should search for relevant registers of all the timers in the device? or, are there any other keywords to search. ( this i am asking about PIC devices particularly)
[yes, I am asking about the timers (etc) used within components ]Steve-Matrix wrote: ↑Mon Feb 23, 2026 4:26 pmIf you are concerned with timers (etc) used within components as well, then the best way may be to do an appropriate text search on the generated C code file.
When you said "appropriate text search" do you mean to say that, we should search for relevant registers of all the timers in the device? or, are there any other keywords to search. ( this i am asking about PIC devices particularly)
S_V
-
Steve-Matrix
- Matrix Staff
- Posts: 1763
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 256 times
- Been thanked: 412 times
Re: how to check which resources (like Timers) in use
Yes, I was thinking about a search for relevant registers of that chip. For example "T2CON" is used for Timer2 on some (most?) PICmicros.
But also be aware that some aspects of Flowcode's CAL may also use some internal resources. For example, the PWM does sometimes also use Timer2.
But also be aware that some aspects of Flowcode's CAL may also use some internal resources. For example, the PWM does sometimes also use Timer2.