[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: using parapin freeware on etrax100lx
I'm considering using the PAR0 registers directly. Basically, I need the
data pins (i/o), the strobe (as output), and the select line (as output).
Looking at the Designer's reference(chapter 19), I'm not sure the proper
method to switch the data buffers from input to output. The "oe" bit on the
R_PAR0_CTRL_DATA register claims to enable/disable data buffer output. Does
this also disable/enable the data buffer for input? If not, what is the
propoer method (without using interrupts)?
Also, I need to know how to toggle the seli (p0selectin bit) - the
description is unclear whether I need to also invert the signal (using the
R_PAR0_CONFIG iseli bit 24); or can I just write a 0 to the seli bit.
Behalf Of Mikael Starvik
Sent: Tuesday, November 19, 2002 10:06 AM
To: 'Dave Rovner'; dev-etrax
Subject: RE: using parapin freeware on etrax100lx
ETRAX does not have I/O mapped devices like e.g. i386 and hence
no inb/outb. The latest version of the gpio driver
(arch/cris/drivers/gpio) lets you manipulate parallel port pins
with ioctls. The parallel port driver framework may also have
som application to do this but I am not sure about that.
Behalf Of Dave Rovner
Sent: Tuesday, November 19, 2002 12:19 PM
Subject: using parapin freeware on etrax100lx
I am porting a linux application which uses the parapin freeware (controls
parallel port pins individually as i/o) to the etrax100lx. In order to
compile using cris, I need inb() and outb() functions, put I can't find
them, or the headers that include the prototypes. Any help with this, or
other suggestion on using a different method to control the parallel port
i/o pins. Prefer to use the current parapin code to minimize time.