开发者

c# LPT Control all pins. Not 8

开发者 https://www.devze.com 2023-02-06 16:54 出处:网络
I can control 8 pins in LPT using inpout.dll. I want to control some LPT dev开发者_运维技巧ice but I need to use more than 8 pins.

I can control 8 pins in LPT using inpout.dll. I want to control some LPT dev开发者_运维技巧ice but I need to use more than 8 pins. How to do it?

c# LPT Control all pins. Not 8

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 it's in VB.NET but i'm sure you can figure out how to translate it ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消