<?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: Unable to Interpret data received from FTM Input Capture in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1254207#M10374</link>
    <description>&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;Thanks for your help ,Solution solved our problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soham Borkar&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 10:28:54 GMT</pubDate>
    <dc:creator>soham_borkar</dc:creator>
    <dc:date>2021-03-30T10:28:54Z</dc:date>
    <item>
      <title>Unable to Interpret data received from FTM Input Capture</title>
      <link>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1253974#M10364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The goal of our project is to find the pulse width of received Echo signal(Low signal) from Ultrasonic sensor on FTM pin of S32K146. Ultrasonic signal sends the data in the below format:&lt;/P&gt;&lt;P&gt;Burst signal , Echo / Echo's , 12 status bits.&lt;/P&gt;&lt;P&gt;We have used&amp;nbsp;&lt;SPAN&gt;FTM_DRV_GetInputCaptureMeasurement to measure the signal value.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(event&amp;nbsp;==&amp;nbsp;IC_EVENT_MEASUREMENT_COMPLETE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;[i++]&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FTM_DRV_GetInputCaptureMeasurement&lt;/SPAN&gt;&lt;SPAN&gt;(INST_FLEXTIMER_IC1,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0U&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for which, the values of data we get are:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Data = 4250&lt;BR /&gt;Data = 40933&lt;BR /&gt;Data = 24493&lt;BR /&gt;Data = 3946&lt;BR /&gt;Data = 7182&lt;BR /&gt;Data = 10643&lt;BR /&gt;Data = 54551&lt;BR /&gt;Data = 5054&lt;BR /&gt;Data = 5061&lt;BR /&gt;Data = 5060&lt;BR /&gt;Data = 2660&lt;BR /&gt;Data = 5054&lt;BR /&gt;Data = 5061&lt;BR /&gt;Data = 5060&lt;BR /&gt;Data = 2662&lt;BR /&gt;Data = 2654&lt;BR /&gt;Data = 2654&lt;BR /&gt;Data = 5053&lt;BR /&gt;Data = 5060&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From the data shown above, we could conclude that the first value is of Burst signal followed by 6 echoes and 2 status bits , but could'nt interpret the values that we received.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Source clock frequency is 48MHZ&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;FTM configuration is as follows:&lt;/DIV&gt;&lt;DIV&gt;ftm_input_ch_param_t flexTimer_ic1_InputCaptureChannelConfig[1] =&lt;BR /&gt;{&lt;BR /&gt;{&lt;BR /&gt;0U, /* Channel id */&lt;BR /&gt;FTM_SIGNAL_MEASUREMENT, /* Input capture operation mode */&lt;BR /&gt;FTM_RISING_EDGE, /* Edge alignment mode */&lt;BR /&gt;FTM_PERIOD_OFF_MEASUREMENT, /* Signal measurement operation type */&lt;BR /&gt;0U, /* Filter value */&lt;BR /&gt;false, /* Filter state (enabled/disabled) */&lt;BR /&gt;true, /* Continuous measurement state */&lt;BR /&gt;NULL, /* Vector of callbacks parameters for channels events */&lt;BR /&gt;read_pwm /* Vector of callbacks for channels events */&lt;BR /&gt;}&lt;BR /&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do we need to divide the values by some factor to get the pulse width or is it anything else we are missing ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Mar 2021 04:51:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1253974#M10364</guid>
      <dc:creator>soham_borkar</dc:creator>
      <dc:date>2021-03-30T04:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Interpret data received from FTM Input Capture</title>
      <link>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1254163#M10371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in the configuration you have the&amp;nbsp;&lt;SPAN&gt;FTM_DRV_GetInputCaptureMeasurement returns number of ticks counter counts during low pulse. So if you know period or frequency counter is running of, then you can calculate pulse width by multiply counts and counter clock period.&amp;nbsp;&lt;BR /&gt;If you are not aware of counter clock you can use&amp;nbsp;FTM_DRV_GetFrequency, which should return the frequency of the clock source running the FTM counter. Then pulse width will be&amp;nbsp;&lt;BR /&gt;width = counts/frequency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 09:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1254163#M10371</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-03-30T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Interpret data received from FTM Input Capture</title>
      <link>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1254207#M10374</link>
      <description>&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;Thanks for your help ,Solution solved our problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soham Borkar&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 10:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Unable-to-Interpret-data-received-from-FTM-Input-Capture/m-p/1254207#M10374</guid>
      <dc:creator>soham_borkar</dc:creator>
      <dc:date>2021-03-30T10:28:54Z</dc:date>
    </item>
  </channel>
</rss>

