i am a software programmer in visual basic. I have not touched the hard ware programming part yet. I have devoloped an electronic circuit and trying to interface it with my software. All i need is just detect a 5volt (high signal or binary '1') on a communication port pin which would be 0 volt (low signal or binary '0') most of the time through the coding. I only know which pins is ment for which task and nothing else. Can anybody suggest me which pin to be used for the purpose and how to program ?
I believe what you want to do cannot be done, directly; you may have to cheat a little.
Learn how to use the MSComm control and check the Byte values that come in over time; you should get all '1's or all '0's and should be able to tel the difference.
Post your info on the pinouts and I can tell you more.
The MSComm control can be used to detect control signal (CTS, CD, DSR, and or RI lines) levels on any of the serial ports. Choose any (or all) unused control signal inputs. You may then trap a level change on any or all of these control signal inputs.
That looks cool - it supports Win9x and WinNTx. Although the readme says the demo version has some restrictions and a single-user liscense costs $50. I couldnt find the web-site to even register it.... Is this a demo version in this zip file?