简体   繁体   中英

c# LPT Control all pins. Not 8

I can control 8 pins in LPT using inpout.dll. I want to control some LPT device but I need to use more than 8 pins. How to do it?

例

It can be COM or NET dll. I have no idea how to control more than 8 pins.

MUX maybe?

It can help you manipulate certain amount of bits by using less bits. By using 7 of them you could use the last X to multiplex others:

6 (data) + 1 (selector) => 12 bits
5 + 2 => 20 bits
4 + 3 => 32 bits
3 + 4 => 48 bits
2 + 5 => 64 bits

But this is not a programming question anyway. You will have to attach a multiplexer and a demultiplexer on the other side.

BTW: What kind of an LPT port is this, since [LPT port has lots of pins]. 25 and not just 7 or 8. Your holes for a connector are not really related to LPT port. At least it doesn't really look like they would be. Unless they are serialized. It seems there are 4 LPT ports on your connector + enable, ground & power supply (Vcc)

http://www.codeproject.com/KB/vb/Inpout32_read.aspx它在VB.NET中,但是我确定您可以弄清楚如何翻译它;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM