[DUG] Controlling PC Hardware Ports

Colin/Mina colmin at ihug.co.nz
Fri Oct 10 15:37:21 NZDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20081010/791c1c23/attachment.html 


More information about the Delphi mailing list