Search found 1049 matches

by QMESAR
Wed Oct 09, 2019 1:42 pm
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

HI Ben,
I will ask the Project Manager and let you know :D
by QMESAR
Wed Oct 09, 2019 6:42 am
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

HI Ben. Just a small info for you. We commissioned the controller using the PID/DSP Component on a 700 HP Porsche Engine (it is controlling the waste gate actuator/ Boost Pressure ) Again the PID showed as in the past that it works well and relatively easy to tune :D however as discussed above when ...
by QMESAR
Sun Oct 06, 2019 5:22 pm
Forum: Flowcode V8
Topic: 2 PHASE INTERLEAVED BUCK CONTROLLER
Replies: 2
Views: 110

Re: 2 PHASE INTERLEAVED BUCK CONTROLLER

Hi. I am afraid that there is no FC components that does this for you with that said, you can do all of this in FC8 by using a C call Icon's and setup the PIC peripherals as needed . I have done buck converters in FC 7 using this method (1) use MPLABX Code configurator to generate you the configurat...
by QMESAR
Sat Oct 05, 2019 6:40 pm
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

Hi Ben. DSP Control component Yes this is the component I am using each and every time. This way you can take a reading direct from an analogue input using the new DSP Input Analog component and you can optionally do additional things such as filtering or averaging on the setpoint which would have b...
by QMESAR
Mon Sep 30, 2019 12:38 pm
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

Hi Ben,

I agree signed 8 bit can go :D the range is too small for any decent control

Have nice time
by QMESAR
Sat Sep 28, 2019 4:57 am
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

Hello Ben. Thank you for your valuable info and comments I have used the component on a few projects and it works really well , however in these project the tuning always ended in a smaller then 1.0 I part till last Wednesday then I noticed that I values of bigger than 1.0 had no effect on the outpu...
by QMESAR
Fri Sep 27, 2019 5:24 pm
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

Ben
I am not feeling the math is wrong I am just interested to understand how we get to go to smaller numbers as 1 for the integral :D

you are much smarter than me thanks for the link I will try to understand your method
Thanks Ben
by QMESAR
Fri Sep 27, 2019 5:12 pm
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

Re: DSP Component

Hi Ben Thanks for the info in the mean time I did play with this and noticed an integral of less than 1 seems to improve things however this confuse me if I reach 0 in tuning should I go negative values ,my math do not add up on this ,can you explain the math behind this a bit for understanding I ha...
by QMESAR
Fri Sep 27, 2019 11:44 am
Forum: Flowcode V8
Topic: DSP Component
Replies: 14
Views: 516

DSP Component

Dear Ben. Please help the old man , I am using the DSP Component to do a PID and it is working I get the Control output as expected according to the error between the Input and the Feedback.However it seems to me that the control output does never increase if the error is kept constant as I would ex...
by QMESAR
Thu Sep 26, 2019 11:10 am
Forum: Flowcode V8
Topic: structure and bit fields in FC
Replies: 2
Views: 147

Re: structure and bit fields in FC

Hello Ben.

OK thank you for the info ,
I think I stick by just using variables for now ,
I appreciate your help :D
by QMESAR
Wed Sep 25, 2019 4:51 pm
Forum: Flowcode V8
Topic: structure and bit fields in FC
Replies: 2
Views: 147

structure and bit fields in FC

