定时器配置问题

2019-11-25 15:31发布

<p><br></p><pre style="max-width:100%;overflow-x:auto;"><code class="cpp hljs" codemark="1"><span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">timer2_init</span><span class="hljs-params">(<span class="hljs-keyword">void</span>)</span><span class="hljs-comment">//初始化定时器2</span> </span>{ CKCON&amp;=<span class="hljs-number">0x00</span>; TMR2RLH = <span class="hljs-number">0x07</span>; TMR2RLL = <span class="hljs-number">0xf8</span>; TMR2CN =<span class="hljs-number">0x2f</span> ; PT2 = <span class="hljs-number">1</span>; <span class="hljs-comment">//高优先级</span> ET2 = <span class="hljs-number">1</span>; TR2 = <span class="hljs-number">1</span>; TF2H =<span class="hljs-number">0</span>; }</code></pre><br> <font face="微软雅黑">&nbsp; &nbsp; 我的应用;</font><font face="微软雅黑"><span class="relatedlink">芯片</span><span class="relatedlink">c8051f</span>350,这个定时器2配置哪里有问题啊,现在没有作用</font><br> <p><br></p>
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。