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

📄 pmsmtables_8h.html

📁 Atmel算法(pid)-步进电机驱动源码 HOWTO,不好用你找我,绝对ok!
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>AVR447: Sine wave driving of three phase motor: PMSMtables.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.4 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><h1>PMSMtables.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>Motor control tables. <p>This file contains the table definitions used for motor control.<p><dl compact><dt><b>Application note:</b></dt><dd>AVR447: Sinusoidal driving of three-phase permanent motor using ATmega48/88/168</dd></dl><dl compact><dt><b>Documentation</b></dt><dd>For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html</dd></dl><dl compact><dt><b>Author:</b></dt><dd>Atmel Corporation: <a href="http://www.atmel.com">http://www.atmel.com</a> <br> Support email: <a href="mailto:avr@atmel.com">avr@atmel.com</a></dd></dl><dl compact><dt><b>Name</b></dt><dd>RELEASE_1_0 </dd></dl><dl compact><dt><b>Revision</b></dt><dd>1.4 </dd></dl><dl compact><dt><b>RCSfile</b></dt><dd><a class="el" href="PMSMtables_8h.html">PMSMtables.h</a>,v </dd></dl><dl compact><dt><b>Date</b></dt><dd>2006/03/16 11:57:20 </dd></dl><br><p>Definition in file <a class="el" href="PMSMtables_8h-source.html">PMSMtables.h</a>.<p><p>This graph shows which files directly or indirectly include this file:<p><center><img src="PMSMtables_8h__dep__incl.png" border="0" usemap="#PMSMtables.hdep_map" alt=""></center><map name="PMSMtables.hdep_map"><area href="main_8c.html" shape="rect" coords="164,5,225,32" alt=""></map><p><a href="PMSMtables_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Variables</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a2">blockCommutationTableForward</a> [16]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block commutation port direction masks, forward driving.  <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a3">blockCommutationTableReverse</a> [16]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block commutation port direction masks, reverse driving.  <a href="#a3"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a58">uint16_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a6">CSOffsetsForward</a> [8]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sine table offset values corresponding to hall sensor values when running in the forward direction.  <a href="#a6"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a58">uint16_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a7">CSOffsetsReverse</a> [8]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sine table offset values corresponding to hall sensor values when running in the reverse direction.  <a href="#a7"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a58">uint16_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a1">divisionTable</a> [256]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Divistion table used to obtain sine table increment without performing a division at high motor speed.  <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a4">expectedHallSequenceForward</a> [7]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Table of next expected hall sensor value when running forward.  <a href="#a4"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a5">expectedHallSequenceReverse</a> [7]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Table of next expected hall sensor value when running in the reverse direction.  <a href="#a5"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PMSMtables_8h.html#a0">sineTable</a> [SINE_TABLE_LENGTH *3]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sine wave modulation table.  <a href="#a0"></a><br></td></tr></table><hr><h2>Variable Documentation</h2><a class="anchor" name="a2"></a><!-- doxytag: member="PMSMtables.h::blockCommutationTableForward" ref="a2" args="[16]" --><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">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a> <a class="el" href="PMSMtables_8h.html#a2">blockCommutationTableForward</a>[16]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Initial value:</b><div class="fragment"><pre class="fragment">{  0,                          0,  (1 &lt;&lt; PB3),                 (1 &lt;&lt; PD5),                   (1 &lt;&lt; PB2),                 (1 &lt;&lt; PD6),                   ((1 &lt;&lt; PB2) | (1 &lt;&lt; PB3)),  0x00,                         (1 &lt;&lt; PB1),                 (1 &lt;&lt; PD3),                   (1 &lt;&lt; PB1),                 (1 &lt;&lt; PD5),                   0x00,                       ((1 &lt;&lt; PD6) | (1 &lt;&lt; PD3)),    0,  0}</pre></div>Block commutation port direction masks, forward driving. <p>This array contains port direction masks for block commutation when running in the forward direction.<p>Definition at line <a class="el" href="PMSMtables_8h-source.html#l00503">503</a> of file <a class="el" href="PMSMtables_8h-source.html">PMSMtables.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00520">BlockCommutate()</a>.    </td>  </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="PMSMtables.h::blockCommutationTableReverse" ref="a3" args="[16]" --><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">__flash const <a class="el" href="stdint_8h.html#a56">uint8_t</a> <a class="el" href="PMSMtables_8h.html#a3">blockCommutationTableReverse</a>[16]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Initial value:</b><div class="fragment"><pre class="fragment">{  0,  0,  0x00,                       ((1 &lt;&lt; PD6) | (1 &lt;&lt; PD3)),    (1 &lt;&lt; PB1),                 (1 &lt;&lt; PD5),                   (1 &lt;&lt; PB1),                 (1 &lt;&lt; PD3),                   ((1 &lt;&lt; PB2) | (1 &lt;&lt; PB3)),  0x00,                         (1 &lt;&lt; PB2),                 (1 &lt;&lt; PD6),                   (1 &lt;&lt; PB3),                 (1 &lt;&lt; PD5),                   0,  0}</pre></div>Block commutation port direction masks, reverse driving. <p>This array contains port direction masks for block commutation when running in the reverse direction.<p>Definition at line <a class="el" href="PMSMtables_8h-source.html#l00521">521</a> of file <a class="el" href="PMSMtables_8h-source.html">PMSMtables.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00520">BlockCommutate()</a>.    </td>  </tr></table><a class="anchor" name="a6"></a><!-- doxytag: member="PMSMtables.h::CSOffsetsForward" ref="a6" args="[8]" --><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">__flash const <a class="el" href="stdint_8h.html#a58">uint16_t</a> <a class="el" href="PMSMtables_8h.html#a6">CSOffsetsForward</a>[8]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><b>Initial value:</b><div class="fragment"><pre class="fragment">{  0,  5 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  1 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  0 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  3 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  4 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  2 * (<a class="code" href="PMSM_8h.html#a3">SINE_TABLE_LENGTH</a> / 6),  0}</pre></div>Sine table offset values corresponding to hall sensor values when running in the forward direction. <p>This array contains the sine table offset that corresponds to the hall sensor values when running in the forward direction. At the moment of a hall change, using the new hall sensor value as index into this table returns the sine table offset that will synchronize the generated sine waves to the back-EMF of the motor.<p>

⌨️ 快捷键说明

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