📄 porttest.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PortTest Delphi I/O for NT Test Program</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" cellpadding="4" width="100%">
<tr>
<td width="50%"> <a href="http://www.wideman-one.com/"><img src="logo_small.gif" alt="wideman-one" border="0" align="top" WIDTH="164" HEIGHT="22"></a><em><small><small> </small></small><br>
<small><small>Last edit: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%y-%m-%d" startspan -->98-06-18<!--webbot bot="Timestamp" endspan i-checksum="13341" --> Graham Wideman</small></small></em></td>
<td width="50%" valign="top" align="right"><h3 align="right">Delphi</h3>
</td>
</tr>
</table>
<table border="1" cellpadding="2" width="100%">
<tr>
<td><big><big><strong>PortTest: Test and Demo Program for Delphi I/O for NT</strong></big></big><br>
<em><small><small>Article created: 98-06-01</small></small><br>
<small><small>Minor edits: 98-06-18</small></small> </em></td>
</tr>
</table>
<h3>Main Form</h3>
<p>To get started, follow the blue-outlined steps. (You can skip 1 and 2 if you
install the gwiopm.sys driver by some other means.) </p>
<p><img src="PortTest_Main.gif" alt="PortTest_Main.gif (16772 bytes)" WIDTH="516" HEIGHT="492"></p>
<p>At clean-up time, you can follow the red-outlined steps. However, it's
interesting to observe what happens if you don't uninstall the driver. Next time you
start up, that driver is still installed, and still retains the port map as you last left
it (as you can verify by using the IOPM form's readback function).</p>
<hr>
<h3>I/O Permissions Map Form</h3>
<p>Use this form to set up a permissions map, and then pass it to the NT kernel.
Setting a bit to zero enables I/O (after the driver passes the map to the kernel).</p>
<p><img src="PortTest_IOPM.gif" alt="PortTest_IOPM.gif (22496 bytes)" WIDTH="472" HEIGHT="573"></p>
<hr>
<h3>I/O Ports Form</h3>
<p>Use this form to manipulate I/O ports.</p>
<p><img src="PortTest_Ports.gif" alt="PortTest_Ports.gif (17585 bytes)" WIDTH="540" HEIGHT="422"></p>
<hr>
<h3>Canned Tests</h3>
<p>In both cases, you will need to load the gwiopm driver, start it and open the device
before these test will succeed. Also note that after you have clicked the
"Enable Ports" button, these dialogs will update the driver's and kernel's maps,
which the main IOPM window will not reflect. To sync the IOPM window's view, hit its
"Readback" button. </p>
<p><img src="PortTest_Spkr.gif" alt="PortTest_Spkr.gif (3703 bytes)" WIDTH="368" HEIGHT="179"></p>
<p>The PC Speaker test exercises ports on most PC motherboards that control a
timer/counter that's used to send pulses to the built-in speaker. On some PCs you may not
hear the result if a sound card is installed in a manner that defeats the speaker. Note
that while testing, setting a low frequency (like 10 Hz) reduces annoyance to office mates
or family members (though they may wonder what you ate for lunch...).</p>
<p><img src="PortTest_VSync.gif" alt="PortTest_VSync.gif (3939 bytes)" WIDTH="369" HEIGHT="186"></p>
<p>The VSync test polls and counts the "Vertical Sync Interrupt Pending" bit on
most VGA-compatible cards for a precisely-timed 1 second. This video system was running at
70 frames per second. (Note: this example demos the technique of reading the vsync
interrupt-pending bit... but for other uses it may be a little more complicated than it
seems here, as the OS also may be looking at this bit and clearing it behind the scenes.
In this example we get away with it because we hog the CPU.)</p>
<hr>
<p><em>Go to:</em> <a href="http://www.wideman-one.com/"><img src="logo_small.gif" alt="wideman-one" border="0" align="top" WIDTH="164" HEIGHT="22"></a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -