Page 1 of 1

Flowcode dsPIC student/home version

Posted: Tue Jan 10, 2012 3:09 am
by clee
First post, hello all...

I have Flowcode for dsPIC and have a few questions about functions that may not be available on the home version.

I can't get interrupts to work, even the example file that came with FC doesn't work. Also when using a dsPIC with built in 16bit DACs there doesn't seem to be any output functions or macro libraries, is that something available with the full version or do you need to write that code as a C file?

Thanks,
very nice program so far.
Craig

Re: Flowcode dsPIC student/home version

Posted: Tue Jan 10, 2012 10:19 am
by Steve
Hi Craig,

Interrupts should work. Can you please post an example program with an explanation of what is going wrong.

We have not produced a Flowcode "component" for the DAC module within the dsPIC. But it looks like it is fairly easy to communicate with via C code.

Re: Flowcode dsPIC student/home version

Posted: Tue Jan 10, 2012 2:44 pm
by clee
Thanks for the reply Steve.

I've just started to experiment with the interrupts, but just loading Tutorial 17 that came with FC (dsPIC) doesn't seem to work. Monitoring the 2 variables, they always stay at zero and the 7 segment display never changes.

I'm running FC on an AspireOne netbook and copied the install disk to a USB drive to install (no optical drive). Maybe something didn't get installed?

Re: Flowcode dsPIC student/home version

Posted: Tue Jan 10, 2012 4:32 pm
by Steve
What hardware and chip are you using?

Re: Flowcode dsPIC student/home version

Posted: Tue Jan 10, 2012 6:27 pm
by Benj
Hello,

Example 17 uses timer 1 which does not simulate in version 4. A way to simulate timers in v4 is to include a call to the interrupt macro as part of the main. This way every time you go through the loop the interrupt is called. You can then remove this extra call when using the hardware. This has all been sorted out for simulated timer interrupts in v5.

Re: Flowcode dsPIC student/home version

Posted: Wed Jan 11, 2012 4:47 am
by clee
Thanks,

Is it just Timer1 that doesn't simulate, or timers in general for the dsPICS? I'm using the 33FJ128GP802

Re: Flowcode dsPIC student/home version

Posted: Wed Jan 11, 2012 11:17 am
by Benj
Hello,

From the looks of it, timers in general do not simulate.

Re: Flowcode dsPIC student/home version

Posted: Wed Jan 11, 2012 2:10 pm
by clee
Ok, good to know.

Modification examples

Posted: Thu Jan 12, 2012 1:54 am
by nnnnff
TUT_17_modded.fcf_pic16
Modification examples
(8 KiB) Downloaded 299 times