⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 speed__cntr_8h.html

📁 使用AVR单片机控制步进电机的软件代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00082">82</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a1" doxytag="speed_cntr.h::FSPR" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define FSPR&nbsp;&nbsp;&nbsp;200          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Number of (full)steps per round on stepper motor in use. <p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00056">56</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.    </td>  </tr></table><a class="anchor" name="a10" doxytag="speed_cntr.h::RUN" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define RUN&nbsp;&nbsp;&nbsp;3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00083">83</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a7" doxytag="speed_cntr.h::STOP" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define STOP&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00080">80</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00143">speed_cntr_Init_Timer1()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a0" doxytag="speed_cntr.h::T1_FREQ" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define T1_FREQ&nbsp;&nbsp;&nbsp;460750          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Frequency of timer1 in [Hz].<p>Modify this according to frequency used. Because of the prescaler setting, the timer1 frequency is the clock frequency divided by 8. <p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00053">53</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.    </td>  </tr></table><a class="anchor" name="a4" doxytag="speed_cntr.h::T1_FREQ_148" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define T1_FREQ_148&nbsp;&nbsp;&nbsp;((int)((T1_FREQ*0.676)/100))          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00075">75</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a15" doxytag="speed_cntr.h::min" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> unsigned int min           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Find minimum value. <p>Returns the smallest value.<p><dl compact><dt><b>Returns:</b></dt><dd>Min(x,y). </dd></dl><p>Definition at line <a class="el" href="speed__cntr_8c-source.html#l00281">281</a> of file <a class="el" href="speed__cntr_8c-source.html">speed_cntr.c</a>.<p><pre class="fragment"><div>00282 {00283   <span class="keywordflow">if</span>(x &lt; y){00284     <span class="keywordflow">return</span> x;00285   }00286   <span class="keywordflow">else</span>{00287     <span class="keywordflow">return</span> y;00288   }00289 }</div></pre>    </td>  </tr></table><a class="anchor" name="a13" doxytag="speed_cntr.h::speed_cntr_Init_Timer1" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void speed_cntr_Init_Timer1           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -