<?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: s32k input frequency measurment</title>
    <link>https://community.nxp.com/t5/S32K/s32k-input-frequency-measurment/m-p/1663997#M23654</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience we bring you!&lt;/P&gt;
&lt;P&gt;About&lt;STRONG&gt; "The odd channels cannot be configured as a signal measurement mode."&lt;/STRONG&gt;, this is the limitation of the IC_PAL and FTM_IC drivers. If FTM &lt;STRONG&gt;Input Capture Mode&lt;/STRONG&gt; is configured by register(not use SDK APIs), the frequency can be measured with odd channel. But &lt;STRONG&gt;IC_PAL&lt;/STRONG&gt; and &lt;STRONG&gt;FTM_IC&lt;/STRONG&gt; will configure FTM in &lt;STRONG&gt;Dual Edge Capture Mode&lt;/STRONG&gt; when they are configured as &lt;EM&gt;signal measurement mode&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;If you use the SDK APIs and S32CT, and can switch to other pins, the easiest way is to choose even channel.&lt;/P&gt;
&lt;P&gt;For reading the frequency of multiple channels, it can be configured in S32CT according to the original channel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    uint8_t channel0 = ic_pal_1_InitConfig.inputChConfig[0].hwChannelId;
    uint8_t channel2 = ic_pal_1_InitConfig.inputChConfig[1].hwChannelId;
    inputCaptureMeas0 = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, channel0);
    inputCaptureMeas2 = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, channel2);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case of Prescaler=8, Frequency of counter clock=6000000Hz. The Max measured frequency is 6MHz, and the Min measured frequency is 91.55Hz.&lt;/P&gt;
