parallel I/O ports & opend darin pins on MPC8xx

3 messages, 3 authors, 2003-07-09 · open the first message on its own page

parallel I/O ports & opend darin pins on MPC8xx

From: Stephan Linke <hidden>
Date: 2003-07-08 15:31:35

Hi,

on one of our boards we are using one of the I/O pins in open drain mode. This leads to some problems in combination with other
drivers that write to the ports data register. Since they can not detect the current output value of the open drain pin. They only
see the status of the I/O pin no matter who forces the value the CPM or another device connected to the open drain pin. After
writing back the value read from the I/O data register this value is forced by CPM which is normaly wrong.

Did anyone run into that problem in the past? What was your solution? Any thing else but NOT using open drain pins?

Thanks, Stephan


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

Re: parallel I/O ports & opend darin pins on MPC8xx

From: Craig Hollabaugh <hidden>
Date: 2003-07-08 15:49:37

On Tue, 2003-07-08 at 09:31, Stephan Linke wrote:
on one of our boards we are using one of the I/O pins in open drain mode. This leads to some problems in combination with other
drivers that write to the ports data register. Since they can not detect the current output value of the open drain pin. They only
see the status of the I/O pin no matter who forces the value the CPM or another device connected to the open drain pin. After
writing back the value read from the I/O data register this value is forced by CPM which is normaly wrong.
Stephan,

What you are explaining, I beleive, is the reason why developers use
open drain in the first place. Multiple devices connected to control a
single signal giving bidirectional data flow.
Did anyone run into that problem in the past? What was your solution? Any thing else but NOT using open drain pins?
Have you grepped the kernel source to find the other drivers affecting
that specific port control register? What did you look for and what did
you find?

Craig


--
------------------------------------------------------------
Dr. Craig Hollabaugh, craig@hollabaugh.com
Author of Embedded Linux: Hardware, Software and Interfacing
www.embeddedlinuxinterfacing.com


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

Re: parallel I/O ports & opend darin pins on MPC8xx

From: None Atall <hidden>
Date: 2003-07-09 04:57:49

 I hope it is not a Hardware problem. Do you
need an external pullup? If you do not have one,
then the problem arises (had the same problem once).
Except if one of your peripherals actively drives
your input....

                       Cheers
                            Dimitris.
--- Stephan Linke <Stephan.Linke@epygi.de> wrote:
Hi,

on one of our boards we are using one of the I/O
pins in open drain mode. This leads to some problems
in combination with other
drivers that write to the ports data register. Since
they can not detect the current output value of the
open drain pin. They only
see the status of the I/O pin no matter who forces
the value the CPM or another device connected to the
open drain pin. After
writing back the value read from the I/O data
register this value is forced by CPM which is
normaly wrong.

Did anyone run into that problem in the past? What
was your solution? Any thing else but NOT using open
drain pins?

Thanks, Stephan


=====
------------------------------------------------------------
-Dhmhtrios Meidanis
-Degree in Mathematics, University of the Aegean.
-Master in Computer Architecture and Digital
 Systems, University of Crete.
 Greece.
------------------------------------------------------------


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help