Page 1 of 1

PWM Limitations

Posted: Thu Aug 13, 2009 7:50 pm
by steve50j
Hi

Im new to flowcode and it seems like a wonderfull tool but I have one problem that I cant seem to figure out
and the help file isn't very helpful with this.

I want to use flowcode (v3 or v4) to output four different pwm signals on the PIC18F4431 but it seems that
you can only generate two at a time. Is there a way to do more than two and can you assign them to specific
pwm pins on the PIC. Also I want to generate the signal at 50Hz using a 20kHz Xtal on the pic. I havent played around with it too much but I couldn't seem to get it that low. Is it possable?

Thanx
Steve

Re: PWM Limitations

Posted: Fri Aug 14, 2009 7:34 am
by Steve
The current PWM implementation only allows a maximum of 2 PWM outputs. However, you could do what you are asking by embedding your own custom C code into your Flowcode program.

Re: PWM Limitations

Posted: Thu Sep 10, 2009 7:15 am
by fresh
Hello,

I need also more than two PWM Signals in V4.
Is it technically feasible to integreat the PWM Feature more than 2 Limitations
in the Future?
My "C-Code" knowledge are very bad and i don't know how to
integrate this in Flowcode with "C".

Thank you for response

Re: PWM Limitations

Posted: Thu Sep 10, 2009 9:42 am
by Steve
Flowcode will eventually support as many PWMs as are available on the device. But this will not happen soon.

You should be able to use custom code to manipulate all available PWM outputs, but you'll need a bit of C programming skills for this (or a friend who can help).

Perhaps this would make a good article for the newsletter/forum. We give away up to Β£100 of E-Blocks (or other software/hardware) for suitable articles, so if anyone fancies having a go...

Re: PWM Limitations

Posted: Thu Sep 10, 2009 11:41 am
by fresh
Thank you for information steve.
So I must learn C-Code to use 3 PWM Channels and I hope
in the future it is integrated in Flowcode.

regards Andreas

Re: PWM Limitations

Posted: Sat Jan 29, 2011 2:31 pm
by dannyvanneijenhoff
Hello
Is there maybe allready news, to work with more than 2 pwm channels in Flowcode? Is there maybe a update FC4 in the near future.

Is it easy (for someone with c-code experience) to copy and change the c-code of Flowcode from 2 to 4x PWM channnels.
Or is that a lot of work.

Thanks Danny

Re: PWM Limitations

Posted: Sat Jan 29, 2011 2:49 pm
by medelec35
Have you looked at:
http://www.matrixmultimedia.com/mmforum ... 19&start=0
THis only applies if more than 2 CCP channels.
Will not apply if only using ECCP.
I believe the facility to use more than two PWMs will be added to Flowcode V5

Re: PWM Limitations

Posted: Sat Jan 29, 2011 2:56 pm
by Dan81
Hello

if you want to use more than 2 PWM (actually Pic Hardware possibility)

- if the frequency is not to high (about 1 kHz) you can use Timer interrupt.
- or use a special IC like Led dimmer for example (with I2C bus)

Daniel