[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: problem reading parallel port



Hi,

The direction of the port is probably wrong. The oe bit in the
R_PAR0_CTRL_DATA register selects the direction for the port.
You can find example code in elinux/drivers/char/etrax100pardata.c
in the 2.0 based elinux releases.

The following mail thread may also be of interest if the suggestions
above doesn't solve your problem:

http://mhonarc.axis.se/dev-etrax/msg00774.html

Regards
/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
Behalf Of Thomas Hutterer
Sent: Friday, September 07, 2001 12:23 AM
To: dev-etrax
Subject: problem reading parallel port


Hello!

I have an ETRAX 100LX with devboard R 2_0_0.

Im writing a device driver for reading the parallel port in user mode. 
If I read the port with:

val = (*R_PAR0_STATUS_DATA) & 0xff;

val always contains 0. All other bits a set correctly. Only the data 
bits are 0.

can you please help me.

thx
	Thomas

-- 
Thomas Hutterer
e-mail: Thomas.Hutterer@xxxxxxx.at