<?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: K32L2B21: Timer--Input Capture(Counter Reload On Trigger) in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1396683#M4472</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194450"&gt;@rodger_an&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please check if&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The trig pin is set to right function.&lt;/P&gt;
&lt;P&gt;2. Please check TPMx_CONF[TRGSEL], [TRGSRC] and TRGPOL is correct.&lt;/P&gt;
&lt;P&gt;3. The trigger input is ignored if the TPM counter is paused during debug mode or doze mode. This field&lt;BR /&gt;should only be changed when the TPM counter is disabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 09:39:10 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2022-01-10T09:39:10Z</dc:date>
    <item>
      <title>K32L2B21: Timer--Input Capture(Counter Reload On Trigger)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1395887#M4471</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I encounter a issue. When I initialize timer with "config-&amp;gt;enableReloadOnTrigger = true;".&lt;/P&gt;&lt;P&gt;But in fact when a rising or falling edge is detected on the selected trigger input., the TPM counter will not reload with 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what should I configure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodger_an_0-1641525667386.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166962i8F731CD1CA6EFA94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rodger_an_0-1641525667386.png" alt="rodger_an_0-1641525667386.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>Fri, 07 Jan 2022 03:26:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1395887#M4471</guid>
      <dc:creator>rodger_an</dc:creator>
      <dc:date>2022-01-07T03:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: K32L2B21: Timer--Input Capture(Counter Reload On Trigger)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1396683#M4472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194450"&gt;@rodger_an&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please check if&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The trig pin is set to right function.&lt;/P&gt;
&lt;P&gt;2. Please check TPMx_CONF[TRGSEL], [TRGSRC] and TRGPOL is correct.&lt;/P&gt;
&lt;P&gt;3. The trigger input is ignored if the TPM counter is paused during debug mode or doze mode. This field&lt;BR /&gt;should only be changed when the TPM counter is disabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 09:39:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1396683#M4472</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-01-10T09:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: K32L2B21: Timer--Input Capture(Counter Reload On Trigger)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1397074#M4473</link>
      <description>&lt;P&gt;Hi jingpan,&lt;/P&gt;&lt;P&gt;1. The trig pin is set to right function.&lt;/P&gt;&lt;P&gt;2. Please check TPMx_CONF[TRGSEL], [TRGSRC] and TRGPOL is correct.&lt;/P&gt;&lt;P&gt;This two item should be correct.&lt;/P&gt;&lt;P&gt;Because right now I reset CNT to 0 when interrupt happen, I can capture a fixed CNT value when the duty of input signal is fixed, also I calculate the time depended on timer frequency and&amp;nbsp;CNT value, it is same with the period of waveform.&lt;/P&gt;&lt;P&gt;void TPM0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;TPM0-&amp;gt;CNT = 0; //reset counter&lt;BR /&gt;TPM_ClearStatusFlags(TPM0,kTPM_Chnl0Flag);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. The trigger input is ignored if the TPM counter is paused during debug mode or doze mode. This field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should only be changed when the TPM counter is disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I change this field before starting timer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:51:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/K32L2B21-Timer-Input-Capture-Counter-Reload-On-Trigger/m-p/1397074#M4473</guid>
      <dc:creator>rodger_an</dc:creator>
      <dc:date>2022-01-11T05:51:04Z</dc:date>
    </item>
  </channel>
</rss>

