<?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>S32K中的主题 Re: IC_PAL usage</title>
    <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1270761#M10745</link>
    <description>&lt;P&gt;Robin,&lt;/P&gt;&lt;P&gt;Not sure I can catch your explanations.&lt;/P&gt;&lt;P&gt;Here I used an empty callback like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void ic_pal1_cb(ic_event_t ev, void*p){
}&lt;/LI-CODE&gt;&lt;P&gt;and referred to it in ProcessorExpert's configuration for FTM1 channel#0. With this callback and "timer overflow interrupt" optioin enabled, I still get the strange behavior as described above.&lt;/P&gt;&lt;P&gt;I am wondering if this is the right way to handle the timer overflow interrupt? I assume the callback is called from an ISR defined by the IC_PAL driver which shall manage the ISR flags correctly...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 08:48:28 GMT</pubDate>
    <dc:creator>yfliu</dc:creator>
    <dc:date>2021-04-30T08:48:28Z</dc:date>
    <item>
      <title>IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1262460#M10565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying IC_PAL module of S32SDK with S32K144 MCU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having difficulties:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Continuous Measurement flag can't be checked in Processor Expert. I am wondering the IC feature is one-shot if this flag is not checked. Which is not what I want.&lt;/LI&gt;&lt;LI&gt;There seems no call back for counter overflow event. But I need it so that to make a big in RAM counter.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can someone give me a hand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 03:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1262460#M10565</guid>
      <dc:creator>yfliu</dc:creator>
      <dc:date>2021-04-15T03:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1263197#M10579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;yfliu,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Continuous Measurement&lt;/STRONG&gt; can be checked for some of the &lt;STRONG&gt;Signal Measurement Mode&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Continuous Measurement ic_pal.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142442iFADBF0AED96CA9F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Continuous Measurement ic_pal.png" alt="Continuous Measurement ic_pal.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I did not find the&amp;nbsp;call back for counter overflow event.&lt;/P&gt;
&lt;P&gt;Would you please have a look at&amp;nbsp;ftm_signal_measurement_s32k144 SDK example. Check whether the &lt;STRONG&gt;ftm_ic&lt;/STRONG&gt; meet requirements.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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;- 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;</description>
      <pubDate>Fri, 16 Apr 2021 03:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1263197#M10579</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-04-16T03:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1265759#M10624</link>
      <description>&lt;P&gt;Thanks. I looked at FTM_IC usage in that example you mentioned and added the FTM_IC component to the existing work project which is based on LPSPI_DMA sample. The LPSPI_DMA sample loop does 1000 xfers (each size is 16B) and checks the result.&lt;/P&gt;&lt;P&gt;I added calls like below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FTM_DRV_Init();&lt;/LI&gt;&lt;LI&gt;FTM_DRV_InitInputCapture();&lt;/LI&gt;&lt;LI&gt;FTM_DRV_DeinitInputCapture();&lt;/LI&gt;&lt;LI&gt;FTM_DRV_Deinit();&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;before entering the SPI test loop. Everything seems fine here.&lt;/P&gt;&lt;P&gt;However, if I comment out step 3 and 4 so that to keep FTM_IC running, I then noticed the SPI test loop never ends, at least for more than 400 loops. It does end if loop count is 350. I am guessing the FTM component initialization might have some interferences with the LPSPI DMA sample but not sure what it is. Things might be fine if the SPI xfer count is small... but it will happen if there are many xfers (such as 375 times).&lt;/P&gt;&lt;P&gt;For your reference, I am using fixed frequency configuration as my FTM_IC clock source as I want an effective 1Mhz clock. I have overflow interrupt enabled but didn't do anything meaningful yet.&lt;/P&gt;&lt;P&gt;Do you experience the same behavior there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1265759#M10624</guid>
      <dc:creator>yfliu</dc:creator>
      <dc:date>2021-04-21T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1267050#M10648</link>
      <description>&lt;P&gt;Some updates on FTM_IC component's strange behavior described above: it seems that if I disable the&amp;nbsp;&amp;nbsp;"overflow interrupt", the strange behavior won't happen. If I enable the overflow ISR, it will happen when the # of xfers are large enough (probably longer than the interval needed for an overflow to occur?).&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;please see if the FTM_IC component's overflow ISR is properly implemented?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 05:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1267050#M10648</guid>
      <dc:creator>yfliu</dc:creator>
      <dc:date>2021-04-23T05:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1267926#M10664</link>
      <description>&lt;P&gt;Sorry for the delay! &lt;BR /&gt;If you enabled the&amp;nbsp;&lt;STRONG&gt;Timer overflow interrupt&lt;/STRONG&gt;, you may need to input the &lt;STRONG&gt;callback&lt;/STRONG&gt; function. Otherwise it will run into &lt;STRONG&gt;faultISR&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Callback.jpg" style="width: 897px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143204i71FA09187546D159/image-size/large?v=v2&amp;amp;px=999" role="button" title="Callback.jpg" alt="Callback.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the FTM_IC driver seems does not count the times of overflow. &lt;STRONG&gt;FTM_DRV_InputCaptureHandler&lt;/STRONG&gt; only counts the overflow situation once.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Measurement when overflow occurred.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143205i8878F6EBF3DAD5D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Measurement when overflow occurred.jpg" alt="Measurement when overflow occurred.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;Here is the topic once discussed: &lt;A href="https://community.nxp.com/t5/S32K/The-issue-about-FTM-input-capture-for-S32K114-and-used-SDK/m-p/957354" target="_self"&gt;The issue about FTM input capture for S32K114 and used SDK configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 07:33:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1267926#M10664</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-04-26T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: IC_PAL usage</title>
      <link>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1270761#M10745</link>
      <description>&lt;P&gt;Robin,&lt;/P&gt;&lt;P&gt;Not sure I can catch your explanations.&lt;/P&gt;&lt;P&gt;Here I used an empty callback like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void ic_pal1_cb(ic_event_t ev, void*p){
}&lt;/LI-CODE&gt;&lt;P&gt;and referred to it in ProcessorExpert's configuration for FTM1 channel#0. With this callback and "timer overflow interrupt" optioin enabled, I still get the strange behavior as described above.&lt;/P&gt;&lt;P&gt;I am wondering if this is the right way to handle the timer overflow interrupt? I assume the callback is called from an ISR defined by the IC_PAL driver which shall manage the ISR flags correctly...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 08:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IC-PAL-usage/m-p/1270761#M10745</guid>
      <dc:creator>yfliu</dc:creator>
      <dc:date>2021-04-30T08:48:28Z</dc:date>
    </item>
  </channel>
</rss>

