<?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: Ho to read GPIO input already  routed  to input capture in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Ho-to-read-GPIO-input-already-routed-to-input-capture/m-p/2356522#M6032</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;/P&gt;
&lt;P&gt;For the MCXA153, this can be implemented as follows:&lt;/P&gt;
&lt;P&gt;1. Configure P2_2 to its CTIMER input function, i.e. set ALT4 = CT_INP12;&lt;BR /&gt;2. Use the corresponding INPUTMUX to route a selected CTIMER CAP channel to CT_INP12;&lt;BR /&gt;3. After a timeout occurs, read the corresponding bit in the GPIO input status register (&lt;STRONG&gt;PDIR&lt;/STRONG&gt;) directly.&lt;/P&gt;
&lt;P&gt;Please note that the GPIO PDIR register always reflects the actual logic level of the pin, regardless of which digital function the pin is configured for.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1777285723740.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/383671i9A3DA06C94B7248F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_0-1777285723740.png" alt="Celeste_Liu_0-1777285723740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2026 10:29:22 GMT</pubDate>
    <dc:creator>Celeste_Liu</dc:creator>
    <dc:date>2026-04-27T10:29:22Z</dc:date>
    <item>
      <title>Ho to read GPIO input already  routed  to input capture</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Ho-to-read-GPIO-input-already-routed-to-input-capture/m-p/2353815#M6031</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am developing a project based on the MCXA153VLH microprocessor.&lt;BR /&gt;A PWM signal is applied to pin 16 (P2_2). Following your previous suggestions and by modifying the CTIMER_Init routine, I have successfully implemented the duty cycle measurement.&lt;/P&gt;&lt;P&gt;However, the signal on P2_2 may occasionally stay at a stable logic level (constant 0 or 1). To handle this, I have implemented a timeout period; once triggered, I need to read the actual logic state of the P2_2 pin.&lt;/P&gt;&lt;P&gt;Could you please advise on how to properly configure pin P2_2 so it can be used both for Input Capture (via CTIMER) and as a GPIO for state reading?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 17:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Ho-to-read-GPIO-input-already-routed-to-input-capture/m-p/2353815#M6031</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2026-04-20T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to read GPIO input already  routed  to input capture</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Ho-to-read-GPIO-input-already-routed-to-input-capture/m-p/2356522#M6032</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;/P&gt;
&lt;P&gt;For the MCXA153, this can be implemented as follows:&lt;/P&gt;
&lt;P&gt;1. Configure P2_2 to its CTIMER input function, i.e. set ALT4 = CT_INP12;&lt;BR /&gt;2. Use the corresponding INPUTMUX to route a selected CTIMER CAP channel to CT_INP12;&lt;BR /&gt;3. After a timeout occurs, read the corresponding bit in the GPIO input status register (&lt;STRONG&gt;PDIR&lt;/STRONG&gt;) directly.&lt;/P&gt;
&lt;P&gt;Please note that the GPIO PDIR register always reflects the actual logic level of the pin, regardless of which digital function the pin is configured for.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1777285723740.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/383671i9A3DA06C94B7248F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_0-1777285723740.png" alt="Celeste_Liu_0-1777285723740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 10:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Ho-to-read-GPIO-input-already-routed-to-input-capture/m-p/2356522#M6032</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-04-27T10:29:22Z</dc:date>
    </item>
  </channel>
</rss>

