<?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>MPC5xxxのトピックRe: ETPU Spark Function Accuracy Problem</title>
    <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016669#M15239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mikail merhaba,&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;I checked your suggestion its correct with a minor mistake.&amp;nbsp;Positive values precede the TDC, negative go after TDC, therefore -340 or 20 degree end angle sets correct. My mistake was that I was testing the crank and spark functions with very high RPM value (ex. 40000). When I checked the software with the real upper limit RPM, the spark output is fine as I expected. Thank you again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;tsSingleSparkConfig g_s&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;SingleSparkConfig1 =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;DEG2TRC2(20), //spark end angle: p&lt;SPAN style="color: #3d3d3d;"&gt;ositive values precede the TDC, negative go after TDC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Turgay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 11:45:58 GMT</pubDate>
    <dc:creator>turgay_kale</dc:creator>
    <dc:date>2019-11-22T11:45:58Z</dc:date>
    <item>
      <title>ETPU Spark Function Accuracy Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016667#M15237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working&amp;nbsp;with M&lt;SPAN&gt;PC5644A/&lt;/SPAN&gt;SPC5644A MCU and the spark function of NXP's engine control library. The problem is that, I can not maintain the spark end angle and dwell time correctly (as below, I am expecting a zero value spark end angle). Are these effects normal or something is wrong in spark function of NXP's engine control library ?&amp;nbsp;Would you please share your suggestion for that problem?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building sw for 2-stroke engine (thus engine cycle is 360 degree) with 35-1 crank teeth. My engine system configuration is as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82068i03BED6CC068CAD4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API configuration for spark function is as below (I am not using multi pulses);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/93889i0D90E44AE6369E95/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked the pre-compiled etpu set in the new etpu function selector utility as below, and the effect was the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink1" href="https://www.nxp.com/webapp/etpu_cw/" title="https://www.nxp.com/webapp/etpu_cw/"&gt;https://www.nxp.com/webapp/etpu_cw/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outputs for crank (in green) and spark (in yellow) signals are as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86443i323FDD783A7A0F1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87307i4ACC110DBB65DA96/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87691iB0E6C87BF08D54AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help !&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Turgay Kale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 10:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016667#M15237</guid>
      <dc:creator>turgay_kale</dc:creator>
      <dc:date>2019-11-20T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: ETPU Spark Function Accuracy Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016668#M15238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Turgay,&lt;/P&gt;&lt;P&gt;I think problem is about setting end angle. Last teeth before gap is not equal to ange of 0. Angle of this point is 360/36 *34 = 340.&lt;/P&gt;&lt;P&gt;Angle of 0 is first falling edge after gap. You can see this at&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4907.pdf" title="https://www.nxp.com/docs/en/application-note/AN4907.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4907.pdf&lt;/A&gt;&amp;nbsp; document on page 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you change spark configuration as&lt;/P&gt;&lt;P&gt;tsSingleSparkConfig g_s&lt;SPAN&gt;SingleSparkConfig1 = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEG2TRC2(340), //end angle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problem will solve. Spark will work as you expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 05:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016668#M15238</guid>
      <dc:creator>mikailaltintas</dc:creator>
      <dc:date>2019-11-22T05:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: ETPU Spark Function Accuracy Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016669#M15239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mikail merhaba,&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;I checked your suggestion its correct with a minor mistake.&amp;nbsp;Positive values precede the TDC, negative go after TDC, therefore -340 or 20 degree end angle sets correct. My mistake was that I was testing the crank and spark functions with very high RPM value (ex. 40000). When I checked the software with the real upper limit RPM, the spark output is fine as I expected. Thank you again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;tsSingleSparkConfig g_s&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;SingleSparkConfig1 =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;DEG2TRC2(20), //spark end angle: p&lt;SPAN style="color: #3d3d3d;"&gt;ositive values precede the TDC, negative go after TDC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Turgay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 11:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Spark-Function-Accuracy-Problem/m-p/1016669#M15239</guid>
      <dc:creator>turgay_kale</dc:creator>
      <dc:date>2019-11-22T11:45:58Z</dc:date>
    </item>
  </channel>
</rss>

