Raw write to serial or lpt port

  • Thread starter Thread starter crgmoody
  • Start date Start date
C

crgmoody

I want to set a pin on the serial port high or low, or maybe the lpt
port. I see that the serial port has 25 pins, so maybe that would be
best. Two questions:

1) Can I set all 25 pins individually to either high or low?

2) Can I do this with programming in Dotnet? I have heard that you can
do this in Visual Basic 6.

tia,

Craig Moody
 
crgmoody said:
I want to set a pin on the serial port high or low, or maybe the lpt
port. I see that the serial port has 25 pins, so maybe that would be
best. Two questions:

My serial port has only 9 pins...
1) Can I set all 25 pins individually to either high or low?

No. At least two of them are 0V/5V.
2) Can I do this with programming in Dotnet? I have heard that you can
do this in Visual Basic 6.

I've seen a sample on code-project that does something like that.
(http://www.codeproject.com/csharp/csppleds.asp)

Niki
 
Back
Top