<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AMMCLIB for S32K14xx in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/AMMCLIB-for-S32K14xx/m-p/1606908#M8035</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the equation&amp;nbsp;AMCLIB_BemfObsrvDQ_Eq2 corresponds to the implemented observer structure which intentionally presumes that the phase error between the estimated quasi-synchronous frame gamma/delta and the synchronous rotor flux frame d/q is zero. If we assume that the feedback loop has converged to a steady state, the function will return zero angle theta_err, the term ed(n) in the AMCLIB_BemfObsrvDQ_Eq2 will be zero, and the term eq(n) will be proportional to the magnitude of the induced back-electromotive force.&amp;nbsp;If, however, the two reference frames are not aligned (e.g. during a transient), the PI controllers will attempt to compensate the alignment error by increasing/decreasing ed(n)/eq(n) and the function will return non-zero value&amp;nbsp;theta_err. The return value theta_err of the BEMF observer function is the only output that is needed for the feedback loop and can be used as an input for the angle tracking observer (AMCLIB_TrackObsrv). Outputs ed(n) and eq(n) (which are provided in the structure&amp;nbsp;pEObsrv) can be used for debugging purposes or to detect fault states.&lt;/P&gt;
&lt;P&gt;Function&amp;nbsp;&lt;SPAN&gt;AMCLIB_BemfObsrvDQSetState is explained in the AMMCLib 1.1.31 User's Guide in the chapter 2.2.7.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you are interested in obtaining the source code of AMMCLib, please contact the NXP sales by clicking the "Buy from NXP" button in the &lt;A href="https://www.nxp.com/design/development-boards/motor-control-development-solutions/automotive-math-and-motor-control-library-ammclib:AMMCLIB#LCA" target="_self"&gt;AMMCLib Offerings Table&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 14:21:05 GMT</pubDate>
    <dc:creator>petrz_</dc:creator>
    <dc:date>2023-02-28T14:21:05Z</dc:date>
    <item>
      <title>AMMCLIB for S32K14xx</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/AMMCLIB-for-S32K14xx/m-p/1581258#M7984</link>
      <description>&lt;P&gt;Dear NXPS:&lt;/P&gt;&lt;P&gt;Recently, I was reading the S32K14XMCLUG and using the AMMCLIB to control PMSM. I used the function AMCLIB_BemfObsrvDQ. I am a little confused about this function. According to the structure diagram in the document, it is composed of two PIrAW controllers. Can I understand that ed (n) and eq (n) in the formula in the attachment are the output of this function? There is also the AMCLIB_BemfObsrvDQSetState. Because it is not recorded in the document, I don't know how to use it. Finally, if I want to view or modify the source code of the AMMCLIB, what do I need to do?&lt;/P&gt;&lt;P&gt;Thanks！&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 01:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/AMMCLIB-for-S32K14xx/m-p/1581258#M7984</guid>
      <dc:creator>zhouwenxiang</dc:creator>
      <dc:date>2023-01-12T01:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: AMMCLIB for S32K14xx</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/AMMCLIB-for-S32K14xx/m-p/1606908#M8035</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the equation&amp;nbsp;AMCLIB_BemfObsrvDQ_Eq2 corresponds to the implemented observer structure which intentionally presumes that the phase error between the estimated quasi-synchronous frame gamma/delta and the synchronous rotor flux frame d/q is zero. If we assume that the feedback loop has converged to a steady state, the function will return zero angle theta_err, the term ed(n) in the AMCLIB_BemfObsrvDQ_Eq2 will be zero, and the term eq(n) will be proportional to the magnitude of the induced back-electromotive force.&amp;nbsp;If, however, the two reference frames are not aligned (e.g. during a transient), the PI controllers will attempt to compensate the alignment error by increasing/decreasing ed(n)/eq(n) and the function will return non-zero value&amp;nbsp;theta_err. The return value theta_err of the BEMF observer function is the only output that is needed for the feedback loop and can be used as an input for the angle tracking observer (AMCLIB_TrackObsrv). Outputs ed(n) and eq(n) (which are provided in the structure&amp;nbsp;pEObsrv) can be used for debugging purposes or to detect fault states.&lt;/P&gt;
&lt;P&gt;Function&amp;nbsp;&lt;SPAN&gt;AMCLIB_BemfObsrvDQSetState is explained in the AMMCLib 1.1.31 User's Guide in the chapter 2.2.7.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you are interested in obtaining the source code of AMMCLib, please contact the NXP sales by clicking the "Buy from NXP" button in the &lt;A href="https://www.nxp.com/design/development-boards/motor-control-development-solutions/automotive-math-and-motor-control-library-ammclib:AMMCLIB#LCA" target="_self"&gt;AMMCLib Offerings Table&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 14:21:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/AMMCLIB-for-S32K14xx/m-p/1606908#M8035</guid>
      <dc:creator>petrz_</dc:creator>
      <dc:date>2023-02-28T14:21:05Z</dc:date>
    </item>
  </channel>
</rss>

