<?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>Kinetis MicrocontrollersのトピックRe: We have question regarding implementation of 3-phase power metering based on FFT metering libraries. We are deciding whether to use qt timer based U-I phase shift compensation or software based. 1. Looking at AN5007 section 6.2 there is a FFT sample p</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627141#M37626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;fs=fadc/OSR&lt;/STRONG&gt;, for example: 6.144MHz/1024=&lt;STRONG&gt;6kHz&lt;/STRONG&gt; =&amp;gt; sampling interval is &lt;STRONG&gt;166usec&lt;/STRONG&gt; =&amp;gt; for 50Hz main you get &lt;STRONG&gt;120 samples&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;There should be an additional delay (FDL) for the 3-ph topology, according the &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-241747"&gt;FFT_KM3x.pdf&lt;/A&gt; document, page 20. This delay simulates the ADC-SAR conversion time (~9usec) due to not having all ADC results at one time - we have only one SAR and need three results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;METERLIBFFT3PH_InitMainBuffPhX&lt;/EM&gt; function sets the pointer to the phase shift correction buffer [0.001°] and U/I pointers to the real and imaginary buffers - see the Chapter 5.11 in &lt;A href="http://www.nxp.com/assets/documents/data/en/application-notes/AN4255.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;AN4255&lt;/A&gt;. See also simple application examples (&lt;EM&gt;meterlibfft3ph_test.c&lt;/EM&gt;) in AN4255SW associated file how to use and fill these buffers.&lt;/LI&gt;&lt;LI&gt;Phase shift correction values can be calculated using power factor (or P, Q, S values) during the calibration process - the 1st harmonic only, other harmonics are not used (0) during the calibration. See also the 1-ph application example - &lt;A href="https://www.nxp.com/webapp/Download?colCode=DRM163&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=6&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType"&gt;DRM163&lt;/A&gt; - there is applied this calibration process. You should only adopt it for your 3-ph application.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 11:53:54 GMT</pubDate>
    <dc:creator>Ludek</dc:creator>
    <dc:date>2017-01-18T11:53:54Z</dc:date>
    <item>
      <title>We have question regarding implementation of 3-phase power metering based on FFT metering libraries. We are deciding whether to use qt timer based U-I phase shift compensation or software based. 1. Looking at AN5007 section 6.2 there is a FFT sample proce</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627140#M37625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;Question regarding implementation of 3-phase power metering based on FFT metering libraries, deciding whether to use qt timer based U-I phase shift compensation or software based.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Looking at AN5007 section 6.2 there is a FFT sample process&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how to trigger SD conversion (312us interval)?&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - is there additional delay needed between SD triggering for each phase as in Figure 5.?&lt;/P&gt;&lt;OL start="2"&gt;&lt;LI&gt;In case we use software based U-I phase shift compensation&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how to fill phase-shift correction buffer for METERLIBFFT3PH_InitMainBuffPhX?&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - is it ok to calculate phase shift correction based on power factor during calibration&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; process and use same value for each harmonic in buffer?&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/MarMi"&gt;MarMi&lt;/A&gt;‌&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ludek"&gt;ludek&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 06:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627140#M37625</guid>
      <dc:creator>davidmalovrh</dc:creator>
      <dc:date>2017-01-18T06:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: We have question regarding implementation of 3-phase power metering based on FFT metering libraries. We are deciding whether to use qt timer based U-I phase shift compensation or software based. 1. Looking at AN5007 section 6.2 there is a FFT sample p</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627141#M37626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;fs=fadc/OSR&lt;/STRONG&gt;, for example: 6.144MHz/1024=&lt;STRONG&gt;6kHz&lt;/STRONG&gt; =&amp;gt; sampling interval is &lt;STRONG&gt;166usec&lt;/STRONG&gt; =&amp;gt; for 50Hz main you get &lt;STRONG&gt;120 samples&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;There should be an additional delay (FDL) for the 3-ph topology, according the &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-241747"&gt;FFT_KM3x.pdf&lt;/A&gt; document, page 20. This delay simulates the ADC-SAR conversion time (~9usec) due to not having all ADC results at one time - we have only one SAR and need three results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;METERLIBFFT3PH_InitMainBuffPhX&lt;/EM&gt; function sets the pointer to the phase shift correction buffer [0.001°] and U/I pointers to the real and imaginary buffers - see the Chapter 5.11 in &lt;A href="http://www.nxp.com/assets/documents/data/en/application-notes/AN4255.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;AN4255&lt;/A&gt;. See also simple application examples (&lt;EM&gt;meterlibfft3ph_test.c&lt;/EM&gt;) in AN4255SW associated file how to use and fill these buffers.&lt;/LI&gt;&lt;LI&gt;Phase shift correction values can be calculated using power factor (or P, Q, S values) during the calibration process - the 1st harmonic only, other harmonics are not used (0) during the calibration. See also the 1-ph application example - &lt;A href="https://www.nxp.com/webapp/Download?colCode=DRM163&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=6&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType"&gt;DRM163&lt;/A&gt; - there is applied this calibration process. You should only adopt it for your 3-ph application.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627141#M37626</guid>
      <dc:creator>Ludek</dc:creator>
      <dc:date>2017-01-18T11:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: We have question regarding implementation of 3-phase power metering based on FFT metering libraries. We are deciding whether to use qt timer based U-I phase shift compensation or software based. 1. Looking at AN5007 section 6.2 there is a FFT sample p</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627142#M37627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you might also note that if you take, for instance, 32 samples per phase, that's 96 samples total, or one every 3.75 degrees.&amp;nbsp; 120 degrees is indeed exactly a 32-sample delay.&amp;nbsp; So with these regularly-placed interleaved-samples of all three phases you get exact in-phase alignment of a binary-count of samples on each phase (convenient for FFTs of course!) --- if sample '0' is 0-degrees on phase A, sample 32 will be 0-degrees on phase B, and sample 64 will be 0 degrees on phase C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627142#M37627</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-01-18T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: We have question regarding implementation of 3-phase power metering based on FFT metering libraries. We are deciding whether to use qt timer based U-I phase shift compensation or software based. 1. Looking at AN5007 section 6.2 there is a FFT sample p</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627143#M37628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All phases (ADC results) are absolutely independent in this case. You may imagine it as three 1-ph meters, in fact. You will get three independent binary buffers. For your 32-samples example it means, that you sample input periodic signal every 11.25 degree (360/32) on each phase:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sample '0' on phase 'A' = 0degree, sample '1' on phase 'A'= 11.25degree ...... sample '31' on phase 'A' = 348.75degree&lt;/LI&gt;&lt;LI&gt;sample '0' on phase 'B' = 0degree, sample '1' on phase 'B'= 11.25degree ...... sample '31' on phase 'B' = 348.75degree&lt;/LI&gt;&lt;LI&gt;sample '0' on phase 'C' = 0degree,&amp;nbsp;sample '1' on phase 'C'= 11.25degree ..... sample '31' on phase 'C' = 348.75degree&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sample '32' = sample '0' of the next period, etc., etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:46:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-question-regarding-implementation-of-3-phase-power/m-p/627143#M37628</guid>
      <dc:creator>Ludek</dc:creator>
      <dc:date>2017-01-18T13:46:30Z</dc:date>
    </item>
  </channel>
</rss>

