<?xml version="1.0" encoding="windows-1252"?>
<node id="1011921" title="Re^2: Need to detect continuity between 2 terminals" created="2013-01-06 16:35:58" updated="2013-01-06 16:35:58">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;Those are data communication ports and not general input/output pins &lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;I beg to differ. From the perspective of the code, a parallel port is just a set of 3 registers -- 1x8-bit (data), 1x5-bit(status), 1x4bit(control) -- that can be read and written using the appropriate (INx/OUTx) instructions. 

&lt;p&gt;On modern OSs these are privileged instructions, so you do need a device driver that exposes them to application code, but given that access, when the data port is read, any of the data pins (2-9 on a db25 plug) held high will be 1; with those held low as 0.

&lt;p&gt;With an appropriate device driver, this is easily programmed under windows (I've done it). And I read on [http://en.wikipedia.org/wiki/Parallel_port|wikipedia] that &lt;i&gt;"On Linux, inb() and outb() can be used when a process is run as root and an ioperm() command is used to allow access to its base address; alternatively, ppdev allows shared access and can be used from userspace if the appropriate permissions are set."&lt;/i&gt;.




&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1011907</field>
<field name="parent_node">
1011918</field>
</data>
</node>
