<?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 Uart stop bits in NXP K22 series in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948762#M54658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;While going through user manual of K22F series, we found that only 1 stop bit(Fixed) is available in UART.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I need user configurable stop bits (1 or 2) in my application(Modbus over RS485).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; How to get this Uart working with systems with 2 stop bits?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Controller used: &lt;STRONG style="color: black; font-size: 10.0pt; "&gt;MK22FX512AVLQ12&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; (No LPUART in this microcontroller)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Prasanna&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 09:23:35 GMT</pubDate>
    <dc:creator>prasannanaik</dc:creator>
    <dc:date>2019-09-05T09:23:35Z</dc:date>
    <item>
      <title>Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948762#M54658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;While going through user manual of K22F series, we found that only 1 stop bit(Fixed) is available in UART.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I need user configurable stop bits (1 or 2) in my application(Modbus over RS485).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; How to get this Uart working with systems with 2 stop bits?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Controller used: &lt;STRONG style="color: black; font-size: 10.0pt; "&gt;MK22FX512AVLQ12&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; (No LPUART in this microcontroller)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Prasanna&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948762#M54658</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2019-09-05T09:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948763#M54659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your processor's UART doesn't support 2 stop bits as a UART setting but you can still use 2 stop bit if you work in interrupt driven mode and use the transmission complete interrupt instead of the buffer empty interrupt to control each byte sent (reception is not critical because it will accept either 1 or 2 stop bits).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you require a complete&amp;nbsp;and immediate solution&amp;nbsp;for your device see the uTasker project since it contains a turn key Modbus solution with Modbus master and slave in ASCII or RTU modes on all K22 UARTs (and RS485 mode), as well on USB-CDC connections (up to 6), or Modbus TCP master/slaves on USB-RNDS (host or device).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/docs/MODBUS/uTasker_MODBUS.PDF" target="test_blank"&gt;http://www.utasker.com/docs/MODBUS/uTasker_MODBUS.PDF&lt;/A&gt;&lt;BR /&gt;[proven on Kinetis since 2011 in many industrial products]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K22:&lt;BR /&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;BR /&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;BR /&gt;- &lt;A href="http://www.utasker.com/kinetis/BLAZE_K22.html" target="test_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;- &lt;A href="http://www.utasker.com/kinetis/tinyK22.html" target="test_blank"&gt;http://www.utasker.com/kinetis/tinyK22.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 14:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948763#M54659</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-05T14:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948764#M54660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;H&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&lt;SPAN style="color: #3d9ce7;"&gt;i&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;Thanks for your valuable input.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I was trying to implement the same but faced certain issues while doing so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am using non blocking transfer method to send data through uart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;API's used in code:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;status_t UART_TransferReceiveNonBlocking(UART_Type *base,uart_handle_t *handle,uart_transfer_t *xfer,size_t *receivedBytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;void UART_TransferCreateHandle(UART_Type *base,uart_handle_t *handle,uart_transfer_callback_t callback,void *userData)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;status_t UART_TransferSendNonBlocking(UART_Type *base, uart_handle_t *handle, uart_transfer_t *xfer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #51626f; font-size: 10.5pt; "&gt;I modified following snippets in firmware in "fsl_uart.c" file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;1)&amp;nbsp;&lt;/STRONG&gt;status_t UART_Init(UART_Type *base, const uart_config_t *config, uint32_t srcClock_Hz)&amp;nbsp; &amp;nbsp;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Replaced &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;==&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;base-&amp;gt;C2 &amp;amp;= ~(&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: red; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;UART_C2_TE_MASK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: red;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;| UART_C2_RE_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;With &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;==&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;base-&amp;gt;C2 &amp;amp;= ~(&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #ed7d31; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;UART_C2_TCIE_MASK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #ed7d31;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;| UART_C2_RE_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;Replaced ==&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;if (config-&amp;gt;enableTx)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp |=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: red; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;UART_C2_TE_MASK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;With&amp;nbsp;==&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if (config-&amp;gt;enableTx)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;temp |= &lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #ed7d31; font-size: 10.5pt;"&gt;&lt;STRONG&gt;UART_C2_TCIE_MASK&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: black; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;2)&amp;nbsp;&lt;/STRONG&gt;status_t &lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: black; font-size: 10.5pt;"&gt;UART_TransferSendNonBlocking&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: black; font-size: 10.5pt;"&gt;(UART_Type *base, uart_handle_t *handle,&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: black; font-size: 10.5pt;"&gt;uart_transfer_t *xfer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; text-indent: 36.0pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;Replaced ==&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;UART_EnableInterrupts(base, &lt;/SPAN&gt;&lt;STRONG style="border: none windowtext 1.0pt; padding: 0cm; color: red; font-size: 10.5pt; "&gt;kUART_TxDataRegEmptyInterruptEnable&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; font-style: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With ==&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;UART_EnableInterrupts(base, &lt;/SPAN&gt;&lt;STRONG style="color: #ed7d31; background: silver; font-size: 10.0pt; "&gt;&lt;EM&gt;kUART_TransmissionCompleteInterruptEnable&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;When i started debugging the firmware the controller stopped all of a sudden and now it is giving constant reset even if i try to debug any demo code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;Can you please help in resolving this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt; "&gt;Also, there is a guard time setting in K22 uart, will this setting help in acheiving the desired second stop bit delay?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;Thanks and best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #51626f; border: none windowtext 1.0pt; padding: 0cm;"&gt;Prasanna&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; font-size: 10.5pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 11:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948764#M54660</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2019-09-10T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948765#M54661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The K22 guard time support is used only in ISO 7816 mode for its smart card interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the uTasker open source project as reference (it has a UART driver that support 2 stop bits on your chip and also allows its operation to be simulated in Visual Studio to make it easier to analyse the operation). Then you can make changes to your library routines to suit - also don't forget to correctly clear the interrupt if that is the reason for your code hanging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are developing professionally and prefer a complete out-of-the-box solution for your K22 Modbus project show the uTasker links to your employer or your client since it would allow you to complete the work in a few hours and possibly them to save project development costs in comparison to redeveloping from scratch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 16:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948765#M54661</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-10T16:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948766#M54662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I couldn't find the source code of Modbus from "&lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;". Can you please send me the link of source code or the downloaded source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2019 04:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948766#M54662</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2019-09-21T04:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948767#M54663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modbus source code is not included in the open source version of the project but the UART drivers are - &lt;EM&gt;you can copy the UART solution for use with your Modbus stack if need.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modbus is reserved for commercial users, who have helped finance its development.&lt;BR /&gt;See &lt;A href="http://www.utasker.com/Licensing/request.html" target="test_blank"&gt;http://www.utasker.com/Licensing/request.html&lt;/A&gt; if you would like to evaluate the commercial version.&lt;BR /&gt;If your company can't afford software there is also a service to help with a single-project complementary license (see the options)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 03:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948767#M54663</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-23T03:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948768#M54664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have modifed the interrupt suggested by you and it is working fine but i am not able to understand the logic behind this.&lt;/P&gt;&lt;P&gt;How does this interrupt help in achieving two stop bits?&lt;/P&gt;&lt;P&gt;Because we are not changing the frame format so where does that additional delay of second stop bit comes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Prasanna&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 04:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948768#M54664</guid>
      <dc:creator>prasannanaik</dc:creator>
      <dc:date>2020-01-13T04:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uart stop bits in NXP K22 series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948769#M54665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UART's tx time base is controlled by its baud rate. If you 'queue' a following Tx data byte it means that it will be sent after the stop bit (one stop bit). However, if there is no second Tx data in the output buffer at this point the UART Tx sends idle line. If a further Tx data byte is added to the output buffer during the first clock period of the idle line it results in it being sent out 'at the next possible occasion', which is one baud clock later - resulting in 1 stop bit, 1 idle line bit and then the start bit of the following byte. The inserted idle line period is the same as a second stop bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works in interrupt-driven tx mode but not in DMA mode since DMA loads the next byte too early.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 23:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Uart-stop-bits-in-NXP-K22-series/m-p/948769#M54665</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-01-13T23:46:44Z</dc:date>
    </item>
  </channel>
</rss>

