* EP405 GPIO signal problem
@ 2003-11-20 14:02 Toni Van Remortel
2003-11-20 15:21 ` Toni Van Remortel
2003-11-20 18:19 ` Eugene Surovegin
0 siblings, 2 replies; 4+ messages in thread
From: Toni Van Remortel @ 2003-11-20 14:02 UTC (permalink / raw)
To: Embedded PPC
Hi,
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)
I get some glitches after my DAC. The DAC has a 70ns settling time, but
the glitches are 120µs. So I presume it's a CPU problem.
Is this a normal thing? I don't think so. It is strange behavior, that's
all I know. How can I prevent those 'peaks' in my output? Peaks are
generated by 0xFFFFFFFF output (that's what I can make out of the
scope-signal).
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: EP405 GPIO signal problem
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
1 sibling, 0 replies; 4+ messages in thread
From: Toni Van Remortel @ 2003-11-20 15:21 UTC (permalink / raw)
To: Embedded PPC
Op do 20-11-2003, om 15:02 schreef Toni Van Remortel:
> I get some glitches after my DAC. The DAC has a 70ns settling time, but
> the glitches are 120µs. So I presume it's a CPU problem.
Which isn't. Just checked the digital signals and those are perfect. So
it is my DAC.
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: EP405 GPIO signal problem
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
1 sibling, 1 reply; 4+ messages in thread
From: Eugene Surovegin @ 2003-11-20 18:19 UTC (permalink / raw)
To: Toni Van Remortel; +Cc: Embedded PPC
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?
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.
Eugene
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: EP405 GPIO signal problem
2003-11-20 18:19 ` Eugene Surovegin
@ 2003-11-21 8:21 ` Toni Van Remortel
0 siblings, 0 replies; 4+ messages in thread
From: Toni Van Remortel @ 2003-11-21 8:21 UTC (permalink / raw)
To: Eugene Surovegin; +Cc: Embedded PPC
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-21 8:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).