[DUG] Controlling PC Hardware Ports
Gary T. Benner
gary at benner.co.nz
Sat Oct 11 08:55:03 NZDT 2008
[Reply]
Colin,
You can use a standard serial port component ( eg. Turbopower, free on Sourceforge ) and use that to toggle the serial port RTS/CTS line.
cheers
Gary
At 15:37 on 10/10/2008 you wrote
>To : delphi at delphi.org.nz
>CC : >From: Colin/Mina, colmin at ihug.co.nz
>Content Type: text/html
>Attached: >
>This is a multi-part message in MIME format.
>
>
>
>
>Hi,
>
> I want to monitor some code to ensure that I have some timing correct. I was hoping to hook my oscilloscope to a readily available electrical signal (Such as Serial Port RTS) and to add instructions in my code to set and clear the appropriate modem port.
>
> Unfortunately the old Turbo Pascal instructions that allowed this, eg > Port[$2FC] := 2) // Set b2 of Modem Register and > Port[$2FC] := NOT 2) // Clear b2 of Modem Register >
> but these don't appear to be available in Delphi (not in D5 anyway).
>
> Any solutions please?
>
>Thanks
>
> Colin
>
>
>_______________________________________________
>NZ Borland Developers Group - Delphi mailing list
>Post: delphi at delphi.org.nz
>Admin: http://delphi.org.nz/mailman/listinfo/delphi
>Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
Ref#: 41006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20081011/358b52e8/attachment.html
More information about the Delphi
mailing list