/div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="fragment"><div class="line">X = INPORTW(port)</div>
</div><!-- fragment --><p>Reads a <b>16-bit word</b> from <code>port</code> and returns it (0–65535).</p>
<dl class="section note"><dt>Note</dt><dd>Only use when the device expects <b>word</b> access.</dd></dl>
<hr  />
<h3><a class="anchor" id="autotoc_md75"></a>
How to read it</h3>
<ul>
<li>Reads two consecutive bytes from the port as a word.</li>
<li>Common for 