<?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: About Signal Measurement Mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873667#M3937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million for fast reply and detailed explanation.&amp;nbsp;I'm totally clear why there is such a 'restriction', now. Great !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for my specific application, PIN29 (FTM1_CH3, odd channel) has been chosen for fan speed feedback input, I can't change circuit diagram design. For me, 'Measure input signal' mode is the most convenient way, which outputs stable frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If changed to 'Detect edge signal', the output has dramatic change. I don't know why.&lt;/P&gt;&lt;P&gt;So, I did another try, I add a callback to keep feedback signal count, and I can get&amp;nbsp;&lt;SPAN&gt;stable frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static volatile uint32_t s_tachSignalCounter = 0;&lt;/P&gt;&lt;P&gt;void fanSpeedFeedback(void *userData)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++s_tachSignalCounter;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Is this an&amp;nbsp;orthodox approach to use 'Detect edge signal' mode?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Is there any simpler&amp;nbsp;examples using 'Detect edge signal' mode?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture_0002.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/884i423391500D528A48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_0002.jpg" alt="Capture_0002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2019 01:26:05 GMT</pubDate>
    <dc:creator>sanbrother</dc:creator>
    <dc:date>2019-01-16T01:26:05Z</dc:date>
    <item>
      <title>About Signal Measurement Mode</title>
      <link>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873665#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dear&lt;/P&gt;&lt;P&gt;I need some help about&amp;nbsp;Signal Measurement Mode, a lot of thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 3-wire fan, so far as I know, I should be able to read speed signal from the 3rd line.&lt;/P&gt;&lt;P&gt;And, the FTM input capture seems just meet my need, and I manged to get stable speed by running example project named 'ftm_signal_measurement_s32k144'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I choose another channel, some error hint pops up, just as marked in the image below. (It says, &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;only even channels can be configured in Signal Measurement Mode&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;According to circuit diagram design, &lt;SPAN style="color: #ff0000;"&gt;I must use PIN29 (PTC_15)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;1. Did I choose a wrong&amp;nbsp;approach? (Should't I choose input capture?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;2. How can I solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;3. And, why there is such restriction?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;A lot lot lot thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch(01-15-09-08-08).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76999iE1CEFFF36394C0A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch(01-15-09-08-08).jpg" alt="Catch(01-15-09-08-08).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 01:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873665#M3935</guid>
      <dc:creator>sanbrother</dc:creator>
      <dc:date>2019-01-15T01:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: About Signal Measurement Mode</title>
      <link>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873666#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;If you select Measure input signal, the FTM is then configured for Dual Edge Capture Mode.&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/76986i23A2BC217FD35E05/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;And as can see below, this mode allows to capture two edges on the (n) input using the (n) and (n+1) registers but the (n+1) input is inactive.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77000i4769B395CCB4A7D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select Detect edge signal, you can use odd channels.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77040i0AAA92B28B39E547/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 16:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873666#M3936</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-01-15T16:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: About Signal Measurement Mode</title>
      <link>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873667#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million for fast reply and detailed explanation.&amp;nbsp;I'm totally clear why there is such a 'restriction', now. Great !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for my specific application, PIN29 (FTM1_CH3, odd channel) has been chosen for fan speed feedback input, I can't change circuit diagram design. For me, 'Measure input signal' mode is the most convenient way, which outputs stable frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If changed to 'Detect edge signal', the output has dramatic change. I don't know why.&lt;/P&gt;&lt;P&gt;So, I did another try, I add a callback to keep feedback signal count, and I can get&amp;nbsp;&lt;SPAN&gt;stable frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static volatile uint32_t s_tachSignalCounter = 0;&lt;/P&gt;&lt;P&gt;void fanSpeedFeedback(void *userData)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++s_tachSignalCounter;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Is this an&amp;nbsp;orthodox approach to use 'Detect edge signal' mode?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Is there any simpler&amp;nbsp;examples using 'Detect edge signal' mode?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture_0002.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/884i423391500D528A48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_0002.jpg" alt="Capture_0002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873667#M3937</guid>
      <dc:creator>sanbrother</dc:creator>
      <dc:date>2019-01-16T01:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: About Signal Measurement Mode</title>
      <link>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873668#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I understand this&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"If changed to 'Detect edge signal', the output has dramatic change. I don't know why.". Could you provide some details about the behavior of your application?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I suppose that when you switch to edge detection mode you don't get the exact period of the signal. This is normal because in edge detect mode you just get the timestamp of the moment when edge was detected. To covert this into period measurement you have to subtract in callback previous timestamp from current timestamp (don't miss the case when FTM counter overflows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;We don't have other examples than the examples provided in SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Razvan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 14:32:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/About-Signal-Measurement-Mode/m-p/873668#M3938</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2019-01-17T14:32:12Z</dc:date>
    </item>
  </channel>
</rss>

