<?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>Processor Expert SoftwareのトピックRe: Input Capture_LDD missing pulses</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670019#M4013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Well, I have managed to solve it but I still need some support to clarify the issue. Besides the Capture_LDD component I'm also using two TimerUnit_LDD components. Both of them set as timer counters with ISR interrupt enabled (every 1.024ms and minimal priority). Here's the TU1 and TU2 configurations:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19840i73055BE81525FBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19868i1C25656AB0F2E3D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;TU3 is referenced by the 2-channel Capture_LDD component and here's the PE configuration:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19930iE332686072295C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;As I mentioned in previous post, when the TU1 and TU2 are enabled, I observe some missing pulses on the 40ms signal period. Disabling TU1 I still observe missing pulses. But just by disabling TU2 everything goes perfect! &lt;STRONG&gt;No missing pulses are observed&lt;/STRONG&gt;. Why? Could anyone give me a hint?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;gaston&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 08:55:36 GMT</pubDate>
    <dc:creator>gschelotto</dc:creator>
    <dc:date>2017-06-06T08:55:36Z</dc:date>
    <item>
      <title>Input Capture_LDD missing pulses</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670018#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the Capture_LDD component in order to measure a 20ms signal period. Everything goes well but sometimes the CapX_OnCapture ISR misses pulses (see ISR toggling image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pic_266_1.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19825i035F9AB770267106/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic_266_1.gif" alt="pic_266_1.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the driver configuration. I use KDS 3.2.0 and the kinetis device is MKE02Z64VLH4&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="input capture issue.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19960i19EF50410BF2A787/image-size/large?v=v2&amp;amp;px=999" role="button" title="input capture issue.png" alt="input capture issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anybody help me with this issue?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 12:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670018#M4012</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2017-05-31T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture_LDD missing pulses</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670019#M4013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Well, I have managed to solve it but I still need some support to clarify the issue. Besides the Capture_LDD component I'm also using two TimerUnit_LDD components. Both of them set as timer counters with ISR interrupt enabled (every 1.024ms and minimal priority). Here's the TU1 and TU2 configurations:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19840i73055BE81525FBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19868i1C25656AB0F2E3D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;TU3 is referenced by the 2-channel Capture_LDD component and here's the PE configuration:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19930iE332686072295C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;As I mentioned in previous post, when the TU1 and TU2 are enabled, I observe some missing pulses on the 40ms signal period. Disabling TU1 I still observe missing pulses. But just by disabling TU2 everything goes perfect! &lt;STRONG&gt;No missing pulses are observed&lt;/STRONG&gt;. Why? Could anyone give me a hint?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;gaston&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 08:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670019#M4013</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2017-06-06T08:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture_LDD missing pulses</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670020#M4014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've definitely solved the issue! ...and I'll try to explain what I've done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; related to TU1/TU2 timers but &lt;SPAN style="text-decoration: underline;"&gt;is&lt;/SPAN&gt; related to the content of their IRS routines. I attach 2 KDS projects (InputCapture-Issue and InputCaptue-Ok) for better understanding of the problem.&lt;/P&gt;&lt;P&gt;On the InputCapture-Issue project I've implemented TU2_OnCounterRestart ISR with 5 GPIO outputs setts. In this case, these GPIOs are defined using PE as a GPIO_LDD group-of-bit-fields component (see next image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2017-06-23 10-53-24.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24303i5AD7F8DDFDCEDA93/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2017-06-23 10-53-24.png" alt="Screenshot from 2017-06-23 10-53-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast, on the InputCapture-Ok project the 5 GPIOs are defined as single BitIO_LDD components as shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2017-06-23 10-57-10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24355i3F7461AA7422DF6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2017-06-23 10-57-10.png" alt="Screenshot from 2017-06-23 10-57-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the InputCapture-Ok project GPIO implementation I see no missing pulses on CapX_OnCapture ISR routines. &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Obviously, I can not say the same in the case of the&lt;/SPAN&gt;&lt;/SPAN&gt; InputCapure-Issue project as I can detect missing pulses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, could anybody verify this &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;behavior&lt;/SPAN&gt;&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 09:15:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Input-Capture-LDD-missing-pulses/m-p/670020#M4014</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2017-06-23T09:15:50Z</dc:date>
    </item>
  </channel>
</rss>

