Search found 220 matches

by jay_dee
Sun Jul 06, 2025 12:37 pm
Forum: Feature Requests
Topic: 'Exclude From Build' options for build error debug
Replies: 4
Views: 5448

Re: 'Exclude From Build' options for build error debug

Any tool that helps with de-bugging are always great additions.
by jay_dee
Thu Jun 26, 2025 9:24 pm
Forum: Projects - Embedded
Topic: Absolute ABS Function for Integers?
Replies: 7
Views: 3759

Re: Absolute ABS Function for Integers?

appologies to the FC team, I think it might have been a even more basic mistake and not the capitialisation....
REVERSE...REVERSE...back away from the situation!!! haha!
by jay_dee
Thu Jun 26, 2025 9:09 pm
Forum: Projects - Embedded
Topic: Absolute ABS Function for Integers?
Replies: 7
Views: 3759

Re: Absolute ABS Function for Integers?

Hi,
Ahhh.... Fabs(Value) this will not pass
but fabs(value) will pass the compiler.

it was not a problem with the function but with my capitalisation! doh!

FC usually lets me play fast and loose with capitalisation but not in this case!
Thanks. :)

OK...back to fixing the bigger project!!
by jay_dee
Thu Jun 26, 2025 8:12 pm
Forum: Projects - Embedded
Topic: Absolute ABS Function for Integers?
Replies: 7
Views: 3759

Re: Absolute ABS Function for Integers?

Hi, Yeah absolutly. It is a H Bridge driven DC motor. I use the current to define the 'Clamping' force and hard limits of the driven assembly. J.
by jay_dee
Thu Jun 26, 2025 7:53 pm
Forum: Projects - Embedded
Topic: Absolute ABS Function for Integers?
Replies: 7
Views: 3759

Absolute ABS Function for Integers?

Hi, Does FC have an ABS ( Absolute ) function? I have a current sensor and get both positive and Negative Values. Is there a Calculation Function that will always return positive Value. I thought C had an ABS function. If the Float Abs function is used, the compiler throws an error. thanks, J.
by jay_dee
Fri Jun 13, 2025 11:37 am
Forum: General
Topic: Training - What do FC users want to learn in more depth
Replies: 1
Views: 1729

Training - What do FC users want to learn in more depth

Hi Matrix Team, Some year ago I attended a Flowcode training seminar. Is there anything planned for more content to learn FC in more detail. On-site/On-line or Youtube. I appreciate there is lots of content already and the Wiki has improved greatly but maybe there is demand for v10 training content ...
by jay_dee
Fri Jun 13, 2025 11:25 am
Forum: Projects - Embedded
Topic: Odd Interrupt Behaviour - One Int calls two ISRs
Replies: 5
Views: 2081

Re: Odd Interrupt Behaviour - One Int calls two ISRs

Thanks Martin,
Great insight, I will have a look as you suggest.

Ahh.... this is great to know. C Code Macro references -- "note that they are not capitalised (unlike variable names) - so you would use FCM_PulseSPD_ISR."
J.
by jay_dee
Thu Jun 12, 2025 10:44 pm
Forum: Projects - Embedded
Topic: Odd Interrupt Behaviour - One Int calls two ISRs
Replies: 5
Views: 2081

Re: Odd Interrupt Behaviour - One Int calls two ISRs

So I think its something in the handler code, if (PIR2bits.ECCP1IF) { FCM_%n(); // call selected macro } Maybe I need to explicity select the ISR I wish to target, setting a different one for each version of the Interrupt. So how do I specify the ISR Macro in the handler C? I tried changing the line...
by jay_dee
Thu Jun 12, 2025 10:17 am
Forum: Projects - Embedded
Topic: Odd Interrupt Behaviour - One Int calls two ISRs
Replies: 5
Views: 2081

Odd Interrupt Behaviour - One Int calls two ISRs

I would appriecate some input on the attached FC. I have created two Custom Interrupts that use ECCP1 of a PIC 18F4680. One is used to measure an RPM pulse, the Other measures a SPEED Pulse. Importantly, they will only get enabled individually. (long story short, I cant use CCP1 and ECCP1 for indivi...
by jay_dee
Thu Jun 12, 2025 9:58 am
Forum: Bug Reports
Topic: PIC CCP wont run if Internal CAN Enabled
Replies: 4
Views: 2752

Re: PIC CCP wont run if Internal CAN Enabled

Hi, short update. I monitored the CIOCON register...there is something setting the CANCAP bit, this enabled CAN message recieve interupt and stops triggers from RC2 to the CCP1. I tried to manually set the CANCAP bit to 0, but it did not seem stable and bit was getting reset to 1 somehow. I tried to...