I wanted to test a macro call on an interrupt on timer1 in FC10.
I have a macro "PWM2" that exists and can be edited, but when I try to point the timer interrupt to this macro, it does not appear in the drop down box.
Before I've tried to create a new macro to which the interrupt should jump, but the macro was created, but was not visible in the dropdown box.
Solved: Macro not found in interrupt properties??
-
- Posts: 278
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 81 times
- Been thanked: 57 times
Solved: Macro not found in interrupt properties??
Last edited by MJU20 on Mon Sep 16, 2024 6:48 pm, edited 1 time in total.
-
- Valued Contributor
- Posts: 1281
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 312 times
- Been thanked: 452 times
Re: Macro not found??
Hi
I've just tested with a PIC16F18877 and creating the Macro first and then selecting it in the Interrupt works fine as does creating a new macro from within the Interupt Properties.
What chip are you using? Is it an old chart you are "upgrading"?
Regards
I've just tested with a PIC16F18877 and creating the Macro first and then selecting it in the Interrupt works fine as does creating a new macro from within the Interupt Properties.
What chip are you using? Is it an old chart you are "upgrading"?
Regards
Re: Macro not found in interrupt properties??
Hello Chipfryer,
This chart was made a few hours ago for a ESP32 C3 mini board.
This is the first time that I've seen this behaviour.
All the FC10 updates are in place..
This chart was made a few hours ago for a ESP32 C3 mini board.
This is the first time that I've seen this behaviour.
All the FC10 updates are in place..
-
- Valued Contributor
- Posts: 1281
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 312 times
- Been thanked: 452 times
Re: Macro not found in interrupt properties??
Hi
I created a blank chart using your chip and then a Macro.
Appears to work for me.
Regards
I created a blank chart using your chip and then a Macro.
Appears to work for me.
Regards
Re: Macro not found in interrupt properties??
New attempt:
- New chart.
- Enable interrupt and choose "create new macro".
- Create new macro and edit
Fine until now. The interrupt shows the new macro..
- Create a new macro and try to point the interrupt to this second one..
- The list of existing macro's in the interrupt properties is empty.
- New chart.
- Enable interrupt and choose "create new macro".
- Create new macro and edit
Fine until now. The interrupt shows the new macro..
- Create a new macro and try to point the interrupt to this second one..
- The list of existing macro's in the interrupt properties is empty.
-
- Matrix Staff
- Posts: 1355
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 182 times
- Been thanked: 317 times
Re: Macro not found in interrupt properties??
Does your "PWM" macro have parameters? If so, it will not show in the list. This is because there is no way of populating the parameters with values when the interrupt occurs. Only macros with no parameters will be shown in the drop-down list.
Re: Macro not found in interrupt properties??
Thanks Steve!
This was the issue!
Maybe something to point out when selecting a macro that has parameters in the interrupt properties?
Like, the macro is shown in the dropdown box but there is a warning that this will not work?
Thanks!
This was the issue!
Maybe something to point out when selecting a macro that has parameters in the interrupt properties?
Like, the macro is shown in the dropdown box but there is a warning that this will not work?
Thanks!