从并行端口上的特定引脚读取 [英] Reading from a specific pin on parallel port
本文介绍了从并行端口上的特定引脚读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我所需要的只是读取并行端口的引脚12上的同步25ms脉冲.任何人都可以指出我如何访问c#中的单个引脚输入的方向吗?
谢谢!
解决方案
您可以阅读此
点击
点击
如果有帮助,请投票并接受答案.
单个引脚没有地址,但是您可以将输入字与二进制模式进行与"运算以确定一个引脚的值.至于监视和响应单个引脚值,而不是通过连续轮询端口来延迟应用程序的其余部分(以及整个PC),请创建一个线程来处理此问题,并在该值更改时通知您的主应用程序.
Hello
All I need is to read a synchronisation 25ms pulse on pin 12 of the parallel port. Can anyone point me to the direction of how to do access an individual pin input in c#?
thanks!
解决方案
you can read this
Click
Click
Please vote and Accept Answer if it Helped.
Individual pins do not have addresses, but you can AND the input word with a binary pattern to determine the value of just one pin. As for monitoring and responding to a single pin value, rather than delaying the rest of your app (and the entire PC) by continuously polling the port, create a thread to handle this and notify your main app when the value changes.
这篇关于从并行端口上的特定引脚读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文