ARM PWM Channels

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times
Contact:

ARM PWM Channels

Post 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
Science is my true religion.

User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times
Contact:

Re: ARM PWM Channels

Post 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
Science is my true religion.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ARM PWM Channels

Post 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.

Post Reply