starwick
- 26th May 2011, 12:54
If <code class="vb plain">PIR1.5 = 1 </code><code class="vb keyword">Then</code> <code class="vb comments">' If receive flag then...</code>
<table><tbody><tr><td class="number"><code></code></td><td class="content"><code class="vb plain">B1 = RCREG </code><code class="vb comments">' Get received character to B1</code></td></tr></tbody></table>
<table><tbody><tr><td class="number"><code></code></td><td class="content"><code class="spaces"> </code><code class="vb keyword">Endif</code>
<code class="vb keyword"></code>
<code class="vb keyword">The above code is from melabs sample programs.</code>
<code class="vb keyword">does PIR1.5 clear automatically after B1=RCREG? It's read only???</code>
<code class="vb keyword"></code>
<code class="vb keyword">The way i understand the above code is that PIR1.5 will go high when a validte data is rec'd in RX but how does PIR1.5 clear is it after reading the RC register?</code>
</td></tr></tbody></table>
<table><tbody><tr><td class="number"><code></code></td><td class="content"><code class="vb plain">B1 = RCREG </code><code class="vb comments">' Get received character to B1</code></td></tr></tbody></table>
<table><tbody><tr><td class="number"><code></code></td><td class="content"><code class="spaces"> </code><code class="vb keyword">Endif</code>
<code class="vb keyword"></code>
<code class="vb keyword">The above code is from melabs sample programs.</code>
<code class="vb keyword">does PIR1.5 clear automatically after B1=RCREG? It's read only???</code>
<code class="vb keyword"></code>
<code class="vb keyword">The way i understand the above code is that PIR1.5 will go high when a validte data is rec'd in RX but how does PIR1.5 clear is it after reading the RC register?</code>
</td></tr></tbody></table>