Reputation: 7840
Can any ony kindly explain that how we can take serial data as input from parallel port using c#. Or the serial communication through parallel port.
Upvotes: 0
Views: 869
Reputation: 1314
I really wouldn't transmit your data this way as you are heading for a world of pain. Far better to use a serial to USB IC such as the excellent ones made by FTDI. In simple terms these take your TTL serial data send it via USB. Thanks to the FTDI drivers the data appears as a virtual serial port which your program can read from in the usual way.
Hope this helps.
Ian
Upvotes: 1
Reputation: 19781
It sounds like you're doing something wrong. If you need serial input, why not use the serial port? I believe that the RS232 standard is widely supported. The parallel port is for parallel data transfers.
Upvotes: 1
Reputation: 5187
It is not clear from your question if you are looking for a software or hardware solution. AN external serial to paralell converter (hardware) provides the simpliest solution.
If you are looking for a software only solution, you want to do "bit banging". Unfortunately this requires precise timing, something which may be extremely difficult in managed code. This sort of program is typically implimented in a lower level language such as assembler or C where one has direct access to the hardware. Here is another article specifically addressing the use of the paralell port for serial communications.
Upvotes: 1