&lt;P&gt;For more details on &lt;STRONG&gt;IC_PAL&lt;/STRONG&gt;, please read its guide.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Documentation S32K1 SDK.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226353iEDE9FAF23CB90B91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Documentation S32K1 SDK.jpg" alt="Documentation S32K1 SDK.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 07:06:20 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2023-06-06T07:06:20Z</dc:date>
    <item>
      <title>s32k input frequency measurment</title>
      <link>https://community.nxp.com/t5/S32K/s32k-input-frequency-measurment/m-p/1663391#M23606</link>
      <description>&lt;P&gt;1st I tried I as shown in example by creating my own example I can able to read the frequency of individual channel&lt;/P&gt;&lt;P&gt;Refer the below code&lt;/P&gt;&lt;P&gt;My input frequency is 500 hz and I can able to read the 500 hz in this single channel but when I configured for multiple channel iam getting errors please below page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint32_t frequency;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;clock_pins_init&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize clock module */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize pins */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ic_pal();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;ic_pal&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IC_Init(&amp;amp;ic_pal_1_instanceConfig, &amp;amp;ic_pal_1_InitConfig);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frequency = FTM_DRV_GetFrequency(ic_pal_1_instanceConfig.instIdx);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;STRONG&gt;main&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock_pins_init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;for&lt;/STRONG&gt;(;;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get the latest value */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Calculate the signal frequency using recorded data*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas = frequency / (inputCaptureMeas);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* END main */&lt;/P&gt;&lt;P&gt;/*!&lt;/P&gt;&lt;P&gt;&amp;nbsp;** @}&lt;/P&gt;&lt;P&gt;&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepc_0-1685958683533.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226231i388857472EC9CC1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepc_0-1685958683533.png" alt="sandeepc_0-1685958683533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepc_1-1685958683884.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226229i705E0D8036352BA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepc_1-1685958683884.png" alt="sandeepc_1-1685958683884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After getting single channel output I configured second channel I got below error&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Measure period between two consecutive rising edges&lt;/LI&gt;&lt;LI&gt;Measure period between two consecutive falling edges&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I tried in both option so iam getting now as below error&lt;/P&gt;&lt;P&gt;Error is odd channel is not supported by odd channels&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepc_2-1685958684195.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226230iEDC64EE436EA8C2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepc_2-1685958684195.png" alt="sandeepc_2-1685958684195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I got this I skipped only to read even channels with below configuration I am not able to read still second channel frequency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepc_3-1685958684516.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226232iD0666D9FD9407483/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepc_3-1685958684516.png" alt="sandeepc_3-1685958684516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;include&lt;/STRONG&gt; "sdk_project_config.h"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;volatile&lt;/STRONG&gt; uint16_t inputCaptureMeas = 0,inputCaptureMeas1 = 0U,inputCaptureMeas2 = 0U;&lt;/P&gt;&lt;P&gt;uint32_t frequency;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;clock_pins_init&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize clock module */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize pins */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;U&gt;ic_pal();&lt;/U&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;void&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt; &lt;STRONG&gt;ic_pal&lt;/STRONG&gt;(&lt;/U&gt;&lt;STRONG&gt;&lt;U&gt;void&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt;)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IC_Init(&amp;amp;ic_pal_1_instanceConfig, &amp;amp;ic_pal_1_InitConfig);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frequency = FTM_DRV_GetFrequency(ic_pal_1_instanceConfig.instIdx);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;STRONG&gt;main&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock_pins_init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;for&lt;/STRONG&gt;(;;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get the latest value */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Calculate the signal frequency using recorded data*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas = frequency / (inputCaptureMeas);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas1 = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, 2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Calculate the signal frequency using recorded data*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputCaptureMeas1 = frequency / (inputCaptureMeas1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* END main */&lt;/P&gt;&lt;P&gt;/*!&lt;/P&gt;&lt;P&gt;&amp;nbsp;** @}&lt;/P&gt;&lt;P&gt;&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not getting any channel2 output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepc_4-1685958684845.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226233i9754E199205288C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepc_4-1685958684845.png" alt="sandeepc_4-1685958684845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I get few more tips how can I achieve reading of multiple channel frequency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 09:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-input-frequency-measurment/m-p/1663391#M23606</guid>
      <dc:creator>sandeepc</dc:creator>
      <dc:date>2023-06-05T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: s32k input frequency measurment</title>
      <link>https://community.nxp.com/t5/S32K/s32k-input-frequency-measurment/m-p/1663997#M23654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience we bring you!&lt;/P&gt;
&lt;P&gt;About&lt;STRONG&gt; "The odd channels cannot be configured as a signal measurement mode."&lt;/STRONG&gt;, this is the limitation of the IC_PAL and FTM_IC drivers. If FTM &lt;STRONG&gt;Input Capture Mode&lt;/STRONG&gt; is configured by register(not use SDK APIs), the frequency can be measured with odd channel. But &lt;STRONG&gt;IC_PAL&lt;/STRONG&gt; and &lt;STRONG&gt;FTM_IC&lt;/STRONG&gt; will configure FTM in &lt;STRONG&gt;Dual Edge Capture Mode&lt;/STRONG&gt; when they are configured as &lt;EM&gt;signal measurement mode&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;If you use the SDK APIs and S32CT, and can switch to other pins, the easiest way is to choose even channel.&lt;/P&gt;
&lt;P&gt;For reading the frequency of multiple channels, it can be configured in S32CT according to the original channel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    uint8_t channel0 = ic_pal_1_InitConfig.inputChConfig[0].hwChannelId;
    uint8_t channel2 = ic_pal_1_InitConfig.inputChConfig[1].hwChannelId;
    inputCaptureMeas0 = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, channel0);
    inputCaptureMeas2 = IC_GetMeasurement(&amp;amp;ic_pal_1_instanceConfig, channel2);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case of Prescaler=8, Frequency of counter clock=6000000Hz. The Max measured frequency is 6MHz, and the Min measured frequency is 91.55Hz.&lt;/P&gt;
&lt;P&gt;For more details on &lt;STRONG&gt;IC_PAL&lt;/STRONG&gt;, please read its guide.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Documentation S32K1 SDK.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226353iEDE9FAF23CB90B91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Documentation S32K1 SDK.jpg" alt="Documentation S32K1 SDK.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 07:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-input-frequency-measurment/m-p/1663997#M23654</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-06-06T07:06:20Z</dc:date>
    </item>
  </channel>
</rss>

