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

📄 pmsm_8h.html

📁 Atmel算法(pid)-步进电机驱动源码 HOWTO,不好用你找我,绝对ok!
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a class="anchor" name="a13"></a><!-- doxytag: member="PMSM.h::H2_PIN" ref="a13" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define H2_PIN&nbsp;&nbsp;&nbsp;PC1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where H2 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00083">83</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00556">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00195">PortsInit()</a>.    </td>  </tr></table><a class="anchor" name="a14"></a><!-- doxytag: member="PMSM.h::H3_PIN" ref="a14" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define H3_PIN&nbsp;&nbsp;&nbsp;PC2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where H3 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00086">86</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00556">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00195">PortsInit()</a>.    </td>  </tr></table><a class="anchor" name="a11"></a><!-- doxytag: member="PMSM.h::HALL_PIN" ref="a11" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define HALL_PIN&nbsp;&nbsp;&nbsp;PINC          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>PIN register for Hall sensor input. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00077">77</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.    </td>  </tr></table><a class="anchor" name="a10"></a><!-- doxytag: member="PMSM.h::HALL_PULLUP_ENABLE" ref="a10" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define HALL_PULLUP_ENABLE&nbsp;&nbsp;&nbsp;FALSE          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Uncomment this to disable internal pullup resistors on hall sensor inputs.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000004">Todo:</a></b></dt><dd>Select whether internal pull-ups on hall sensor inputs should be enabled. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00074">74</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.    </td>  </tr></table><a class="anchor" name="a48"></a><!-- doxytag: member="PMSM.h::PID_K_D" ref="a48" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define PID_K_D&nbsp;&nbsp;&nbsp;10          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>PID controller derivative gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000014">Todo:</a></b></dt><dd>Adjust PID controller derivative gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00231">231</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00135">main()</a>.    </td>  </tr></table><a class="anchor" name="a47"></a><!-- doxytag: member="PMSM.h::PID_K_I" ref="a47" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define PID_K_I&nbsp;&nbsp;&nbsp;5          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>PID controller integral gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000013">Todo:</a></b></dt><dd>Adjust PID controller integral gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00226">226</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00135">main()</a>.    </td>  </tr></table><a class="anchor" name="a46"></a><!-- doxytag: member="PMSM.h::PID_K_P" ref="a46" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define PID_K_P&nbsp;&nbsp;&nbsp;50          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>PID controller proportional gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000012">Todo:</a></b></dt><dd>Adjust PID controller proportional gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00221">221</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00135">main()</a>.    </td>  </tr></table><a class="anchor" name="a5"></a><!-- doxytag: member="PMSM.h::PWM_PATTERN_PORTB" ref="a5" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define PWM_PATTERN_PORTB&nbsp;&nbsp;&nbsp;((1 &lt;&lt; PB1) | (1 &lt;&lt; PB2) | (1 &lt;&lt; PB3))          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Bit pattern of PWM pins placed on PORTB. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00055">55</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00800">DisablePWMOutputs()</a>, and <a class="el" href="main_8c-source.html#l00786">EnablePWMOutputs()</a>.    </td>  </tr></table><a class="anchor" name="a6"></a><!-- doxytag: member="PMSM.h::PWM_PATTERN_PORTD" ref="a6" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define PWM_PATTERN_PORTD&nbsp;&nbsp;&nbsp;((1 &lt;&lt; PD3) | (1 &lt;&lt; PD5) | (1 &lt;&lt; PD6))          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Bit pattern of PWM pins placed on PORTD. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00058">58</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00800">DisablePWMOutputs()</a>, and <a class="el" href="main_8c-source.html#l00786">EnablePWMOutputs()</a>.    </td>  </tr></table><a class="anchor" name="a27"></a><!-- doxytag: member="PMSM.h::REV_ROTATION_PIN" ref="a27" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define REV_ROTATION_PIN&nbsp;&nbsp;&nbsp;PD4          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where reverse rotation signal output is located.<p>Do not change to pin on a different PORT!<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00134">134</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00195">PortsInit()</a>, and <a class="el" href="main_8c-source.html#l00633">ReverseRotationSignalUpdate()</a>.    </td>  </tr></table>

⌨️ 快捷键说明

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