ACK を使用して ACK ライン (LPT モードを双方向モードに設定) から割り込み (IRQ7/IRQ5) を生成することは可能ですか? 8259 のマスク ビットを設定しましたが、まだ何も設定されていません。割り込み手続きは呼び出されません。LPT からデータを読み取ることができます。
1 に答える
You give no details about what you're trying to do, or how you're trying to do it. Let me assume the following:
You're on Linux ("lpt"?)
You're using the standard OS's lpt driver (i.e. you've not written and installed your own kernel driver)
You're writing some custom app that will talk to some custom device (who knows - perhaps even a printer device ;)) over the LPT port using a parallel cable
You're writing this custom app in C (or some capable scripting language like Python or Perl)
If so, this link might be of help:
http://eagerfish.eu/lpt-programming-example-in-c-for-ubuntu-linux/