<?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>i.MX ProcessorsのトピックiMXRT1024 Quad Timer Count Mode external signal</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1523609#M195262</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to count the rising edge of an external signal, but the external signal is not counted. I just follow the example from the reference manual and this post:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/QTMR-of-RT1064-counting-external-signal/m-p/1396101" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/QTMR-of-RT1064-counting-external-signal/m-p/1396101&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using two evaluation board MIMXRT1024-EVK: the first board with a PWM configured to 1KHz (I checked the signal with the oscilloscope and the signal is fine) and the second board with the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_Iomuxc);&lt;/P&gt;&lt;P&gt;IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_07_QTIMER2_TIMER3, 0U); // J17-08&lt;BR /&gt;IOMUXC_GPR-&amp;gt;GPR6 = ((IOMUXC_GPR-&amp;gt;GPR6 &amp;amp; (~(IOMUXC_GPR_GPR6_QTIMER2_TRM3_INPUT_SEL_MASK))) | IOMUXC_GPR_GPR6_QTIMER2_TRM3_INPUT_SEL(0x00U));&lt;/P&gt;&lt;P&gt;qtmr_config_t qtmrConfig;&lt;/P&gt;&lt;P&gt;QTMR_GetDefaultConfig(&amp;amp;qtmrConfig);&lt;/P&gt;&lt;P&gt;qtmrConfig.primarySource = kQTMR_ClockCounter2InputPin;&lt;/P&gt;&lt;P&gt;QTMR_Init(TMR2, kQTMR_Channel_3, &amp;amp;qtmrConfig);&lt;/P&gt;&lt;P&gt;QTMR_StartTimer(TMR2, kQTMR_Channel_3, kQTMR_PriSrcRiseEdge);&lt;/P&gt;&lt;P&gt;static volatile uint16_t value;&lt;BR /&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;value = QTMR_GetCurrentTimerCount(TMR2, kQTMR_Channel_3);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The pwm signal is connected with the second board in the pin "GPIO_AD_B0_07" located in the connector J17 pin 10.&lt;/P&gt;&lt;P&gt;What is wrong?&amp;nbsp;The information from the reference manual is really limited and I think&amp;nbsp;that I missed something but I can not find out it.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:45:51 GMT</pubDate>
    <dc:creator>JasonGT93</dc:creator>
    <dc:date>2022-09-16T11:45:51Z</dc:date>
    <item>
      <title>iMXRT1024 Quad Timer Count Mode external signal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1523609#M195262</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to count the rising edge of an external signal, but the external signal is not counted. I just follow the example from the reference manual and this post:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/QTMR-of-RT1064-counting-external-signal/m-p/1396101" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/QTMR-of-RT1064-counting-external-signal/m-p/1396101&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using two evaluation board MIMXRT1024-EVK: the first board with a PWM configured to 1KHz (I checked the signal with the oscilloscope and the signal is fine) and the second board with the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_Iomuxc);&lt;/P&gt;&lt;P&gt;IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_07_QTIMER2_TIMER3, 0U); // J17-08&lt;BR /&gt;IOMUXC_GPR-&amp;gt;GPR6 = ((IOMUXC_GPR-&amp;gt;GPR6 &amp;amp; (~(IOMUXC_GPR_GPR6_QTIMER2_TRM3_INPUT_SEL_MASK))) | IOMUXC_GPR_GPR6_QTIMER2_TRM3_INPUT_SEL(0x00U));&lt;/P&gt;&lt;P&gt;qtmr_config_t qtmrConfig;&lt;/P&gt;&lt;P&gt;QTMR_GetDefaultConfig(&amp;amp;qtmrConfig);&lt;/P&gt;&lt;P&gt;qtmrConfig.primarySource = kQTMR_ClockCounter2InputPin;&lt;/P&gt;&lt;P&gt;QTMR_Init(TMR2, kQTMR_Channel_3, &amp;amp;qtmrConfig);&lt;/P&gt;&lt;P&gt;QTMR_StartTimer(TMR2, kQTMR_Channel_3, kQTMR_PriSrcRiseEdge);&lt;/P&gt;&lt;P&gt;static volatile uint16_t value;&lt;BR /&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;value = QTMR_GetCurrentTimerCount(TMR2, kQTMR_Channel_3);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The pwm signal is connected with the second board in the pin "GPIO_AD_B0_07" located in the connector J17 pin 10.&lt;/P&gt;&lt;P&gt;What is wrong?&amp;nbsp;The information from the reference manual is really limited and I think&amp;nbsp;that I missed something but I can not find out it.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1523609#M195262</guid>
      <dc:creator>JasonGT93</dc:creator>
      <dc:date>2022-09-16T11:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 Quad Timer Count Mode external signal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1524162#M195306</link>
      <description>&lt;P&gt;It should be kQTMR_ClockCounter3InputPin in your case, as you enable Channel_3&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;qtmrConfig.primarySource = kQTMR_ClockCounter3InputPin;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 08:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1524162#M195306</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2022-09-19T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 Quad Timer Count Mode external signal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1524877#M195361</link>
      <description>&lt;P&gt;Hello jay_heng,&lt;/P&gt;&lt;P&gt;Thanks! It was my mistake. Where can I find more information and examples codes about the QTMR? I need to migrate some projects to this microcontroller.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Quad-Timer-Count-Mode-external-signal/m-p/1524877#M195361</guid>
      <dc:creator>JasonGT93</dc:creator>
      <dc:date>2022-09-20T08:55:00Z</dc:date>
    </item>
  </channel>
</rss>

