<?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: AN3943 C code implementation in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873963#M52000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the attached application note where your questions are explained in detail in chapter 4.2.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2019 22:20:59 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-04-01T22:20:59Z</dc:date>
    <item>
      <title>AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873958#M51995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My customer wants us to write direct C code to implement the ATO algorithms (without drivers provided by NXP) as described in the application note AN3943, using Kinetis-V MCUs. We have to develop code using floating point and then followed by fixed point and deliver to the customer. For the first version we were trying to understand Eq-10 and 11 (Page 6). We are not very sure where does it come from and how the term pi appears in the equation? And Secondly why was forward euler chosen over tustin's approach. Can we directly code the equation (for floating point) and get desirable results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873958#M51995</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2019-03-20T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873959#M51996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pi on the equations 10 and 11 come from the sentence below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;The variables in the digital model need to be appropriately scaled to fit into the fractional range of –1 to 1&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using cos(piX) and -sin(piX) you can achieve this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your other questions, could you give me more details in how are you implementing the algorithms?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:32:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873959#M51996</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-03-27T20:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873960#M51997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have still questions regarding the coefficients K1d and K2d. Where do they come from. Why Ts and Pi get introduced into the equations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually K1 and K2 should be as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K1= w*w&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K2= 2 * zeta/w&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly the article does not mention about the link between sampling rate, quantization and the tracking rate. Should we use 16 bit ADC? Can we use lower one. What is the max tracking rate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding implementation, I tried with ANSI C compiler and the equations work out well. I haven’t tried with TI MCU. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visnhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 04:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873960#M51997</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2019-03-29T04:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873961#M51998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;K1d and K2d come from analyzing the block diagram in the digital domain. Eqn. 11 shows the equivalence you mention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your your questions, the document implements a 16 bit ADC, please refer to chapter 5.1. Tracking rate will depend on your implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 21:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873961#M51998</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-03-29T21:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873962#M51999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coefficients K1d and K2d are scaled by Ts and PI. The equation is not clear. Secondly What does it mean that tracking rate depends on “implementation”?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 04:33:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873962#M51999</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2019-04-01T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873963#M52000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the attached application note where your questions are explained in detail in chapter 4.2.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 22:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873963#M52000</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-04-01T22:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: AN3943 C code implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873964#M52001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got my queries answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 04:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AN3943-C-code-implementation/m-p/873964#M52001</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2019-04-02T04:30:52Z</dc:date>
    </item>
  </channel>
</rss>

