<pre style="max-width: 100%;"><code class="cpp hljs" codemark="1">
<span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> uint unsigned int</span>
<span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">binter</span><span class="hljs-params">()</span></span>;
{
binter();
<span class="hljs-keyword">while</span>(<span class="hljs-number">1</span>)
IF(TR0==<span class="hljs-number">1</span>)
<span class="hljs-keyword">if</span>(i==<span class="hljs-number">10</span>)
i=<span class="hljs-number">0</span>;
}
}
{
ET0=<span class="hljs-number">1</span>;
TH0=(<span class="hljs-number">65536</span><span class="hljs-number">-50000</span>)/<span class="hljs-number">256</span>;
TMOD=<span class="hljs-number">0x01</span>;
<span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">t50ms</span><span class="hljs-params">()</span>
interrupt 1
TH0</span>=(<span class="hljs-number">65536</span><span class="hljs-number">-50000</span>)/<span class="hljs-number">256</span>; <span class="hljs-comment">//i++;}</span></code></pre>
<p><br></p>
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>