Hi Team. I normaly like to use structure for data and Flags in C code how can I do this in FC example in C structure Appflags { unsigned char RX_INT :1; unsigned char Tx_INT :1; unsigned char ControlOn :1; { Flags; I can then call or use the structure example Flags.ControlOn = 1 ; my question is how...
by QMESAR
Mon Sep 23, 2019 9:12 am
Forum: Flowcode V8
Topic: dsPIC30F40xx UART Component does not work
Replies: 2
Views: 119

Re: dsPIC30F40xx UART Component does not work

Hi Leigh,
Thanks for your reply let me check I suffered and made many things may be I messed up will be back to report :D

Have good one Team
by QMESAR
Sun Sep 22, 2019 6:05 pm
Forum: General Programming
Topic: IOC dilema
Replies: 8
Views: 436

Re: IOC dilema

Hi.
I haven't studied your device datasheet but recall had a similar situation make sure if the pins you are using is also connected to the comparators
make sure you switch the comparators OFF :D
by QMESAR
Sun Sep 22, 2019 2:07 pm
Forum: Flowcode V8
Topic: dsPIC30F40xx UART Component does not work
Replies: 2
Views: 119

dsPIC30F40xx UART Component does not work

Hi Team. I am having issues with the UART on dsPIC30F40xx devices Nothing is working no TX or RX and also the RX Interrupt is never triggered . Using Micro C all is working just as an info so this rules out my hardware, I am in the middle of a urgent project an now this happens (as usual with urgent...
by QMESAR
Tue Sep 03, 2019 4:36 am
Forum: Flowcode V8
Topic: 18F87J50 - BMPDrawer Slow
Replies: 4
Views: 256

Re: 18F87J50 - BMPDrawer Slow

Hi,
in my opinion you are not running at 48Mhz
why are you setting the OSCON and Tune registers when using external clock you should only enable PLL , I also do think your divide by 12 is wrong for an 8Mhz clock .
Check the datasheet Oscillator settings and set it properly
by QMESAR
Mon Aug 12, 2019 3:25 pm
Forum: Flowcode V6
Topic: Print Ascii for LCD Component Macro Hello World
Replies: 6
Views: 363

Re: Print Ascii for LCD Component Macro Hello World

Hi. When using the printstring macro you need to enter the string and note it is a string of ASCII characters such as "12345" "ADGDE" the macro expects a string and therefore what ever you enter in the macro as string example HELLO WORLD needs to be in double quotation marks to i...
by QMESAR
Sun Aug 11, 2019 4:47 pm
Forum: Flowcode V6
Topic: Print Ascii for LCD Component Macro Hello World
Replies: 6
Views: 363

Re: Print Ascii for LCD Component Macro Hello World

HI. Are you using Flowcode V6 ? my advise is to post your flowchart that we can see what your problem is ,you can attach your Flowchart by using attachments button . not many people,have the book you refer to and hard to see what your problem is Have you tried to use the MATRIX learning center there...
by QMESAR
Thu Aug 08, 2019 5:13 am
Forum: Flowcode V8
Topic: 18F67K40 UART Problem
Replies: 46
Views: 1805

Re: 18F67K40 UART Problem

Hi.
well I am not sure what is going on here however in my understanding of the Datasheet MCLR is at pin RG5 and not RE3 as in the FC definition file and it seems one UART is using RE3

P1.jpg
P1.jpg (75.38 KiB) Viewed 794 times
by QMESAR
Wed Aug 07, 2019 5:22 am
Forum: Flowcode V8
Topic: 18F67K40 UART Problem
Replies: 46
Views: 1805

Re: 18F67K40 UART Problem

HI,
I would change the configuration settings for PPS from allow once to allow as needed

P2.jpg
P2.jpg (104.91 KiB) Viewed 824 times


P1.jpg
P1.jpg (120.19 KiB) Viewed 824 times
by QMESAR
Fri Jul 19, 2019 3:22 pm
Forum: Flowcode V8
Topic: Assembly code
Replies: 2
Views: 292

Re: Assembly code

Why assembly a C function call with normal C code is perfect

here I am using a C icon and C code to use Timer1 on dsPIC as an example

P1.jpg
P1.jpg (65.2 KiB) Viewed 285 times


P2.jpg
P2.jpg (64.01 KiB) Viewed 285 times
by QMESAR
Wed Jul 17, 2019 1:16 pm
Forum: Flowcode V8
Topic: C Code conversion to Icon
Replies: 6
Views: 379

Re: C Code conversion to Icon

Hi Steve,
Wow that would be great ,
Thank you very much for your support today :D
by QMESAR
Wed Jul 17, 2019 11:08 am
Forum: Flowcode V8
Topic: C Code conversion to Icon
Replies: 6
Views: 379

Re: C Code conversion to Icon

Hi Steve, Thank so much yes it is clear what is happening and it not an big issue or game changer at the moment by uing a mix of the abilities i will get some realistic flowchart It would be perfect if the converter could converts the bit field(dot notations) and the registers but I guess that is a ...
by QMESAR
Wed Jul 17, 2019 10:33 am
Forum: Flowcode V8
Topic: C Code conversion to Icon
Replies: 6
Views: 379

Re: C Code conversion to Icon

Hello Steve.
Thank you for your reply.
I have made a simple project and I tried our T1CONbits.TON as you mentioned it seems I am doing something wrong as
flowcode does not understand it ,sorry for my stupidity

P1.jpg
P1.jpg (79.7 KiB) Viewed 363 times
by QMESAR
Wed Jul 17, 2019 8:29 am
Forum: Flowcode V8
Topic: C Code conversion to Icon
Replies: 6
Views: 379

C Code conversion to Icon

Hi Team. Please help me out in understanding the C code conversion engine at present It seems that only C code that is listed in the FC8 function table can be converted to an Icon /simulated. C ode that contains general C and access directly to mcu registers can not be converted or am I understandin...
by QMESAR
Tue Jul 02, 2019 8:05 pm
Forum: Flowcode V8
Topic: dsPIC33EP Timer1 Custom Interrupt
Replies: 2
Views: 223

Re: dsPIC33EP Timer1 Custom Interrupt

Hi All.

Ok the posted Interrupt syntax seems to work fine just for those who has or will have the same confusion as me :D