Page 1 of 1

ARM PWM Channels

Posted: Mon Jun 25, 2012 5:05 pm
by Mantas
Hello support team,

As I know the SAM7 devices have four PWM channels on port A (PWM0,1,2,3) and each channel can run at different clocks (according to AT91SAM7S128 manual), but the flowcode 4 for ARM only allows to select 2 channels, and both running at the same clock speed. Any advices how to enable all 4? Or are you just planning to add this functionality to v5 of flowcode?

Best regards,
Mantas

Re: ARM PWM Channels

Posted: Fri Jun 29, 2012 4:46 am
by Mantas
So will anyone post a reply to my question? I need to run 4 DC motors using PWM for my ROV project.

Mantas

Re: ARM PWM Channels

Posted: Fri Jun 29, 2012 9:43 am
by Benj
Hello,

Sorry for the delay.

All 4 PWM channels are supported in v5 for ARM which is released next week.

You could instead use software driven PWM using a timer interrupt. See this article for more help on generating software PWM.
http://www.matrixmultimedia.com/article.php?a=52

You should be able to import the Flowcode program into v4 ARM to see how the code is put together.