📄 pmsm_8h.html
字号:
<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define BLOCK_COMMUTATION_DUTY_MULTIPLIER 3 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The number to multiply speed input with to produce duty cycle compare value (0-255). <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00192">192</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#l01030">Timer1CaptureISR()</a>. </td> </tr></table><a class="anchor" name="a34"></a><!-- doxytag: member="PMSM.h::COMMUTATION_TICKS_STOPPED" ref="a34" 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 COMMUTATION_TICKS_STOPPED 6000 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The number of commutation 'ticks' that must pass without any hall changes before the motor is considered to be stopped.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000006">Todo:</a></b></dt><dd>Adjust the motor stopped limit. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00165">165</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#l00816">CommutationTicksUpdate()</a>. </td> </tr></table><a class="anchor" name="a2"></a><!-- doxytag: member="PMSM.h::DEAD_TIME_HALF" ref="a2" 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 DEAD_TIME_HALF 4 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>This value specifies half the dead time in number of clock cycles. Divide by frequency to get duration.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Specify the dead time. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00042">42</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#l00661">InsertDeadband()</a>. </td> </tr></table><a class="anchor" name="a26"></a><!-- doxytag: member="PMSM.h::DIRECTION_COMMAND_PIN" 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 DIRECTION_COMMAND_PIN PD2 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where direction command input is located.<p>Do not change to pin on a different PORT!<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00128">128</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#l00572">DesiredDirectionUpdate()</a>, and <a class="el" href="main_8c-source.html#l00195">PortsInit()</a>. </td> </tr></table><a class="anchor" name="a7"></a><!-- doxytag: member="PMSM.h::DIRECTION_FORWARD" ref="a7" 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 DIRECTION_FORWARD 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Forward direction flag value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00061">61</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#l00594">ActualDirectionUpdate()</a>, <a class="el" href="main_8c-source.html#l00520">BlockCommutate()</a>, <a class="el" href="main_8c-source.html#l00572">DesiredDirectionUpdate()</a>, <a class="el" href="main_8c-source.html#l00930">HallChangeISR()</a>, and <a class="el" href="main_8c-source.html#l01030">Timer1CaptureISR()</a>. </td> </tr></table><a class="anchor" name="a8"></a><!-- doxytag: member="PMSM.h::DIRECTION_REVERSE" ref="a8" 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 DIRECTION_REVERSE 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Reverse direction flag value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00064">64</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#l00594">ActualDirectionUpdate()</a>, and <a class="el" href="main_8c-source.html#l00572">DesiredDirectionUpdate()</a>. </td> </tr></table><a class="anchor" name="a9"></a><!-- doxytag: member="PMSM.h::DIRECTION_UNKNOWN" ref="a9" 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 DIRECTION_UNKNOWN 3 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Unknown direction flag value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00067">67</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#l00594">ActualDirectionUpdate()</a>, and <a class="el" href="main_8c-source.html#l00135">main()</a>. </td> </tr></table><a class="anchor" name="a29"></a><!-- doxytag: member="PMSM.h::EMERGENCY_SHUTDOWN_PIN" ref="a29" 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 EMERGENCY_SHUTDOWN_PIN PB5 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Emergency shutdown input pin<p>Do not change to pin on a different PORT!<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00146">146</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#l00290">CheckEmergencyShutdown()</a>. </td> </tr></table><a class="anchor" name="a0"></a><!-- doxytag: member="PMSM.h::FALSE" ref="a0" 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 FALSE 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>FALSE constant value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00033">33</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 PC0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where H1 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00080">80</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -