<?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 RT Crossover MCUsのトピックRe: Cannot know GPIO level with alt function</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250340#M13426</link>
    <description>&lt;P&gt;Thank you for reply. But it still doesn't work. When I coufigure this, the content in PSR is from what I write in DR.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 10:06:45 GMT</pubDate>
    <dc:creator>Loadd</dc:creator>
    <dc:date>2021-03-23T10:06:45Z</dc:date>
    <item>
      <title>Cannot know GPIO level with alt function</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1249409#M13389</link>
      <description>&lt;P&gt;I use QTIMER3&amp;nbsp; input0 to capture a signal. In an interrupt,i'd like to know this signal's logic level.&lt;/P&gt;&lt;P&gt;GPIO alt has to be map to&amp;nbsp;QTIMER3&amp;nbsp; , it seems like it cannot act like an usual GPIO as well ,because i cannot found any change in GPIO[n]--DR.&amp;nbsp; Can I get logicl level when i cofigure this pad with alt qtimer3.&lt;/P&gt;&lt;P&gt;I've notice SION already, but setting or not&amp;nbsp; it both dosen't work.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 08:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1249409#M13389</guid>
      <dc:creator>Loadd</dc:creator>
      <dc:date>2021-03-22T08:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot know GPIO level with alt function</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1249996#M13411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;To provide the fastest possible support, I'd highly recommend you try the below method.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_1-1616468358041.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140322iB084DB5C4A30CC32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_1-1616468358041.png" alt="jeremyzhou_1-1616468358041.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&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;&amp;nbsp;&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>Tue, 23 Mar 2021 02:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1249996#M13411</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-03-23T02:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot know GPIO level with alt function</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250083#M13417</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Unfortunately I don't think that it is possible to directly read the state of an input that is not configured as GPIO.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjbcswitzerland_0-1616474801304.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140338iBC6F1DC461ED56AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mjbcswitzerland_0-1616474801304.png" alt="mjbcswitzerland_0-1616474801304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This shows that it is possible to "read back" the value that was written to the DR register (when the GPIO is programmed to be an output) but &lt;U&gt;this is not the pin state&lt;/U&gt;. None of the GPIO registers follow the input state when it is not connected (via the IOMUXC).&lt;/P&gt;&lt;P&gt;In most cases it will be necessary to connect the input to both the peripheral pin and also a free GPIO to be able to read its state.&lt;/P&gt;&lt;P&gt;A number of peripherals can however be connected to the XBAR - see this video for details of the XBAR: &lt;A href="https://youtu.be/zNWIG-O7ZW0" target="_blank"&gt;https://youtu.be/zNWIG-O7ZW0&lt;/A&gt; so there are still some indirect methods of reading the state of various peripheral inputs. One possibility is to internally connect the peripheral input to an ACMP input so that the output of a comparator can signal whether it is low or high at that point in time (beware however that the ACMP may not follow fast signals). In an emergency it may be possible to connect such a peripheral input internally to the FLEXIO block and configure that to allow its logical state to be read.&lt;/P&gt;&lt;P&gt;Note too that the QTIMER inputs don't need to come directly from their pins but instead can be connected via the XBAR to come from other peripheral outputs. That means that a comparator input pin can be used as QTIMER input (passing through a comparator) and thus its state read from the input peripheral too.&lt;BR /&gt;&lt;BR /&gt;These techniques may be a bit fiddly but may allow a certain case to be realised in n emergency. It is a shame that the i.MX RT is not a bit more like the Kinetis parts with respect to their GPIO since these allow a peripheral function to be used in parallel with the GPIO and so also port DMA and port interrupts are possible on the peripheral inputs. Apart from tricks with the XAR I didn't find a method to do this so I would also be happy if someone can correct me and show that it is possible somehow on the i.MX RT parts.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements&lt;BR /&gt;&lt;BR /&gt;For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: &lt;A href="https://www.utasker.com/iMX/RT1064.html" target="_blank"&gt;https://www.utasker.com/iMX/RT1064.html&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 05:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250083#M13417</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2021-03-23T05:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot know GPIO level with alt function</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250338#M13425</link>
      <description>&lt;P&gt;Thank you for reply. I agree with your idea.In an &lt;SPAN&gt;emergency, it’s possible to change iomux alt to GPIO&amp;nbsp;temperarily,in order to read logic value.But there is a risk for some peripheral. Maybe the best choice is to connect two pad to this signal. Occupied more but safe.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 10:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250338#M13425</guid>
      <dc:creator>Loadd</dc:creator>
      <dc:date>2021-03-23T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot know GPIO level with alt function</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250340#M13426</link>
      <description>&lt;P&gt;Thank you for reply. But it still doesn't work. When I coufigure this, the content in PSR is from what I write in DR.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 10:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cannot-know-GPIO-level-with-alt-function/m-p/1250340#M13426</guid>
      <dc:creator>Loadd</dc:creator>
      <dc:date>2021-03-23T10:06:45Z</dc:date>
    </item>
  </channel>
</rss>

