<?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: How can we configure TIMER (TPM3_CH2) inside the i.mx93 (mcimx93-evk) Input capture example? in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/How-can-we-configure-TIMER-TPM3-CH2-inside-the-i-mx93-mcimx93/m-p/2130610#M3508</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/252048"&gt;@Manjunathb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to configurate it in the dts file&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO12__TPM3_CH2&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;B.R&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Jul 2025 05:56:22 GMT</pubDate>
    <dc:creator>pengyong_zhang</dc:creator>
    <dc:date>2025-07-09T05:56:22Z</dc:date>
    <item>
      <title>How can we configure TIMER (TPM3_CH2) inside the i.mx93 (mcimx93-evk) Input capture example?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/How-can-we-configure-TIMER-TPM3-CH2-inside-the-i-mx93-mcimx93/m-p/2128834#M3484</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello NXP Team,&lt;/P&gt;&lt;P&gt;I am working with the &lt;STRONG&gt;MCIMX93-EVK&lt;/STRONG&gt; and trying to run the &lt;STRONG&gt;TPM input capture example&lt;/STRONG&gt; using &lt;STRONG&gt;TPM3_CH2&lt;/STRONG&gt;, which is mapped to &lt;STRONG&gt;GPIO_IO12&lt;/STRONG&gt; on the board.&lt;/P&gt;&lt;P&gt;I followed the hardware guidelines:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Connected a test signal (button) between &lt;STRONG&gt;J1005-3 (GPIO_IO12)&lt;/STRONG&gt; and &lt;STRONG&gt;J1005-7 (GND)&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Verified 3.3V logic and falling edge transition is present when pressing the button&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, the code never enters the TPM3_IRQHandler, and the capture value is not being printed in the terminal.&lt;/P&gt;&lt;P&gt;Here is my modified code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;#include "fsl_debug_console.h"&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "app.h"&lt;BR /&gt;#include "fsl_tpm.h"&lt;BR /&gt;#include "fsl_rgpio.h"&lt;/P&gt;&lt;P&gt;volatile bool tpmIsrFlag = false;&lt;/P&gt;&lt;P&gt;void TPM3_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;tpmIsrFlag = true;&lt;BR /&gt;TPM_ClearStatusFlags(TPM3, kTPM_Chnl2Flag);&lt;BR /&gt;SDK_ISR_EXIT_BARRIER;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;tpm_config_t tpmInfo;&lt;/P&gt;&lt;P&gt;BOARD_InitHardware();&lt;/P&gt;&lt;P&gt;PRINTF("\r\nTPM input capture example\r\n");&lt;BR /&gt;PRINTF("\r\nOnce the input signal is received the input capture value is printed\r\n");&lt;/P&gt;&lt;P&gt;TPM_GetDefaultConfig(&amp;amp;tpmInfo);&lt;BR /&gt;TPM_Init(TPM3, &amp;amp;tpmInfo);&lt;/P&gt;&lt;P&gt;// Configure TPM3_CH2 input capture (falling edge)&lt;BR /&gt;TPM_SetupInputCapture(TPM3, kTPM_Chnl_2, kTPM_FallingEdge);&lt;BR /&gt;TPM_SetTimerPeriod(TPM3, 0xFFFFFFFFU);&lt;BR /&gt;TPM_EnableInterrupts(TPM3, kTPM_Chnl2InterruptEnable);&lt;/P&gt;&lt;P&gt;EnableIRQ(TPM3_IRQn);&lt;BR /&gt;TPM_StartTimer(TPM3, kTPM_SystemClock);&lt;/P&gt;&lt;P&gt;while (!tpmIsrFlag) { }&lt;/P&gt;&lt;P&gt;PRINTF("\r\nCapture value C(n)V=%x\r\n", TPM_GetChannelValue(TPM3, kTPM_Chnl_2));&lt;BR /&gt;while (1) { }&lt;BR /&gt;}&lt;/P&gt;&lt;H3&gt;&lt;LI-EMOJI id="lia_small-orange-diamond" title=":small_orange_diamond:"&gt;&lt;/LI-EMOJI&gt;My Setup:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;TPM Module&lt;/STRONG&gt;: TPM3&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Channel&lt;/STRONG&gt;: CH2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Pin Used&lt;/STRONG&gt;: GPIO_IO12 (confirmed to be J1005-3)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Edge&lt;/STRONG&gt;: Falling edge&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Board&lt;/STRONG&gt;: MCIMX93-EVK&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Clock&lt;/STRONG&gt;: Default system clock settings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;&lt;LI-EMOJI id="lia_small-blue-diamond" title=":small_blue_diamond:"&gt;&lt;/LI-EMOJI&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Is GPIO_IO12 correctly mapped to TPM3_CH2 in the EVK?&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Do I need any additional IOMUXC or pinmux configuration to enable TPM3_CH2 capture?&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is IOMUXC_SetPinMux() or IOMUXC_SetPinConfig() required explicitly for GPIO_IO12?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Can you confirm if TPM3_CH2 is routed and enabled by default on MCIMX93-EVK?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any insight or working examples using TPM3_CH2 would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="i.MX93" id="i.MX93"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="SPIFI-NXP-MICROCONTROLLERS" id="SPIFI-NXP-MICROCONTROLLERS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="TPMS-SW" id="TPMS-SW"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="IMX93QSB" id="IMX93QSB"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 12:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/How-can-we-configure-TIMER-TPM3-CH2-inside-the-i-mx93-mcimx93/m-p/2128834#M3484</guid>
      <dc:creator>Manjunathb</dc:creator>
      <dc:date>2025-07-05T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can we configure TIMER (TPM3_CH2) inside the i.mx93 (mcimx93-evk) Input capture example?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/How-can-we-configure-TIMER-TPM3-CH2-inside-the-i-mx93-mcimx93/m-p/2130610#M3508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/252048"&gt;@Manjunathb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to configurate it in the dts file&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO12__TPM3_CH2&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;B.R&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jul 2025 05:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/How-can-we-configure-TIMER-TPM3-CH2-inside-the-i-mx93-mcimx93/m-p/2130610#M3508</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2025-07-09T05:56:22Z</dc:date>
    </item>
  </channel>
</rss>

