linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Toni Van Remortel <t.vanremortel@ha.be>
To: Eugene Surovegin <ebs@ebshome.net>
Cc: Embedded PPC <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: EP405 GPIO signal problem
Date: Fri, 21 Nov 2003 09:21:46 +0100	[thread overview]
Message-ID: <1069402906.4172.6.camel@toni> (raw)
In-Reply-To: <20031120181921.GA3365@gate.ebshome.net>


Op do 20-11-2003, om 19:19 schreef Eugene Surovegin:
> On Thu, Nov 20, 2003 at 03:02:15PM +0100, Toni Van Remortel wrote:
> > I have an RTAI powered kernel module which outputs 32 bits data via the
> > EP405 GPIO ports from the IBM 405GP CPU. These outputs are multiplexed
> > with other signals.
> > Problem: when I output the 32 bits as one like this:
> > writel( buffer, (u32)gpio_base_addr+GPIO0_OR );
> > (where buffer is of u32 type)
>
> One thing which looks strange to me. Are you sure you can use 32 GPIO
> pins?

Ain't possible, I know.

> This is impossible because 405GP has only 23, and I doubt you can use
> even this number, because some of the pins are shared with IRQ and
> PerCSx lines.

You can set all 23 GPIO's as output. I actually only use 17 of them (2 x
8bit position and 1 on/off).
Now I've taken a deeper look at the problem, it might be caused by the
EP405 itself. My DAC settles at 70ns.
I still have to check if the signals are outputted all at the same time.
Should go and fetch a logic analyzer somewhere ;)

--
                           Toni Van Remortel
              Wetenschappelijk Medewerker - D-science lab
  Real time Linux for embedded systems: http://linemb.d-sciencelab.com
              Tel: +32 3 205 61 72 - Fax: +32 3 205 61 95
                      E-mail: t.vanremortel@ha.be


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2003-11-21  8:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 14:02 EP405 GPIO signal problem Toni Van Remortel
2003-11-20 15:21 ` Toni Van Remortel
2003-11-20 18:19 ` Eugene Surovegin
2003-11-21  8:21   ` Toni Van Remortel [this message]

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=1069402906.4172.6.camel@toni \
    --to=t.vanremortel@ha.be \
    --cc=ebs@ebshome.net \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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).