Board index » delphi » serial/parallel port voltage

serial/parallel port voltage

Hi all :)

Does anyone know how to read out the voltage level of a serial or
parallel port?
I only can read out the baudrate but not the pin states and/or voltage.

Any suggestions?
Thanks!
Sander van de Merwe
vandeme...@caiw.nl

 

Re:serial/parallel port voltage


Sander van de Merwe heeft geschreven in bericht
<35FA585B.A6255...@caiw.nl>...
|Hi all :)
|
|Does anyone know how to read out the voltage level of a serial or
|parallel port?

Sure. Use a voltmeter <g>

|I only can read out the baudrate but not the pin states and/or voltage.
|

Reading the voltage levels has never been possible with UARTS.
For the data lines, you can only read one byte at a time. You can read the
state ( but, again , not the voltage level) of the 4 UART input lines :
-RI  ( Ring Indicator )
-DSR ( Data Set Ready )
-CTS ( Clear To Send  )
-DCD ( Data Carrier Detect )

See GetCommModemStatus() in WIN32-Help.

Regards,
Dirk Claessens
______________________________________________
dirk.claess...@village.ZZuunet.be
dirk.claessens...@belgium.ZZagfa.com
Mailheader was forged  to fight spam !
Use the above and remove ZZ
______________________________________________

Re:serial/parallel port voltage


Hi,
 it's about:
        0 paralell    -    0.0 V
        1 paralell    -    4.7 V
        0 serial       -     12 V
        1 serial       -    -12 V

--
**************************************************
* Jan Blaszczynski
* j...@kompit.com.pl
**************************************************

Sander van de Merwe wrote in message <35FA585B.A6255...@caiw.nl>...

Quote
>Hi all :)

>Does anyone know how to read out the voltage level of a serial or
>parallel port?
>I only can read out the baudrate but not the pin states and/or voltage.

>Any suggestions?
>Thanks!
>Sander van de Merwe
>vandeme...@caiw.nl

Other Threads