📄 pmsm_8h.html
字号:
</table><a class="anchor" name="a36"></a><!-- doxytag: member="PMSM.h::COMMUTATION_TICKS_STOPPED" ref="a36" 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#_todo000002">Todo:</a></b></dt><dd>Adjust the motor stopped limit. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00185">185</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#l00643">CommutationTicksUpdate()</a>. </td> </tr></table><a class="anchor" name="a23"></a><!-- doxytag: member="PMSM.h::COMPARE_REGISTER_PHASE_U" ref="a23" 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 COMPARE_REGISTER_PHASE_U OCR1A </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Output compare register for phase U. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00122">122</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#l00750">SineOutputUpdate()</a>. </td> </tr></table><a class="anchor" name="a24"></a><!-- doxytag: member="PMSM.h::COMPARE_REGISTER_PHASE_V" ref="a24" 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 COMPARE_REGISTER_PHASE_V OCR1B </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Output compare register for phase V. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00125">125</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#l00750">SineOutputUpdate()</a>. </td> </tr></table><a class="anchor" name="a25"></a><!-- doxytag: member="PMSM.h::COMPARE_REGISTER_PHASE_W" ref="a25" 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 COMPARE_REGISTER_PHASE_W OCR1D </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Output compare register for phase W. <p><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#l00750">SineOutputUpdate()</a>. </td> </tr></table><a class="anchor" name="a2"></a><!-- doxytag: member="PMSM.h::CPU_FREQUENCY" 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 CPU_FREQUENCY 16000000UL </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>CPU clock frequency. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00056">56</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="PMSM.h::DEAD_TIME" ref="a3" 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 10 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Dead time (Timer/counter1 clock cycles). <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00059">59</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="a27"></a><!-- doxytag: member="PMSM.h::DIRECTION_FORWARD" 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 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#l00141">141</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#l00522">ActualDirectionUpdate()</a>, <a class="el" href="main_8c-source.html#l00455">BlockCommutate()</a>, <a class="el" href="main_8c-source.html#l00500">DesiredDirectionUpdate()</a>, <a class="el" href="main_8c-source.html#l00888">HallChangeISR()</a>, and <a class="el" href="main_8c-source.html#l00750">SineOutputUpdate()</a>. </td> </tr></table><a class="anchor" name="a16"></a><!-- doxytag: member="PMSM.h::DIRECTION_PIN" ref="a16" 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_PIN PA3 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where direction input signal is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00109">109</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#l00500">DesiredDirectionUpdate()</a>. </td> </tr></table><a class="anchor" name="a28"></a><!-- doxytag: member="PMSM.h::DIRECTION_REVERSE" ref="a28" 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#l00144">144</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#l00522">ActualDirectionUpdate()</a>, and <a class="el" href="main_8c-source.html#l00500">DesiredDirectionUpdate()</a>. </td> </tr></table><a class="anchor" name="a29"></a><!-- doxytag: member="PMSM.h::DIRECTION_UNKNOWN" 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 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#l00147">147</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#l00522">ActualDirectionUpdate()</a>, <a class="el" href="main_8c-source.html#l00120">main()</a>, and <a class="el" href="main_8c-source.html#l00965">Timer1OverflowISR()</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">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -