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

📄 pmsm_8h.html

📁 ATtiny261 461 861 这份资料介绍了执行Attiny261 461 861微控制器系列正弦波驱动三相无刷直流电动机霍尔传感器。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define FALSE&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>FALSE constant value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00049">49</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.    </td>  </tr></table><a class="anchor" name="a12"></a><!-- doxytag: member="PMSM.h::H1_PIN" ref="a12" 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 H1_PIN&nbsp;&nbsp;&nbsp;PA0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where hall sensor 1 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00095">95</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#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">PortsInit()</a>.    </td>  </tr></table><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;PA1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where hall sensor 2 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00098">98</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#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">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;PA2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Pin where hall sensor 3 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00101">101</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#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">PortsInit()</a>.    </td>  </tr></table><a class="anchor" name="a15"></a><!-- doxytag: member="PMSM.h::HALL_PULL_UP_ENABLE" ref="a15" 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_PULL_UP_ENABLE&nbsp;&nbsp;&nbsp;FALSE          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Hall sensor pull-up enable. Set to TRUE to enable, FALSE to disable. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00104">104</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.    </td>  </tr></table><a class="anchor" name="a52"></a><!-- doxytag: member="PMSM.h::PID_K_D" ref="a52" 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;0          </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#_todo000008">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#l00258">258</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#l00120">main()</a>.    </td>  </tr></table><a class="anchor" name="a51"></a><!-- doxytag: member="PMSM.h::PID_K_I" ref="a51" 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;10          </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#_todo000007">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#l00253">253</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#l00120">main()</a>.    </td>  </tr></table><a class="anchor" name="a50"></a><!-- doxytag: member="PMSM.h::PID_K_P" ref="a50" 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;256          </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#_todo000006">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#l00248">248</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#l00120">main()</a>.    </td>  </tr></table><a class="anchor" name="a4"></a><!-- doxytag: member="PMSM.h::PWM1X" ref="a4" 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 PWM1X&nbsp;&nbsp;&nbsp;7          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Bit position of PWM1X flag in TCCR1B register. <p>Bit position of PWM1X flag in TCCR1B register. Included in this file becuase it was not defined in the compilers header files.<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00068">68</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#l00218">PWMInit()</a>.    </td>  </tr></table><a class="anchor" name="a26"></a><!-- doxytag: member="PMSM.h::PWM_INVERT_OUTPUT" ref="a26" 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_INVERT_OUTPUT&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Selects inversion of PWM outputs. <p>Setting this flag to "1" causes the PWM outputs from Timer/Counter1 to be inverted. Inversion happens after dead time insertion.<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00136">136</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#l00218">PWMInit()</a>.    </td>  </tr></table><a class="anchor" name="a11"></a><!-- doxytag: member="PMSM.h::PWM_PIN_MASK_PORTB" 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 PWM_PIN_MASK_PORTB&nbsp;&nbsp;&nbsp;((1 &lt;&lt; UL) | (1 &lt;&lt; UH) | (1 &lt;&lt; VL) | (1 &lt;&lt; VH) | (1 &lt;&lt; WL) | (1 &lt;&lt; WH))          </td>        </tr>      </table>    </td>

⌨️ 快捷键说明

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