<?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: LPIT counter reset</title>
    <link>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1380330#M13052</link>
    <description>&lt;P&gt;When&amp;nbsp;set TROT, the LPIT timer will reload when a rising edge is detected on the selected trigger input.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Timer Control Register.png" style="width: 548px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163853i0F2346CF905CDB41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Timer Control Register.png" alt="Timer Control Register.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163847iE05CDEA1E1AA499F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" alt="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the trigger source from FlexTimer are &lt;STRONG&gt;FTM&lt;/STRONG&gt;x&lt;STRONG&gt;_INIT_TRIG&lt;/STRONG&gt; and &lt;STRONG&gt;FTM&lt;/STRONG&gt;x&lt;STRONG&gt;_EXT_TRIG&lt;/STRONG&gt;&lt;BR /&gt;FTMx_INIT_TRIG: counter initialization trigger&lt;BR /&gt;FTMx_EXT_TRIG: channel match trigger&lt;BR /&gt;These two trigger source from FlexTimer don’t seem to be suitable for your application.&lt;/P&gt;
&lt;P&gt;Writing to MISCTRL1[&lt;STRONG&gt;SW_TRG&lt;/STRONG&gt;] generates software trigger to peripherals through TRGMUX.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MISCTRL1[SW_TRG].png" style="width: 819px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163852iF4EDDADE02AA5BC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MISCTRL1[SW_TRG].png" alt="MISCTRL1[SW_TRG].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But seems using another FTM may more easier: configure another FTM works as simple timer.&lt;/P&gt;
&lt;P&gt;Or using LPTMR, software reset the counter in ISR.&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>Thu, 02 Dec 2021 06:40:45 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2021-12-02T06:40:45Z</dc:date>
    <item>
      <title>LPIT counter reset</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1379390#M13036</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am generating a 10ms ISR using LPIT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I am capturing a PWM signal in FTM0 channel. I want to reset the LPIT counter whenever an edge is detected in FTM0 channel.&lt;/P&gt;&lt;P&gt;Could you please tell me how can I reset the LPIT counter.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 05:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1379390#M13036</guid>
      <dc:creator>AjRj14</dc:creator>
      <dc:date>2021-12-01T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT counter reset</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1380330#M13052</link>
      <description>&lt;P&gt;When&amp;nbsp;set TROT, the LPIT timer will reload when a rising edge is detected on the selected trigger input.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Timer Control Register.png" style="width: 548px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163853i0F2346CF905CDB41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Timer Control Register.png" alt="Timer Control Register.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163847iE05CDEA1E1AA499F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" alt="Figure 48-7. Case 3 TSOT 0 TROT 1 TSOI 0 CHAIN 0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the trigger source from FlexTimer are &lt;STRONG&gt;FTM&lt;/STRONG&gt;x&lt;STRONG&gt;_INIT_TRIG&lt;/STRONG&gt; and &lt;STRONG&gt;FTM&lt;/STRONG&gt;x&lt;STRONG&gt;_EXT_TRIG&lt;/STRONG&gt;&lt;BR /&gt;FTMx_INIT_TRIG: counter initialization trigger&lt;BR /&gt;FTMx_EXT_TRIG: channel match trigger&lt;BR /&gt;These two trigger source from FlexTimer don’t seem to be suitable for your application.&lt;/P&gt;
&lt;P&gt;Writing to MISCTRL1[&lt;STRONG&gt;SW_TRG&lt;/STRONG&gt;] generates software trigger to peripherals through TRGMUX.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MISCTRL1[SW_TRG].png" style="width: 819px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163852iF4EDDADE02AA5BC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MISCTRL1[SW_TRG].png" alt="MISCTRL1[SW_TRG].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But seems using another FTM may more easier: configure another FTM works as simple timer.&lt;/P&gt;
&lt;P&gt;Or using LPTMR, software reset the counter in ISR.&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>Thu, 02 Dec 2021 06:40:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1380330#M13052</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-12-02T06:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT counter reset</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1380560#M13062</link>
      <description>&lt;P&gt;Thanks very much Robin.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 10:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-counter-reset/m-p/1380560#M13062</guid>
      <dc:creator>AjRj14</dc:creator>
      <dc:date>2021-12-02T10:48:31Z</dc:date>
    </item>
  </channel>
</rss>

