linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: linuxppc-dev <Linuxppc-dev@ozlabs.org>
Subject: Re: mpc5200 and PWM
Date: Sat, 24 Jan 2009 23:24:49 -0700	[thread overview]
Message-ID: <fa686aa40901242224i3f4c8d3fkae964126aa69282e@mail.gmail.com> (raw)
In-Reply-To: <9e4733910901241720j157b7946t58792a9b2b21f1a3@mail.gmail.com>

On Sat, Jan 24, 2009 at 6:20 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
> Is it possible to use Bestcomm with PWM to generate complex waveforms?
> For example change the frequency and duty cycle after each cycle? Has
> anyone tried doing this? I'd like to build a table of count/width
> pairs and then feed them to the PWM pin without taking an interrupt on
> each cycle.

I assume you're looking at using one of the GPT PWMs devices, correct?
 If so, the you probably cannot do what you want easily.  While you
may be able to writing a custom bestcomm task to write into the PWM
registers, the bestcomm engine isn't wired up to the PWM and so cannot
be triggered on PWM events.

However, the gpio blocks are wired up to the Bestcomm engine so they
can be used as requestors, so if you wired up the PWM output to one of
the GPIO inputs, then you may be able to do something with that.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

  reply	other threads:[~2009-01-25  6:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-25  1:20 mpc5200 and PWM Jon Smirl
2009-01-25  6:24 ` Grant Likely [this message]
2009-01-25 15:44   ` Jon Smirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa686aa40901242224i3f4c8d3fkae964126aa69282e@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=Linuxppc-dev@ozlabs.org \
    --cc=jonsmirl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).