<?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>topic Re: Measure input pulse measure with edge count in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2076403#M47582</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;Each eMIOS channel allows &lt;STRONG&gt;just one&lt;/STRONG&gt; of the following ICU modes:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ICU_MODE_SIGNAL_EDGE_DETECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_EDGE_COUNTER&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_SIGNAL_MEASUREMENT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_TIMESTAMP&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And your seems that your application needs two ICU modes.&lt;/P&gt;
&lt;P&gt;What comes to my mind is that you could route the external signal to be measured to a pin configured as &lt;EM&gt;trgmux_inX&lt;/EM&gt;. And then, route its trgmux ouput to a two eMIOS channels. One performing &lt;EM&gt;ICU_MODE_SIGNAL_MEASUREMENT&lt;/EM&gt; and the other one performing &lt;BR /&gt;&lt;EM&gt;ICU_MODE_EDGE_COUNTER&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 17:48:44 GMT</pubDate>
    <dc:creator>_Leo_</dc:creator>
    <dc:date>2025-04-08T17:48:44Z</dc:date>
    <item>
      <title>Measure input pulse measure with edge count</title>
      <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2075926#M47552</link>
      <description>&lt;P&gt;I have configured eMios channel 4 of HW instance 0 as&amp;nbsp;ICU_MODE_SIGNAL_MEASUREMENT.&lt;/P&gt;&lt;P&gt;I am able to read Period, duty with this configuration.&amp;nbsp; But I would like to measure edge/Pulse count as well. So, is it possible to get period and Edge count simultaneously using ICU_MODE_SIGNAL_MEASUREMENT?&amp;nbsp;If not, please guide me to do the same.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 08:31:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2075926#M47552</guid>
      <dc:creator>elnino</dc:creator>
      <dc:date>2025-04-08T08:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure input pulse measure with edge count</title>
      <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2076403#M47582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;Each eMIOS channel allows &lt;STRONG&gt;just one&lt;/STRONG&gt; of the following ICU modes:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ICU_MODE_SIGNAL_EDGE_DETECT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_EDGE_COUNTER&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_SIGNAL_MEASUREMENT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ICU_MODE_TIMESTAMP&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And your seems that your application needs two ICU modes.&lt;/P&gt;
&lt;P&gt;What comes to my mind is that you could route the external signal to be measured to a pin configured as &lt;EM&gt;trgmux_inX&lt;/EM&gt;. And then, route its trgmux ouput to a two eMIOS channels. One performing &lt;EM&gt;ICU_MODE_SIGNAL_MEASUREMENT&lt;/EM&gt; and the other one performing &lt;BR /&gt;&lt;EM&gt;ICU_MODE_EDGE_COUNTER&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 17:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2076403#M47582</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-08T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure input pulse measure with edge count</title>
      <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2078157#M47630</link>
      <description>&lt;P&gt;Thanks for details. Do you have any example code "to&amp;nbsp;&lt;SPAN&gt;route the external signal to be measured to a pin configured as&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;trgmux_inX&lt;/EM&gt;&lt;SPAN&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not aware of&amp;nbsp;&lt;EM&gt;trgmux_inX.&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;This is my pin configuration for my input PWM.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elnino_1-1744275049382.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/332459i0FC0B5217D63C91F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elnino_1-1744275049382.png" alt="elnino_1-1744275049382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2078157#M47630</guid>
      <dc:creator>elnino</dc:creator>
      <dc:date>2025-04-10T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Measure input pulse measure with edge count</title>
      <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2081150#M47797</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;Please give me more time to give you a proper answer.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 23:48:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2081150#M47797</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-15T23:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Measure input pulse measure with edge count</title>
      <link>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2082798#M47900</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;Please find attached project.&lt;/P&gt;
&lt;P&gt;This example perform two eMIOS ICU modes, PEC (&lt;EM&gt;EMIOS_0_CH_5&lt;/EM&gt;) and IPWM (&lt;EM&gt;EMIOS_0_CH_5&lt;/EM&gt;), in the same pin (&lt;EM&gt;PTD2&lt;/EM&gt;). It is archived routing the same PWM input signal to two eMIOS channels though TRGMUX (&lt;EM&gt;trgmux_in5&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;The PWM signal is generated using the &lt;EM&gt;EMIOS_1_CH_0&lt;/EM&gt; (&lt;EM&gt;PTA0&lt;/EM&gt;) in OPWMB mode and using &lt;EM&gt;EMIOS_CH_23&lt;/EM&gt; in MCB mode as time base.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Leo__0-1744926700069.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333748i303911DDD717E28E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Leo__0-1744926700069.png" alt="_Leo__0-1744926700069.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please use S32DS 3.6, RTD 5.0.0, S32K3X4EVB-T172 (and connect &lt;EM&gt;PTA0&lt;/EM&gt; to &lt;EM&gt;PTD2&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;If you need different SW and/or HW, you can create a new project, do manual config and code copy.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; -&amp;gt; Although you are able to read period and duty cycle, please consider that IPWM measurements in attached project should be improved, meanwhile please refer to the following community posts:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-IP-S32K312-EMIO-PWM-Generation-amp-Duty-capture-using/ta-p/2011634" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-IP-S32K312-EMIO-PWM-Generation-amp-Duty-capture-using/ta-p/2011634&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-IP-S32K312-EMIO-PWM-Generation-amp-Duty-capture-using/ta-p/2011642" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-IP-S32K312-EMIO-PWM-Generation-amp-Duty-capture-using/ta-p/2011642&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 22:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Measure-input-pulse-measure-with-edge-count/m-p/2082798#M47900</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-17T22:02:48Z</dc:date>
    </item>
  </channel>
</rss>

