<?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: Will the config tools and LPUART_Init function support inverting the UART polarity? in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2152228#M3754</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251635"&gt;@rj_engineer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm sorry for replying to you late.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;1. I have checked the config tool, and it indeed doesn't support this feature. I will submit a feature request to the config tool development team. Thank you&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;2. We can add this configuration through code, such as&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;EM&gt; LPUART_CTRL_TXINV(1); // Enable&amp;nbsp;Transmit Data Inversion&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please contact me if still have any question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 08:45:05 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2025-08-14T08:45:05Z</dc:date>
    <item>
      <title>Will the config tools and LPUART_Init function support inverting the UART polarity?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2143566#M3660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The CTRL register of the MCXA UART contains the TXINV (28) bit which control the polarity of the UART.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txinv_capture.png" style="width: 684px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350262i3B2C68B186D14600/image-size/large?v=v2&amp;amp;px=999" role="button" title="txinv_capture.png" alt="txinv_capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, the config tools doesn't expose this functionnality and the "LPUART_Init" function automatically unset this bit. The only solution found was to disable the RX and TX output (after the "LPUART_Init") to set the TXINV.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;LPUART1_PERIPHERAL-&amp;gt;CTRL &amp;amp;= ~LPUART_CTRL_TE_MASK;
LPUART1_PERIPHERAL-&amp;gt;CTRL &amp;amp;= ~LPUART_CTRL_RE_MASK;
LPUART1_PERIPHERAL-&amp;gt;CTRL |= LPUART_CTRL_TXINV_MASK;
LPUART1_PERIPHERAL-&amp;gt;CTRL |= LPUART_CTRL_TE_MASK;
LPUART1_PERIPHERAL-&amp;gt;CTRL |= LPUART_CTRL_RE_MASK;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution cause unnecessary rising edge on the UART lines.&lt;/P&gt;&lt;P&gt;Writing a custom UART init function is overkill and error prone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is :&lt;/P&gt;&lt;P&gt;Is there any other "proper" way to invert the UART polarity and are the config tools scheduled to support this functionnality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:03:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2143566#M3660</guid>
      <dc:creator>rj_engineer</dc:creator>
      <dc:date>2025-07-30T13:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Will the config tools and LPUART_Init function support inverting the UART polarity?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2152228#M3754</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251635"&gt;@rj_engineer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm sorry for replying to you late.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;1. I have checked the config tool, and it indeed doesn't support this feature. I will submit a feature request to the config tool development team. Thank you&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;2. We can add this configuration through code, such as&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;EM&gt; LPUART_CTRL_TXINV(1); // Enable&amp;nbsp;Transmit Data Inversion&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please contact me if still have any question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2152228#M3754</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-08-14T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Will the config tools and LPUART_Init function support inverting the UART polarity?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2162951#M3868</link>
      <description>Thank you for the answer</description>
      <pubDate>Wed, 03 Sep 2025 13:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Will-the-config-tools-and-LPUART-Init-function-support-inverting/m-p/2162951#M3868</guid>
      <dc:creator>rj_engineer</dc:creator>
      <dc:date>2025-09-03T13:44:03Z</dc:date>
    </item>
  </channel>
</rss>

