📄 pmsm_8h.html
字号:
</tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Mask of all pins used for motor control PWM outputs. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00091">91</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#l00628">DisablePWMOutputs()</a>, and <a class="el" href="main_8c-source.html#l00617">EnablePWMOutputs()</a>. </td> </tr></table><a class="anchor" name="a35"></a><!-- doxytag: member="PMSM.h::PWM_TOP_VALUE" ref="a35" 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_TOP_VALUE 0x03ff </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Top value of Timer/Counter1. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00177">177</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>, <a class="el" href="main_8c-source.html#l00278">SpeedController()</a>, and <a class="el" href="main_8c-source.html#l00965">Timer1OverflowISR()</a>. </td> </tr></table><a class="anchor" name="a30"></a><!-- doxytag: member="PMSM.h::SINE_TABLE_LENGTH" ref="a30" 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 SINE_TABLE_LENGTH 192U </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The number of elements in the sine modulation table per phase. <p>This is the number of elements in the sine modulation table used to represent the waveform for one phase. Note that this is not the same as the number of elements in the sineTable stored in flash.<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00156">156</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#l00573">AdjustSineTableIndex()</a>, and <a class="el" href="main_8c-source.html#l00559">SineTableIncrementCalculate()</a>. </td> </tr></table><a class="anchor" name="a33"></a><!-- doxytag: member="PMSM.h::SINE_TABLE_SIZE" ref="a33" 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 SINE_TABLE_SIZE SINE_TABLE_SIZE_LARGE </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sine table size. Select what sine table size should be used.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Select sine table size. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00168">168</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a31"></a><!-- doxytag: member="PMSM.h::SINE_TABLE_SIZE_LARGE" ref="a31" 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 SINE_TABLE_SIZE_LARGE 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>SINE_TABLE_SIZE value for large (3 * 192 elements) sine table. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00159">159</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a32"></a><!-- doxytag: member="PMSM.h::SINE_TABLE_SIZE_SMALL" ref="a32" 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 SINE_TABLE_SIZE_SMALL 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>SINE_TABLE_SIZE value for small (64 elements) sine table. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00162">162</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a47"></a><!-- doxytag: member="PMSM.h::SPEED_CONTROL_CLOSED_LOOP" 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 SPEED_CONTROL_CLOSED_LOOP 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Speed control selection for closed loop control. <p><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>. </td> </tr></table><a class="anchor" name="a48"></a><!-- doxytag: member="PMSM.h::SPEED_CONTROL_METHOD" 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 SPEED_CONTROL_METHOD SPEED_CONTROL_OPEN_LOOP </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of speed control. select either SPEED_CONTROL_OPEN_LOOP or SPEED_CONTROL_CLOSED_LOOP. <dl compact><dt><b><a class="el" href="todo.html#_todo000004">Todo:</a></b></dt><dd>Select speed control method. </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00237">237</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a46"></a><!-- doxytag: member="PMSM.h::SPEED_CONTROL_OPEN_LOOP" 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 SPEED_CONTROL_OPEN_LOOP 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Speed control selection for open loop control. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00228">228</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a53"></a><!-- doxytag: member="PMSM.h::SPEED_CONTROLLER_MAX_INCREMENT" ref="a53" 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 SPEED_CONTROLLER_MAX_INCREMENT 620 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The maximum increment (maximum speed) to use as setpoint when the maximum speed reference value is input.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000009">Todo:</a></b></dt><dd>Adjust maximum increment. (Maximum speed, used by speed controller) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00265">265</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#l00278">SpeedController()</a>. </td> </tr></table><a class="anchor" name="a54"></a><!-- doxytag: member="PMSM.h::SPEED_CONTROLLER_MAX_INPUT" ref="a54" 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 SPEED_CONTROLLER_MAX_INPUT 1024 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Max speed reference input. (Rounded up to closest power of 2 in this case, which is recommended to speed up division.<p><dl compact><dt><b><a class="el" href="todo.html#_todo000010">Todo:</a></b></dt><dd>Adjust Maximum speed reference input value. </dd></dl><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -