I am trying to send a pulse on on of the data pins of the parallel port in a
real-time task. This takes 2 write operations (1.4 uS each). I am looking for
a way to access the port more quickly. We have DSP boards that can write to
their I/O ports much faster (approx 80nS). Currently, I am doing the
following in each interrupt cycle:
data=data|0x01; // Change bit 0 to 1
outb(data,LPT); // Output to port
data=data&0xFE; // Change bit 0 to 0
outb(data,LPT); // Output to port
The bitwise AND and OR operations take up negligible time compared with the
'outb' commands. I am working with a 400MHz Dell Dimension XPS-R. Thank you
for any suggestions.
------------------------------------
Wes Zanardelli
Department of Electrical Engineering
Michigan State University
------------------------------------
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/