Search found 219 matches

by jay_dee
Thu Jun 26, 2025 9:24 pm
Forum: Projects - Embedded
Topic: Absolute ABS Function for Integers?
Replies: 7
Views: 491

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: 491

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: 491

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: 491

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: 705

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: 574

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: 574

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: 574

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: 572

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...
by jay_dee
Tue Jun 10, 2025 6:34 pm
Forum: General
Topic: V10 FlowKit V2 and Ghost
Replies: 6
Views: 1018

Re: V10 FlowKit V2 and Ghost

Good shout on device manager, it looked like I had the original driver installed...did not play well with Win10. I found another driver Ben put up, after clearing old, reinstalling and a PC reboot. We now have Ghost Button. Well done! Driver was on old site. https://www.flowcode.co.uk/mmforums/viewt...