I wish to ask You if it's possible to use ACK to generate interrupts (IRQ7/IRQ5) from ACK line (LPT mode set to bi-directional mode) ? I've set the mask bits of 8259, but still nothing. Interrupt procedure is not called. I am able to read data from LPT.
1 回答
0
你没有详细说明你正在尝试做什么,或者你是如何尝试做的。让我假设以下内容:
你在 Linux 上(“lpt”?)
您正在使用标准操作系统的 lpt 驱动程序(即您尚未编写和安装自己的内核驱动程序)
您正在编写一些自定义应用程序,它将使用并行电缆通过 LPT 端口与一些自定义设备(谁知道 - 甚至可能是打印机设备;))进行通信
您正在使用 C(或一些功能强大的脚本语言,如 Python 或 Perl)编写此自定义应用程序
如果是这样,此链接可能会有所帮助:
http://eagerfish.eu/lpt-programming-example-in-c-for-ubuntu-linux/
于 2012-03-11T21:49:31.130 回答